Modifier and Type | Field and Description |
---|---|
static Path |
KIND_SWING_ACTION
the kind of value this
UIValue is |
Constructor and Description |
---|
SwingActionText(java.lang.String id,
java.lang.String key,
javax.swing.Action action)
Creates a new
DockActionIcon . |
SwingActionText(java.lang.String id,
java.lang.String key,
javax.swing.Action action,
Path kind)
Creates a new
DockActionIcon . |
Modifier and Type | Method and Description |
---|---|
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.
|
me, setController
public SwingActionText(java.lang.String id, java.lang.String key, javax.swing.Action action)
DockActionIcon
.id
- the unique identifier of the iconkey
- the key to be used for Action.putValue(String, Object)
action
- the action using the iconpublic SwingActionText(java.lang.String id, java.lang.String key, javax.swing.Action action, Path kind)
DockActionIcon
.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 ispublic javax.swing.Action getAction()
protected void changed(java.lang.String oldValue, java.lang.String newValue)
AbstractUIValue
AbstractDockColor
has changedchanged
in class AbstractUIValue<java.lang.String,TextValue>
oldValue
- the old value, can be null
newValue
- the new value, can be null