|
||||||||||
| 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.support.menu.BaseMenuPiece
bibliothek.gui.dock.facile.menu.FreeMenuPiece
@ClientOnly public class FreeMenuPiece
A MenuPiece that does not add any children by itself. All items
have to be added or removed directly by the client.
| Constructor Summary | |
|---|---|
FreeMenuPiece()
|
|
| Method Summary | |
|---|---|
void |
add(java.awt.Component item)
Adds item at the end of this piece. |
void |
addSeparator()
Adds a separator at the end of this piece. |
java.awt.Component |
getItem(int index)
Gets the index'th item of this piece. |
int |
getItemCount()
Gets the number of items this MenuPiece added to its menu. |
void |
insert(int index,
java.awt.Component item)
Inserts a new item into the menu. |
void |
insertSeparator(int index)
Inserts a separator into this piece. |
void |
remove(java.awt.Component item)
Removes item from the menu. |
void |
remove(int index)
Removes the index'th item of this piece. |
| Methods inherited from class bibliothek.gui.dock.support.menu.BaseMenuPiece |
|---|
fill, removeAll |
| Methods inherited from class bibliothek.gui.dock.support.menu.MenuPiece |
|---|
addListener, bind, fireInsert, fireRemove, getMenu, getParent, isBound, items, removeListener, setParent, unbind |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FreeMenuPiece()
| Method Detail |
|---|
public int getItemCount()
MenuPieceMenuPiece added to its menu.
getItemCount in class BaseMenuPiecepublic java.awt.Component getItem(int index)
BaseMenuPiece
getItem in class BaseMenuPieceindex - the location of the item
public void add(java.awt.Component item)
BaseMenuPieceitem at the end of this piece.
add in class BaseMenuPieceitem - the item to add.public void addSeparator()
BaseMenuPiece
addSeparator in class BaseMenuPiece
public void insert(int index,
java.awt.Component item)
BaseMenuPiece
insert in class BaseMenuPieceindex - the location of the new item, measured in the coordinate
space of this piece.item - the new item.public void insertSeparator(int index)
BaseMenuPiece
insertSeparator in class BaseMenuPieceindex - the location of the separatorpublic void remove(int index)
BaseMenuPiece
remove in class BaseMenuPieceindex - the location of the item to remove.public void remove(java.awt.Component item)
BaseMenuPieceitem from the menu.
remove in class BaseMenuPieceitem - the item to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||