bibliothek.gui.dock.action
Class DockActionIcon

java.lang.Object
  extended by bibliothek.gui.dock.util.AbstractUIValue<Icon,DockIcon>
      extended by bibliothek.gui.dock.util.icon.DockIcon
          extended by bibliothek.gui.dock.action.DockActionIcon
All Implemented Interfaces:
UIValue<Icon>

public abstract class DockActionIcon
extends DockIcon

This DockIcon is used to get Icons for a DockAction.

Author:
Benjamin Sigg

Field Summary
static Path KIND_DOCK_ACTION
          the kind of value this UIValue is
 
Fields inherited from class bibliothek.gui.dock.util.icon.DockIcon
KIND_ICON
 
Constructor Summary
DockActionIcon(String id, DockAction action)
          Creates a new DockActionIcon.
DockActionIcon(String id, DockAction action, Path kind)
          Creates a new DockActionIcon.
 
Method Summary
 DockAction getAction()
          Gets the action which is using the icon.
 
Methods inherited from class bibliothek.gui.dock.util.icon.DockIcon
me, setController
 
Methods inherited from class bibliothek.gui.dock.util.AbstractUIValue
changed, 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_DOCK_ACTION

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

Constructor Detail

DockActionIcon

public DockActionIcon(String id,
                      DockAction action)
Creates a new DockActionIcon.

Parameters:
id - the unique identifier of the icon
action - the action using the icon

DockActionIcon

public DockActionIcon(String id,
                      DockAction action,
                      Path kind)
Creates a new DockActionIcon.

Parameters:
id - the unique identifier of the icon
action - the action using the icon
kind - what kind of UIValue this is
Method Detail

getAction

public DockAction getAction()
Gets the action which is using the icon.

Returns:
the action