@ClientOnly public class LookAndFeelMenuPiece extends BaseMenuPiece
LookAndFeel
. The
set of LookAndFeel
s 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
LookAndFeel s. |
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, removeAll
addListener, fireInsert, fireRemove, getMenu, getParent, isBound, items, removeListener, setParent
public 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 frame
s
user interface is updated when the LookAndFeel
changes.
Can be null
.list
- the set of available LookAndFeel
s. Can be null
.public void bind()
MenuPiece
bind
in class MenuPiece
MenuPiece.unbind()
public void unbind()
MenuPiece
unbind
in class MenuPiece
MenuPiece.bind()
@Deprecated public void destroy()
unbind()
is automatically called if this menu is no
longer visible, that method will also uninstall resourcespublic LookAndFeelList getList()
LookAndFeel
s.