Package org.oddjob.arooa.parsing
Class ConfigConfigurationSession
java.lang.Object
org.oddjob.arooa.parsing.ConfigConfigurationSession
- All Implemented Interfaces:
ConfigurationSession
A
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.
- Author:
- rob
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConfigConfigurationSession(ArooaSession session, ArooaConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSessionStateListener(SessionStateListener listener) Add aSessionStateListenerlistener.dragPointFor(Object component) Provide aDragPointfor the given component.Get theArooaDescriptorfor editing the configuration.booleanHas the configuration been modified.voidRemove aSessionStateListenerlistener.voidsave()Save the configuration.
-
Constructor Details
-
ConfigConfigurationSession
-
-
Method Details
-
dragPointFor
Description copied from interface:ConfigurationSessionProvide aDragPointfor the given component.- Specified by:
dragPointForin interfaceConfigurationSession- Parameters:
component- The component.- Returns:
- A DragPoint, or null if the component is not a member of the session.
-
isModified
public boolean isModified()Description copied from interface:ConfigurationSessionHas the configuration been modified.- Specified by:
isModifiedin interfaceConfigurationSession- Returns:
- true/false. True if modified.
-
addSessionStateListener
Description copied from interface:ConfigurationSessionAdd aSessionStateListenerlistener.- Specified by:
addSessionStateListenerin interfaceConfigurationSession- Parameters:
listener- The listener.
-
removeSessionStateListener
Description copied from interface:ConfigurationSessionRemove aSessionStateListenerlistener.- Specified by:
removeSessionStateListenerin interfaceConfigurationSession- Parameters:
listener- The listener.
-
save
Description copied from interface:ConfigurationSessionSave the configuration.- Specified by:
savein interfaceConfigurationSession- Throws:
ArooaParseException- If save failed. (Is this the right Exception)?
-
getArooaDescriptor
Description copied from interface:ConfigurationSessionGet theArooaDescriptorfor editing the configuration.- Specified by:
getArooaDescriptorin interfaceConfigurationSession- Returns:
- An ArooaDescriptor. Never Null.
-