Package bibliothek.gui.dock.common.menu
Class CLookAndFeelMenuPiece
java.lang.Object
bibliothek.gui.dock.support.menu.MenuPiece
bibliothek.gui.dock.support.menu.BaseMenuPiece
bibliothek.gui.dock.facile.menu.LookAndFeelMenuPiece
bibliothek.gui.dock.common.menu.CLookAndFeelMenuPiece
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionCLookAndFeelMenuPiece(CControl control) Creates a new menu.CLookAndFeelMenuPiece(CControl control, LookAndFeelList list) Creates a new menu. -
Method Summary
Methods inherited from class bibliothek.gui.dock.facile.menu.LookAndFeelMenuPiece
getListMethods inherited from class bibliothek.gui.dock.support.menu.BaseMenuPiece
add, addSeparator, fill, getItem, getItemCount, insert, insertSeparator, remove, remove, removeAllMethods inherited from class bibliothek.gui.dock.support.menu.MenuPiece
addListener, fireInsert, fireRemove, getMenu, getParent, isBound, items, removeListener, setParent
-
Constructor Details
-
CLookAndFeelMenuPiece
Creates a new menu.- Parameters:
control- needed to load the lastLookAndFeel
-
CLookAndFeelMenuPiece
Creates a new menu.- Parameters:
control- needed to access the list of dockableslist- the list of availableLookAndFeels, can benull
-
-
Method Details
-
bind
public void bind()Description copied from class:MenuPieceThis method is called if there is a possibility for the user to see this menu. The menu should register listeners, update its text etc. to be ready for that event. This method must never be called twice in a row.- Overrides:
bindin classLookAndFeelMenuPiece- See Also:
-
unbind
public void unbind()Description copied from class:MenuPieceThis method is called if the user has no longer any possibility to see this menu. The menu should unregister its listeners. This method must never be called twice in a row.- Overrides:
unbindin classLookAndFeelMenuPiece- See Also:
-
destroy
Deprecated.Description copied from class:LookAndFeelMenuPieceFrees resources and cuts connections to other objects such that this piece can be removed by the garbage collector.- Specified by:
destroyin interfaceDestroyHook- Overrides:
destroyin classLookAndFeelMenuPiece
-