be.ugent.caagt.swirl.actions
Class SingleSelectionAction
public class SingleSelectionAction
Simple action which selects a given index in a
SingleSelectionModel
.
SingleSelectionAction(SingleSelectionModel selectionModel, int value, ResourceBundle bundle, String key, Icon icon) - Construct an action of this type with an internationalized description
string and given icon.
|
SingleSelectionAction(SingleSelectionModel selectionModel, int value, ResourceBundle bundle, String key, Icon icon, Icon mediumIcon, Icon mediumDisabledIcon) - Construct an action of this type with an internationalized description
string and given icons.
|
selectionModel
protected final SingleSelectionModel selectionModel
value
protected final int value
SingleSelectionAction
public SingleSelectionAction(SingleSelectionModel selectionModel,
int value,
ResourceBundle bundle,
String key,
Icon icon)
Construct an action of this type with an internationalized description
string and given icon.
selectionModel
- Selection model which will be changed by this actionvalue
- Value to be selected by this actionbundle
- Resource bundle which contains the description for
this action.key
- Key used for the description of this action in the bundle.icon
- Small icon to be used for menu and standard button decoration (or null).
SingleSelectionAction
public SingleSelectionAction(SingleSelectionModel selectionModel,
int value,
ResourceBundle bundle,
String key,
Icon icon,
Icon mediumIcon,
Icon mediumDisabledIcon)
Construct an action of this type with an internationalized description
string and given icons.
selectionModel
- Selection model which will be changed by this actionvalue
- Value to be selected by this actionbundle
- Resource bundle which contains the description for
this action.key
- Key used for the description of this action in the bundle.icon
- Small icon to be used for menu and standard button decoration (or null)mediumIcon
- Medium size icon to be used for tool bar buttons (or null)mediumDisabledIcon
- Medium size icon to be used for a disabled tool bar buttons (or null)