public abstract class StyleAction extends FocusOwnerAction
Modifier and Type | Field and Description |
---|---|
protected UIController |
uiController
The user interface controller
|
focusOwner
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Constructor and Description |
---|
StyleAction(UIController uiController)
Creates a new style action.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent event)
Applies the style to the selected cells in the focus owner table.
|
protected abstract void |
applyStyle(StylableCell cell)
Applies the style to the given stylable cell
|
propertyChange
defineProperties, getName, requiresFile, requiresModification, showErrorDialog
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
protected UIController uiController
public StyleAction(UIController uiController)
uiController
- the user interface controllerpublic void actionPerformed(ActionEvent event)
event
- the event that was firedprotected abstract void applyStyle(StylableCell cell)
cell
- the cell to which style should be applied