bibliothek.gui.dock.common.menu
Class CLookAndFeelMenuPiece

java.lang.Object
  extended by bibliothek.gui.dock.support.menu.MenuPiece
      extended by bibliothek.gui.dock.support.menu.BaseMenuPiece
          extended by bibliothek.gui.dock.facile.menu.LookAndFeelMenuPiece
              extended by bibliothek.gui.dock.common.menu.CLookAndFeelMenuPiece
All Implemented Interfaces:
DestroyHook

public class CLookAndFeelMenuPiece
extends LookAndFeelMenuPiece
implements DestroyHook

A menupiece that shows an entry for each available LookAndFeel. The user can select a LookAndFeel which will be set immediately.

Author:
Benjamin Sigg

Constructor Summary
CLookAndFeelMenuPiece(CControl control)
          Creates a new menu.
CLookAndFeelMenuPiece(CControl control, LookAndFeelList list)
          Creates a new menu.
 
Method Summary
 void destroy()
          Frees resources and cuts connections to other objects such that this piece can be removed by the garbage collector.
 
Methods inherited from class bibliothek.gui.dock.facile.menu.LookAndFeelMenuPiece
getList
 
Methods inherited from class bibliothek.gui.dock.support.menu.BaseMenuPiece
add, addSeparator, fill, getItem, getItemCount, insert, insertSeparator, remove, remove, removeAll
 
Methods inherited from class bibliothek.gui.dock.support.menu.MenuPiece
addListener, fireInsert, fireRemove, getMenu, getParent, items, removeListener, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CLookAndFeelMenuPiece

public CLookAndFeelMenuPiece(CControl control)
Creates a new menu.

Parameters:
control - needed to load the last LookAndFeel

CLookAndFeelMenuPiece

public CLookAndFeelMenuPiece(CControl control,
                             LookAndFeelList list)
Creates a new menu.

Parameters:
control - needed to access the list of dockables
list - the list of available LookAndFeels, can be null
Method Detail

destroy

public void destroy()
Description copied from class: LookAndFeelMenuPiece
Frees resources and cuts connections to other objects such that this piece can be removed by the garbage collector.

Specified by:
destroy in interface DestroyHook
Overrides:
destroy in class LookAndFeelMenuPiece