|
||||||||||
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.facile.menu.NodeMenuPiece
public class NodeMenuPiece
A piece which uses a set of other pieces to create a composite.
Constructor Summary | |
---|---|
NodeMenuPiece()
|
Method Summary | |
---|---|
void |
add(MenuPiece piece)
Adds a new child to the end of this piece. |
void |
bind()
This method is called if there is a possibility for the user to see this menu. |
void |
fill(List<Component> items)
Inserts all items of this piece into items . |
MenuPiece |
getChild(int index)
Gets the index'th child of this piece. |
int |
getChildrenCount()
Gets the number of children this piece has. |
int |
getItemCount()
Gets the number of items this MenuPiece added to its menu . |
void |
insert(int index,
MenuPiece piece)
Inserts a new child in this piece. |
void |
remove(int index)
Removes a child from this piece. |
void |
remove(MenuPiece piece)
Removes a child from this piece. |
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.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 NodeMenuPiece()
Method Detail |
---|
public void add(MenuPiece piece)
piece
- the new childpublic void insert(int index, MenuPiece piece)
index
- the location of the childpiece
- the new childpublic void remove(MenuPiece piece)
piece
- the child to removepublic void remove(int index)
index
- the index of the childpublic int getChildrenCount()
public MenuPiece getChild(int index)
index
- the location of the child
public void fill(List<Component> items)
MenuPiece
items
.
fill
in class MenuPiece
items
- the list which has to be filled in the same order as the items
will appear on the menupublic int getItemCount()
MenuPiece
MenuPiece
added to its menu
.
getItemCount
in class MenuPiece
public void bind()
MenuPiece
bind
in class MenuPiece
MenuPiece.unbind()
public void unbind()
MenuPiece
unbind
in class MenuPiece
MenuPiece.bind()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |