bibliothek.gui.dock.util.text
Class SwingActionText
java.lang.Object
bibliothek.gui.dock.util.AbstractUIValue<String,TextValue>
bibliothek.gui.dock.util.text.TextValue
bibliothek.gui.dock.util.text.SwingActionText
- All Implemented Interfaces:
- UIValue<String>
public class SwingActionText
- extends TextValue
A text that is used by an Action.
- Author:
- Benjamin Sigg
| Methods inherited from class bibliothek.gui.dock.util.AbstractUIValue |
getBackup, getId, getKind, getValue, set, setBackup, setId, setKind, setManager, setValue, setValue, update, value |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KIND_SWING_ACTION
public static final Path KIND_SWING_ACTION
- the kind of value this
UIValue is
SwingActionText
public SwingActionText(String id,
String key,
Action action)
- Creates a new
DockActionIcon.
- Parameters:
id - the unique identifier of the iconkey - the key to be used for Action.putValue(String, Object)action - the action using the icon
SwingActionText
public SwingActionText(String id,
String key,
Action action,
Path kind)
- Creates a new
DockActionIcon.
- Parameters:
id - the unique identifier of the iconaction - the action using the iconkey - the key to be used for Action.putValue(String, Object)kind - what kind of UIValue this is
getAction
public Action getAction()
- Gets the action which is using the icon.
- Returns:
- the action
changed
protected void changed(String oldValue,
String newValue)
- Description copied from class:
AbstractUIValue
- Called when the resource of this
AbstractDockColor has changed
- Specified by:
changed in class AbstractUIValue<String,TextValue>
- Parameters:
oldValue - the old value, can be nullnewValue - the new value, can be null