|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.tools.edit.EditToolConfigurationHelper
public class EditToolConfigurationHelper
This class provides methods so that initializing an Edit tool is done declaratively.
Constructor Summary | |
---|---|
EditToolConfigurationHelper(java.util.List<EventBehaviour> behaviours)
|
Method Summary | |
---|---|
void |
add(EventBehaviour behaviour)
Add a behaviours to the current list |
void |
done()
Signals that the configuration is complete. |
boolean |
isDone()
Returns true if the done() was called; |
void |
startAdvancedFeatures()
Behaviours that are added after this method is called will only be active when the advanced editing is active. |
void |
startElseFeatures()
Starts the Else Behaviours of the Advanced configuration. |
void |
startMutualExclusiveList()
Starts building a list of behaviours that will be mutually exclusive. |
void |
startOrderedList(boolean processAsCommand)
Starts building a list of behaviours that are ordered but all behaviours are run. |
void |
stopAdvancedFeatures()
Ends Advanced behaviour section |
void |
stopElseFeatures()
Ends the declaration of the Else Behaviours |
void |
stopMutualExclusiveList()
Signals the end of a Mutually Exclusive list of behaviours |
void |
stopOrderedList()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EditToolConfigurationHelper(java.util.List<EventBehaviour> behaviours)
Method Detail |
---|
public void startMutualExclusiveList()
public void stopMutualExclusiveList()
public void startOrderedList(boolean processAsCommand)
processAsCommand
- If true then the behaviours will be processed in the command execution thread instead of the Display thread.
This is sometimes necessary if a command from a previous behaviour may change the state that a later command depends on.
However it depends on the implementation of the behaviour, many behaviours pre-execute their commands in the display thread so
do some research before using this as is can cause a slower response to the user.public void stopOrderedList()
public void add(EventBehaviour behaviour)
behaviour
- the behaviour to addpublic void done()
public boolean isDone()
public void startAdvancedFeatures()
The normal behaviour must either be outside of the Advanced list or in the Else List
startElseFeatures()
public void stopAdvancedFeatures()
public void startElseFeatures()
StartElseFeatures() must be called after startAdvancedFeatures()
has been called but before stopAdvancedFeatures()
is called
public void stopElseFeatures()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |