Package bibliothek.gui.dock.facile.menu
Class LookAndFeelMenuPiece
java.lang.Object
bibliothek.gui.dock.support.menu.MenuPiece
bibliothek.gui.dock.support.menu.BaseMenuPiece
bibliothek.gui.dock.facile.menu.LookAndFeelMenuPiece
- Direct Known Subclasses:
CLookAndFeelMenuPiece
A menu that contains an item for each available
LookAndFeel. The
set of LookAndFeels is determined through a LookAndFeelList.- Author:
- Benjamin Sigg
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new menu.LookAndFeelMenuPiece(JFrame frame, LookAndFeelList list) Creates a new menu. -
Method Summary
Modifier and TypeMethodDescriptionvoidbind()This method is called if there is a possibility for the user to see this menu.voiddestroy()Deprecated.getList()Gets the list ofLookAndFeels.voidunbind()This method is called if the user has no longer any possibility to see this menu.Methods 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
-
LookAndFeelMenuPiece
public LookAndFeelMenuPiece()Creates a new menu. -
LookAndFeelMenuPiece
Creates a new menu.- Parameters:
frame- the main frame of the application. This piece will add a listener toframeand free resources the momentframeis closed. This menu will also ensure thatframes user interface is updated when theLookAndFeelchanges. Can benull.list- the set 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. -
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. -
destroy
Deprecated.the methodunbind()is automatically called if this menu is no longer visible, that method will also uninstall resourcesFrees resources and cuts connections to other objects such that this piece can be removed by the garbage collector. -
getList
Gets the list ofLookAndFeels.- Returns:
- the list
-
unbind()is automatically called if this menu is no longer visible, that method will also uninstall resources