bibliothek.gui.dock.util.text
Class SwingActionText
java.lang.Object
bibliothek.gui.dock.util.AbstractUIValue<java.lang.String,TextValue>
bibliothek.gui.dock.util.text.TextValue
bibliothek.gui.dock.util.text.SwingActionText
- All Implemented Interfaces:
- UIValue<java.lang.String>
public class SwingActionText
- extends TextValue
A text that is used by an Action
.
- Author:
- Benjamin Sigg
Method Summary |
protected void |
changed(java.lang.String oldValue,
java.lang.String newValue)
Called when the resource of this AbstractDockColor has changed |
javax.swing.Action |
getAction()
Gets the action which is using the icon. |
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(java.lang.String id,
java.lang.String key,
javax.swing.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(java.lang.String id,
java.lang.String key,
javax.swing.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 javax.swing.Action getAction()
- Gets the action which is using the icon.
- Returns:
- the action
changed
protected void changed(java.lang.String oldValue,
java.lang.String newValue)
- Description copied from class:
AbstractUIValue
- Called when the resource of this
AbstractDockColor
has changed
- Specified by:
changed
in class AbstractUIValue<java.lang.String,TextValue>
- Parameters:
oldValue
- the old value, can be null
newValue
- the new value, can be null