bibliothek.gui.dock.themes.basic.action
Class DropDownItemHandle

java.lang.Object
  extended by bibliothek.gui.dock.themes.basic.action.DropDownItemHandle
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class DropDownItemHandle
extends java.lang.Object
implements java.awt.event.ActionListener

Represents an action and a view which are children of a DropDownAction

Author:
Benjamin Sigg

Constructor Summary
DropDownItemHandle(DockAction item, DropDownViewItem view, Dockable dockable, DropDownAction action)
          Creates a new item.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void bind()
          Connects the view.
 DropDownViewItem getView()
          Gets the view of the action.
 void unbind()
          Disconnects the view
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DropDownItemHandle

public DropDownItemHandle(DockAction item,
                          DropDownViewItem view,
                          Dockable dockable,
                          DropDownAction action)
Creates a new item.

Parameters:
item - the action
view - the view of item
dockable - the dockable for which the item is used
action - the owner of the item
Method Detail

getView

public DropDownViewItem getView()
Gets the view of the action.

Returns:
the view

bind

public void bind()
Connects the view.


unbind

public void unbind()
Disconnects the view


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener