|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.dialog.AbstractFeature
com.sdm.quasar.client.core.dialogbase.features.AbstractControllerFeature
| Nested Class Summary | |
protected class |
AbstractControllerFeature.SubDialogController
The internal class to access informations of a controlled subdialog |
| Constructor Summary | |
AbstractControllerFeature(java.lang.String serviceRegistrationContext)
Creates a new AbstractControllerFeature. |
|
| Method Summary | |
protected void |
activate()
Called when the dialog is activated. |
protected AbstractControllerFeature.SubDialogController |
addSubDialogController(java.lang.String localName,
SubDialogControl subDialogControl)
Adds the given SubDialogControl to this embedding feature using the given
local name. |
void |
collectSystemInfo(SystemInfoNode root,
SystemInfoOptions options)
Builds the system information tree upon local information of the implementor. The system information tree can be used within development by inspecting the system; so implementors should append their internal state (depending on the details settings within SystemInfoOptions).
The information can be appended to the tree by adding new child
SystemInformationNodes to the root node given using the
SystemInfoNode.createChild(String) method and by setting information
attributes the these nodes or the given root node.
Subclasses should overwrite this method to append system informations
Subclasses should overwrite this method to append system informations |
protected void |
deactivate()
Called when the dialog is deactivated. |
protected LifeCycleState |
getLifeCycleState()
Returns the LifeCycleState of the feature (e.g. the same than
|
protected AbstractControllerFeature.SubDialogController |
getSubDialogController(DialogInstanceId dialogInstanceId)
Returns the AbstractControllerFeature.SubDialogController for the embedded sub dialog specified
via the given SubDialogControl. |
protected AbstractControllerFeature.SubDialogController |
getSubDialogController(java.lang.String localName)
Returns the AbstractControllerFeature.SubDialogController for the embedded subdialog
specified via the given local embedding name. |
protected AbstractControllerFeature.SubDialogController |
getSubDialogController(SubDialogControl subDialogControl)
Returns the AbstractControllerFeature.SubDialogController for the embedded sub dialog specified
via the given SubDialogControl. |
protected int |
getSubDialogControllerCount()
Returns the number of currently embedded subdialogs. |
protected boolean |
hasSubDialogController(DialogInstanceId dialogInstanceId)
Returns true, if the specified sub dialog is already embedded
within this embedding feature instance. |
protected boolean |
hasSubDialogController(java.lang.String localName)
Returns true, if the given local embedding name is already contained
within this embedding feature instance. |
protected boolean |
hasSubDialogController(SubDialogControl subDialogControl)
Returns true, if the specified sub dialog is already embedded
within this embedding feature instance. |
protected java.util.Iterator |
iterateSubDialogControllers()
Iterates the AbstractControllerFeature.SubDialogController of all embedded sub dialogs. |
protected void |
onChildActivated(java.lang.String localName,
SubDialogControl subDialogControl)
Called whenever a child was activated. |
protected void |
onChildAdded(java.lang.String localName,
SubDialogControl subDialogControl)
Called whenever a child was added (before lifecycle methods will be called). |
protected void |
onChildDeactivated(java.lang.String localName,
SubDialogControl subDialogControl)
Called whenever a child was deactivated. |
protected void |
onChildRemoved(java.lang.String localName,
SubDialogControl subDialogControl)
Called whenever a child was removed. |
protected void |
prepare()
Called when the dialog is prepared. |
protected void |
removeSubDialogController(java.lang.String localName)
Removes a previously embedded sub dialog specified by its local name. |
protected void |
removeSubDialogController(SubDialogControl subDialogControl)
Removes a previously embedded sub dialog specified by its DialogInstanceId. |
protected boolean |
requestActivate()
Requests this dialog node to become active itself. |
protected boolean |
requestDeactivate()
Requests this dialog node to become deactived itself. |
| Methods inherited from class com.sdm.quasar.client.core.dialog.AbstractFeature |
attachDialogControl, dispose, disposeFeature, getDialogControl, init, isInitialized, release |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractControllerFeature(java.lang.String serviceRegistrationContext)
AbstractControllerFeature.
serviceRegistrationContext - a service registration context to use| Method Detail |
protected final void prepare()
AbstractFeatureLifeCycle.prepare(),
e.g. gain resource and provide services for childs.
The default implementation in AbstractFeature does nothing.
prepare in class AbstractFeaturecom.sdm.quasar.client.core.dialog.features.AbstractFeature#prepare()protected final void activate()
AbstractFeatureLifeCycle.activate().
The default implementation in AbstractFeature does nothing.
activate in class AbstractFeaturecom.sdm.quasar.client.core.dialog.features.AbstractFeature#activate()protected final void deactivate()
AbstractFeatureLifeCycle.deactivate()().
The default implementation in AbstractFeature does nothing.
deactivate in class AbstractFeaturecom.sdm.quasar.client.core.dialog.features.AbstractFeature#deactivate()protected LifeCycleState getLifeCycleState()
LifeCycleState of the feature (e.g. the same than
AbstractFeature.getDialogControl().getLifeCycleState()).
protected int getSubDialogControllerCount()
protected boolean hasSubDialogController(java.lang.String localName)
true, if the given local embedding name is already contained
within this embedding feature instance.
localName - the local embedding nameprotected boolean hasSubDialogController(SubDialogControl subDialogControl)
true, if the specified sub dialog is already embedded
within this embedding feature instance.
subDialogControl - the SubDialogControl specifying the sub dialogprotected boolean hasSubDialogController(DialogInstanceId dialogInstanceId)
true, if the specified sub dialog is already embedded
within this embedding feature instance.
protected AbstractControllerFeature.SubDialogController getSubDialogController(java.lang.String localName)
AbstractControllerFeature.SubDialogController for the embedded subdialog
specified via the given local embedding name.
localName - the local name of the embedded AbstractControllerFeature.SubDialogController
to return
java.lang.IllegalArgumentException - if the local name is null
or no sub dialog was embeddedprotected AbstractControllerFeature.SubDialogController getSubDialogController(SubDialogControl subDialogControl)
AbstractControllerFeature.SubDialogController for the embedded sub dialog specified
via the given SubDialogControl.
subDialogControl - the SubDialogControl for the embedded dialog to
return.
java.lang.IllegalArgumentException - if the SubDialogControl is null
or no sub dialog was embeddedprotected AbstractControllerFeature.SubDialogController getSubDialogController(DialogInstanceId dialogInstanceId)
AbstractControllerFeature.SubDialogController for the embedded sub dialog specified
via the given SubDialogControl.
dialogInstanceId - the DialogInstanceId for the embedded dialog to
return.
java.lang.IllegalArgumentException - if the SubDialogControl is null
or no sub dialog was embedded
protected AbstractControllerFeature.SubDialogController addSubDialogController(java.lang.String localName,
SubDialogControl subDialogControl)
SubDialogControl to this embedding feature using the given
local name.
localName - the local embedding namesubDialogControl - the SubDialogControl to embed
AbstractControllerFeature.SubDialogController that allows control over the embedded
sub dialog. This AbstractControllerFeature.SubDialogController should never be visible outside
the subclassprotected void removeSubDialogController(java.lang.String localName)
localName - the local name the sub dialog was embedded underprotected void removeSubDialogController(SubDialogControl subDialogControl)
DialogInstanceId.
subDialogControl - the SubDialogControl for the embedded dialogprotected java.util.Iterator iterateSubDialogControllers()
AbstractControllerFeature.SubDialogController of all embedded sub dialogs.
Iterator iterating over all embedded SubDialogControllers.protected boolean requestActivate()
true if the request is (or shortly will be) granted,
false otherwiseprotected boolean requestDeactivate()
true if the request is (or shortly will be) granted,
false otherwise
protected void onChildAdded(java.lang.String localName,
SubDialogControl subDialogControl)
localName - the local name of the child dialogsubDialogControl - the SubDialogControl of the child dialog
protected void onChildRemoved(java.lang.String localName,
SubDialogControl subDialogControl)
localName - the local name of the child dialogsubDialogControl - the SubDialogControl of the child dialog
protected void onChildActivated(java.lang.String localName,
SubDialogControl subDialogControl)
localName - the local name of the child dialogsubDialogControl - the SubDialogControl of the child dialog
protected void onChildDeactivated(java.lang.String localName,
SubDialogControl subDialogControl)
localName - the local name of the child dialogsubDialogControl - the SubDialogControl of the child dialog
public void collectSystemInfo(SystemInfoNode root,
SystemInfoOptions options)
AbstractFeatureSystemInfoOptions).
The information can be appended to the tree by adding new child
SystemInformationNodes to the root node given using the
SystemInfoNode.createChild(String) method and by setting information
attributes the these nodes or the given root node.
Subclasses should overwrite this method to append system informations
collectSystemInfo in interface SystemInfoProvidercollectSystemInfo in class AbstractFeatureAbstractFeature.collectSystemInfo(com.sdm.quasar.client.core.common.sysinfo.SystemInfoNode, com.sdm.quasar.client.core.common.sysinfo.SystemInfoOptions)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||