Package se.conciliate.extensions.ui
Class ModelingActionGroup
java.lang.Object
se.conciliate.extensions.ui.ModelingAction
se.conciliate.extensions.ui.ModelingActionGroup
- Direct Known Subclasses:
LazyModelingActionGroup
A group of modeling actions. The UI will choose how to show this group,
e.g. a list of menu items with separators, a sub-menu etc.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionModelingActionGroup
(boolean enabled) ModelingActionGroup
(String name, Icon icon, boolean enabled) ModelingActionGroup
(String name, Icon icon, List<ModelingAction> children, boolean enabled) ModelingActionGroup
(List<ModelingAction> children, boolean enabled) protected
ModelingActionGroup
(Action action) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addModelingAction
(ModelingAction action) void
clear()
Returns the child actions.boolean
hasTitle()
The UI can choose to show the group differently depending on if it has a title, e.g.boolean
Tells if this group of actions should be enabled.boolean
void
void
setSelectWithNumKeys
(boolean selectWithNumKeys) Set this to true if the group contains a group of actions which can be selected with the numeric keys, starting with '1' for the first action in the group.Methods inherited from class se.conciliate.extensions.ui.ModelingAction
getSwingAction, toString
-
Constructor Details
-
ModelingActionGroup
-
ModelingActionGroup
-
ModelingActionGroup
-
ModelingActionGroup
public ModelingActionGroup(boolean enabled) -
ModelingActionGroup
-
-
Method Details
-
addModelingAction
-
getAlignment
-
setAlignment
-
clear
public void clear() -
isEnabled
public boolean isEnabled()Tells if this group of actions should be enabled. -
getChildren
Returns the child actions. -
hasTitle
public boolean hasTitle()The UI can choose to show the group differently depending on if it has a title, e.g. grouped with separator if it has no titles and as a sub-menu if it has one. -
isSelectWithNumKeys
public boolean isSelectWithNumKeys() -
setSelectWithNumKeys
public void setSelectWithNumKeys(boolean selectWithNumKeys) Set this to true if the group contains a group of actions which can be selected with the numeric keys, starting with '1' for the first action in the group.
-