|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.support.menu.MenuPiece bibliothek.gui.dock.support.menu.BaseMenuPiece bibliothek.gui.dock.facile.menu.LookAndFeelMenuPiece
@ClientOnly public class LookAndFeelMenuPiece
A menu that contains an item for each available LookAndFeel
. The
set of LookAndFeel
s is determined through a LookAndFeelList
.
Constructor Summary | |
---|---|
LookAndFeelMenuPiece()
Creates a new menu. |
|
LookAndFeelMenuPiece(JFrame frame,
LookAndFeelList list)
Creates a new menu. |
Method Summary | |
---|---|
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. |
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, isBound, items, removeListener, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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
.Method Detail |
---|
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 resources
public LookAndFeelList getList()
LookAndFeel
s.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |