Package org.dwcj.controls.panels
Class AbstractDwcjPanel
java.lang.Object
org.dwcj.controls.AbstractControl
org.dwcj.controls.AbstractDwcControl
org.dwcj.controls.panels.AbstractDwcjPanel
- All Implemented Interfaces:
Control,Enableable,HasAttribute,HasClassName,HasComputedStyle,HasControlText,HasDestroy,HasStyle,HasTooltip,HasVisibility
- Direct Known Subclasses:
AppPanel,BBjPanelAdapter,Div
the base class for all panel implementations
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ArrayList<AbstractControl>protected com.basis.bbj.proxies.sysgui.BBjWindowFields inherited from class org.dwcj.controls.AbstractDwcControl
BASISNUMBER_1, BASISNUMBER_25, BASISNUMBER_250, focusable, horizontalScrollBarPosition, mouseWheelCondition, readOnly, STR_EXPANSE, STR_THEME, tabTraversable, textAlignment, textHighlight, verticalScrollBarPositionFields inherited from class org.dwcj.controls.AbstractControl
ctrl, destroyed, elementId, userData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(AbstractControl... ctrl) Used to add controls to a panel.addClassName(String selector) Adds a CSS class to the list of CSS classes for the control.protected voidcatchUp()The catchUp method is used to replay attributes and settings that the API user might have added to a control before its creation.removeClassName(String selector) Removes a CSS class from the list of CSS classes for the control.Assigns specified value to the specified CSS propertyMethods inherited from class org.dwcj.controls.AbstractDwcControl
destroy, getAttribute, getComputedStyle, getText, getTooltipText, isEnabled, isVisible, setAttribute, setControlExpanse, setControlTheme, setEnabled, setText, setTooltipText, setVisibleMethods inherited from class org.dwcj.controls.AbstractControl
create, getCaughtUp, getId, getUserData, isDestroyed, setId, setUserData
-
Field Details
-
wnd
protected com.basis.bbj.proxies.sysgui.BBjWindow wnd -
controls
-
-
Constructor Details
-
AbstractDwcjPanel
public AbstractDwcjPanel()
-
-
Method Details
-
add
Used to add controls to a panel. Multiple controls can be passed to this function, and will be added in the order the arguments are passed (arg0 added first, arg1 second, etc...)- Parameters:
ctrl- the control(s) to be added- Returns:
- the panel itself
-
setStyle
Description copied from interface:HasStyleAssigns specified value to the specified CSS property- Specified by:
setStylein interfaceHasStyle- Overrides:
setStylein classAbstractDwcControl- Parameters:
property- The CSS property to be changedvalue- The value of the selected CSS property- Returns:
- The control itself
-
addClassName
Description copied from interface:HasClassNameAdds a CSS class to the list of CSS classes for the control.- Specified by:
addClassNamein interfaceHasClassName- Overrides:
addClassNamein classAbstractDwcControl- Returns:
- The control itself
-
removeClassName
Description copied from interface:HasClassNameRemoves a CSS class from the list of CSS classes for the control.- Specified by:
removeClassNamein interfaceHasClassName- Overrides:
removeClassNamein classAbstractDwcControl- Returns:
- The control itself
-
catchUp
The catchUp method is used to replay attributes and settings that the API user might have added to a control before its creation. A control is not created before it's added to a panel. Anything that is added between instantiation of a control and its addition to a panel has to be recorded and replayed in this method- Overrides:
catchUpin classAbstractDwcControl- Throws:
IllegalAccessException- - thrown if an attempt is made to call this method more than once
-