bibliothek.gui.dock.util.text
Class SwingActionText

java.lang.Object
  extended by bibliothek.gui.dock.util.AbstractUIValue<String,TextValue>
      extended by bibliothek.gui.dock.util.text.TextValue
          extended by 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

Field Summary
static Path KIND_SWING_ACTION
          the kind of value this UIValue is
 
Fields inherited from class bibliothek.gui.dock.util.text.TextValue
KIND_TEXT
 
Constructor Summary
SwingActionText(String id, String key, Action action)
          Creates a new DockActionIcon.
SwingActionText(String id, String key, Action action, Path kind)
          Creates a new DockActionIcon.
 
Method Summary
protected  void changed(String oldValue, String newValue)
          Called when the resource of this AbstractDockColor has changed
 Action getAction()
          Gets the action which is using the icon.
 
Methods inherited from class bibliothek.gui.dock.util.text.TextValue
me, setController
 
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
 

Field Detail

KIND_SWING_ACTION

public static final Path KIND_SWING_ACTION
the kind of value this UIValue is

Constructor Detail

SwingActionText

public SwingActionText(String id,
                       String key,
                       Action action)
Creates a new DockActionIcon.

Parameters:
id - the unique identifier of the icon
key - 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 icon
action - the action using the icon
key - the key to be used for Action.putValue(String, Object)
kind - what kind of UIValue this is
Method Detail

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 null
newValue - the new value, can be null