|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.nexttext.behaviour.AbstractAction net.nexttext.behaviour.standard.FollowSibling
public class FollowSibling
Causes TextObjects to follow their left siblings.
The provided TargettingAction is used to have TextObjects follow their left siblings.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.nexttext.behaviour.Action |
---|
Action.ActionResult |
Constructor Summary | |
---|---|
FollowSibling(int siblingDirection,
TargetingAction action)
Follow left or right sibling. |
|
FollowSibling(TargetingAction action)
Follow default left sibling. |
Method Summary | |
---|---|
Action.ActionResult |
behave(TextObject to)
Default behave method for single objects. |
java.util.Map<java.lang.String,Property> |
getRequiredProperties()
The properties that this action requires on a TextObject. |
Methods inherited from class net.nexttext.behaviour.AbstractAction |
---|
behave, behave, complete, getDisplayName, makeBehaviour, properties, setDisplayName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FollowSibling(TargetingAction action)
action
- targeting action that uses the sibling as targetpublic FollowSibling(int siblingDirection, TargetingAction action)
siblingDirection
- LEFT or RIGHT siblingaction
- targeting action that uses the sibling as targetMethod Detail |
---|
public Action.ActionResult behave(TextObject to)
AbstractAction
This method does nothing; it should be overriden by subclasses if they wish to support actions on single objects.
Trying to call this method on an Action which doesn't override it will throw an UnsupportedActionException.
behave
in interface Action
behave
in class AbstractAction
public java.util.Map<java.lang.String,Property> getRequiredProperties()
AbstractAction
Right now this method always returns an empty map, since basic Actions should be restricted to use only the core set of TextObject properties.
If a subclass of Action requires a set of additional properties then it should override this method and return the appropriate Map containing the property objects.
This method is required by the Action
interface.
getRequiredProperties
in interface Action
getRequiredProperties
in class AbstractAction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |