Package org.oddjob.arooa.parsing
Interface ConfigurationSession
- All Known Implementing Classes:
ConfigConfigurationSession,ContextConfigurationSession,HandleConfigurationSession
public interface ConfigurationSession
Something that is able to provide everything required to edit
an
ArooaConfiguration.
A ConfigurationSession is intended to be a minimal derivation of
an ArooaSession that is able to provide enough to
edit a configuration either locally or on a remote server.
- Author:
- rob
-
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.
-
Method Details
-
dragPointFor
Provide aDragPointfor the given component.- Parameters:
component- The component.- Returns:
- A DragPoint, or null if the component is not a member of the session.
-
isModified
boolean isModified()Has the configuration been modified.- Returns:
- true/false. True if modified.
-
addSessionStateListener
Add aSessionStateListenerlistener.- Parameters:
listener- The listener.
-
removeSessionStateListener
Remove aSessionStateListenerlistener.- Parameters:
listener- The listener.
-
save
Save the configuration.- Throws:
ArooaParseException- If save failed. (Is this the right Exception)?
-
getArooaDescriptor
ArooaDescriptor getArooaDescriptor()Get theArooaDescriptorfor editing the configuration.- Returns:
- An ArooaDescriptor. Never Null.
-