public class ConfigConfigurationSession extends Object implements ConfigurationSession
ConfigurationSession
for an ArooaConfiguration
.
This ConfigurationSession
doesn't support component by component
DragPoint
s. 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)
ConfigurationSession
DragPoint
for the given component.dragPointFor
in interface ConfigurationSession
component
- The component.public boolean isModified()
ConfigurationSession
isModified
in interface ConfigurationSession
public void addSessionStateListener(SessionStateListener listener)
ConfigurationSession
SessionStateListener
listener.addSessionStateListener
in interface ConfigurationSession
listener
- The listener.public void removeSessionStateListener(SessionStateListener listener)
ConfigurationSession
SessionStateListener
listener.removeSessionStateListener
in interface ConfigurationSession
listener
- The listener.public void save() throws ArooaParseException
ConfigurationSession
save
in interface ConfigurationSession
ArooaParseException
public ArooaDescriptor getArooaDescriptor()
ConfigurationSession
ArooaDescriptor
for editing the configuration.getArooaDescriptor
in interface ConfigurationSession