public class ConfigConfigurationSession extends Object implements ConfigurationSession
ConfigurationSession for an ArooaConfiguration.
This ConfigurationSession doesn't support component by component
DragPoints. Only the DragPoint for the root node is
returned.
To support saving the configuration to the underlying configuration
structure - not directly to source of the configuration (to the file)
an intermediate the configuration is parsed and an intermediate
HandleConfigurationSession is used.
HandleConfigurationSession| Constructor and Description |
|---|
ConfigConfigurationSession(ArooaSession session,
ArooaConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSessionStateListener(SessionStateListener listener)
Add a
SessionStateListener listener. |
DragPoint |
dragPointFor(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.
|
public ConfigConfigurationSession(ArooaSession session, ArooaConfiguration configuration)
public DragPoint dragPointFor(Object component)
ConfigurationSessionDragPoint for the given component.dragPointFor in interface ConfigurationSessioncomponent - The component.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 ConfigurationSessionArooaParseExceptionpublic ArooaDescriptor getArooaDescriptor()
ConfigurationSessionArooaDescriptor for editing the configuration.getArooaDescriptor in interface ConfigurationSession