Package com.tagtraum.core.app
Class RelativeActionLocation
- java.lang.Object
-
- com.tagtraum.core.app.ActionLocation
-
- com.tagtraum.core.app.RelativeActionLocation
-
public class RelativeActionLocation extends ActionLocation
Relative action location.- Author:
- Hendrik Schreiber
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RelativeActionLocation.RelativePosition
Relative positions.
-
Field Summary
-
Fields inherited from class com.tagtraum.core.app.ActionLocation
insertMenuItemSeparatorAfterAction, insertMenuItemSeparatorBeforeAction
-
-
Constructor Summary
Constructors Constructor Description RelativeActionLocation(UIRegion uiRegion, RelativeActionLocation.RelativePosition relativePosition, String anchorActionId)
Relative position to another action that has an id.RelativeActionLocation(UIRegion uiRegion, RelativeActionLocation.RelativePosition relativePosition, String anchorActionId, boolean insertMenuItemSeparatorBeforeAction, boolean insertMenuItemSeparatorAfterAction)
Relative position to another action that has an id.RelativeActionLocation(String uiRegionPath, RelativeActionLocation.RelativePosition relativePosition, String anchorActionId)
Relative position to another action that has an id.RelativeActionLocation(String uiRegionPath, RelativeActionLocation.RelativePosition relativePosition, String anchorActionId, boolean insertMenuItemSeparatorBeforeAction, boolean insertMenuItemSeparatorAfterAction)
Relative position to another action that has an id.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAnchorActionId()
protected int
getInsertIndex(Container container)
RelativeActionLocation.RelativePosition
getUIPosition()
-
Methods inherited from class com.tagtraum.core.app.ActionLocation
getUIRegionPath, install, toString
-
-
-
-
Constructor Detail
-
RelativeActionLocation
public RelativeActionLocation(String uiRegionPath, RelativeActionLocation.RelativePosition relativePosition, String anchorActionId)
Relative position to another action that has an id.- Parameters:
uiRegionPath
- ui region pathrelativePosition
- BEFORE or AFTERanchorActionId
- id of the action this one is supposed to be relative to
-
RelativeActionLocation
public RelativeActionLocation(String uiRegionPath, RelativeActionLocation.RelativePosition relativePosition, String anchorActionId, boolean insertMenuItemSeparatorBeforeAction, boolean insertMenuItemSeparatorAfterAction)
Relative position to another action that has an id.- Parameters:
uiRegionPath
- ui region pathrelativePosition
- BEFORE or AFTERanchorActionId
- id of the action this one is supposed to be relative toinsertMenuItemSeparatorBeforeAction
- iftrue
a separator will be inserted before the action if the action is inserted into a menuinsertMenuItemSeparatorAfterAction
- iftrue
a separator will be inserted after the action if the action is inserted into a menu
-
RelativeActionLocation
public RelativeActionLocation(UIRegion uiRegion, RelativeActionLocation.RelativePosition relativePosition, String anchorActionId)
Relative position to another action that has an id.- Parameters:
uiRegion
- uiRegionrelativePosition
- BEFORE or AFTERanchorActionId
- id of the action this one is supposed to be relative to
-
RelativeActionLocation
public RelativeActionLocation(UIRegion uiRegion, RelativeActionLocation.RelativePosition relativePosition, String anchorActionId, boolean insertMenuItemSeparatorBeforeAction, boolean insertMenuItemSeparatorAfterAction)
Relative position to another action that has an id.- Parameters:
uiRegion
- uiRegionrelativePosition
- BEFORE or AFTERanchorActionId
- id of the action this one is supposed to be relative toinsertMenuItemSeparatorBeforeAction
- iftrue
a separator will be inserted before the action if the action is inserted into a menuinsertMenuItemSeparatorAfterAction
- iftrue
a separator will be inserted after the action if the action is inserted into a menu
-
-
Method Detail
-
getUIPosition
public RelativeActionLocation.RelativePosition getUIPosition()
-
getAnchorActionId
public String getAnchorActionId()
-
getInsertIndex
protected int getInsertIndex(Container container)
- Specified by:
getInsertIndex
in classActionLocation
-
-