|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.support.menu.MenuPiece
bibliothek.gui.dock.facile.menu.NodeMenuPiece
bibliothek.gui.dock.facile.menu.RootMenuPiece
public class RootMenuPiece
The root of a tree of MenuPieces.
| Constructor Summary | |
|---|---|
RootMenuPiece()
Creates a new root-piece, using a normal JMenu to inserts
its content. |
|
RootMenuPiece(JMenu menu)
Creates a new root-piece. |
|
RootMenuPiece(String text,
boolean disableWhenEmpty,
MenuPiece... pieces)
Creates a new root-piece, using a normal JMenu. |
|
| Method Summary | |
|---|---|
JMenu |
getMenu()
Gets the menu into which this MenuPiece adds its items. |
boolean |
isDisableWhenEmpty()
Whether to disable the menu when it is empty or not. |
void |
setDisableWhenEmpty(boolean disableWhenEmpty)
Disables the menu if there are no items in the menu. |
void |
setParent(MenuPiece parent)
Sets the parent of this piece. |
| Methods inherited from class bibliothek.gui.dock.facile.menu.NodeMenuPiece |
|---|
add, fill, getChild, getChildrenCount, getItemCount, insert, remove, remove |
| Methods inherited from class bibliothek.gui.dock.support.menu.MenuPiece |
|---|
addListener, fireInsert, fireRemove, getParent, items, removeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RootMenuPiece()
JMenu to inserts
its content.
public RootMenuPiece(String text,
boolean disableWhenEmpty,
MenuPiece... pieces)
JMenu.
text - the text of the menudisableWhenEmpty - whether to disable the menu when it is emptypieces - the elements of this piecepublic RootMenuPiece(JMenu menu)
menu - the menu into which this piece will insert its content| Method Detail |
|---|
public void setDisableWhenEmpty(boolean disableWhenEmpty)
disableWhenEmpty - true if the menu should be
disabled when emptypublic boolean isDisableWhenEmpty()
true if the menu gets disabledpublic JMenu getMenu()
MenuPieceMenuPiece adds its items.
getMenu in class MenuPiecepublic final void setParent(MenuPiece parent)
MenuPiece
setParent in class MenuPieceparent - the parent, might be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||