Package org.dwcj.controls
Class AbstractControl
java.lang.Object
org.dwcj.controls.AbstractControl
- All Implemented Interfaces:
Control,HasDestroy
- Direct Known Subclasses:
AbstractDwcControl
Abstract base class for all engine controls. Implements default behaviors
for the implemented interface methods. Extended by AbstractDwcControl.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcatchUp()The catchUp method is used to replay attributes and settings that the API user might have added to a control before its creation.protected voidCreate the object on a panel p.voiddestroy()Destroy the control and remove it from the panelgetId()Returns the control's IDgetUserData(String key) Allows user to fetch extraneous, user-included information from the controlReturns whether or not the control is destroyedAssigns the ID of a controlsetUserData(String key, Object data) Allows user to include extraneous information in the control
-
Field Details
-
ctrl
protected com.basis.bbj.proxies.sysgui.BBjControl ctrl -
elementId
-
userData
-
destroyed
-
-
Constructor Details
-
AbstractControl
public AbstractControl()
-
-
Method Details
-
create
Create the object on a panel p. The preferred way of creating an object is using the Panel::add(Control) method, instead of this- Parameters:
p- the panel to add this control on
-
getId
Description copied from interface:ControlReturns the control's ID -
setId
Description copied from interface:ControlAssigns the ID of a control -
getUserData
Description copied from interface:ControlAllows user to fetch extraneous, user-included information from the control- Specified by:
getUserDatain interfaceControl- Returns:
- Desired piece of user data
-
setUserData
Description copied from interface:ControlAllows user to include extraneous information in the control- Specified by:
setUserDatain interfaceControl- Parameters:
key- Key of the datadata- Desired piece of information- Returns:
- The control itself
-
getCaughtUp
-
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- Throws:
IllegalAccessException- - thrown if an attempt is made to call this method more than once
-
destroy
public void destroy()Description copied from interface:HasDestroyDestroy the control and remove it from the panel- Specified by:
destroyin interfaceHasDestroy
-
isDestroyed
Description copied from interface:HasDestroyReturns whether or not the control is destroyed- Specified by:
isDestroyedin interfaceHasDestroy- Returns:
- True if the control will is destroyed, false otherwise
-