public class ContextConfigurationSession extends java.lang.Object implements ConfigurationSession
ConfigurationSession based on the ArooaContext. This context is intended to be that of
a Component that wishes to be ConfigurationOwner but is not the root component.
It is assumed that the component is within the hierarchy of another
ConfigurationOwner that will be the root of the hierarchy and
this will provide details of when the hierarchy is modified and saved.
| Constructor and Description |
|---|
ContextConfigurationSession(ArooaContext context)
Construct this Configuration Session.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSessionStateListener(SessionStateListener listener)
Add a
SessionStateListener listener. |
DragPoint |
dragPointFor(java.lang.Object component)
Provide a
DragPoint for the given component. |
ArooaDescriptor |
getArooaDescriptor()
Get the
ArooaDescriptor for editing the configuration. |
boolean |
isModified()
Has the configuration been modified.
|
void |
removeSessionStateListener(SessionStateListener listener)
Remove a
SessionStateListener listener. |
void |
save()
Save the configuration.
|
protected void |
setModified(boolean modified) |
public ContextConfigurationSession(ArooaContext context)
context - The context that belongs to the element that haspublic DragPoint dragPointFor(java.lang.Object component)
ConfigurationSessionDragPoint for the given component.dragPointFor in interface ConfigurationSessioncomponent - The component.protected void setModified(boolean modified)
public boolean isModified()
ConfigurationSessionisModified in interface ConfigurationSessionpublic void addSessionStateListener(SessionStateListener listener)
ConfigurationSessionSessionStateListener listener.addSessionStateListener in interface ConfigurationSessionlistener - The listener.public void removeSessionStateListener(SessionStateListener listener)
ConfigurationSessionSessionStateListener listener.removeSessionStateListener in interface ConfigurationSessionlistener - The listener.public void save()
throws ArooaParseException
ConfigurationSessionsave in interface ConfigurationSessionArooaParseException - If save failed. (Is this the right Exception)?public ArooaDescriptor getArooaDescriptor()
ConfigurationSessionArooaDescriptor for editing the configuration.getArooaDescriptor in interface ConfigurationSession