public class HandleConfigurationSession extends Object implements ConfigurationSession
ConfigurationSession that works with an ArooaSession
and a ConfigurationHandle that was the result of a parse
that acted on the session.| Constructor and Description |
|---|
HandleConfigurationSession(ArooaSession session,
ConfigurationHandle<?> handle)
Create a new Instance.
|
HandleConfigurationSession(ConfigurationHandle<ArooaContext> handle)
Create a new instance.
|
| 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.
|
protected void |
setModified(boolean modified) |
public HandleConfigurationSession(ConfigurationHandle<ArooaContext> handle)
handle - public HandleConfigurationSession(ArooaSession session, ConfigurationHandle<?> handle)
session - The underlying session to use.handle - The configuration handle.public DragPoint dragPointFor(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 ConfigurationSessionCopyright © 2023. All rights reserved.