@ClientOnly public class LookAndFeelMenuPiece extends BaseMenuPiece
LookAndFeel. The
set of LookAndFeels is determined through a LookAndFeelList.| Constructor and Description |
|---|
LookAndFeelMenuPiece()
Creates a new menu.
|
LookAndFeelMenuPiece(JFrame frame,
LookAndFeelList list)
Creates a new menu.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bind()
This method is called if there is a possibility for the user to see this menu.
|
void |
destroy()
Deprecated.
the method
unbind() is automatically called if this menu is no
longer visible, that method will also uninstall resources |
LookAndFeelList |
getList()
Gets the list of
LookAndFeels. |
void |
unbind()
This method is called if the user has no longer any possibility to see this menu.
|
add, addSeparator, fill, getItem, getItemCount, insert, insertSeparator, remove, remove, removeAlladdListener, fireInsert, fireRemove, getMenu, getParent, isBound, items, removeListener, setParentpublic LookAndFeelMenuPiece()
public LookAndFeelMenuPiece(JFrame frame, LookAndFeelList list)
frame - the main frame of the application. This piece will add
a listener to frame and free resources the moment
frame is closed. This menu will also ensure that frames
user interface is updated when the LookAndFeel changes.
Can be null.list - the set of available LookAndFeels. Can be null.public void bind()
MenuPiecebind in class MenuPieceMenuPiece.unbind()public void unbind()
MenuPieceunbind in class MenuPieceMenuPiece.bind()@Deprecated public void destroy()
unbind() is automatically called if this menu is no
longer visible, that method will also uninstall resourcespublic LookAndFeelList getList()
LookAndFeels.Copyright © 2018. All rights reserved.