|
||||||||||
| 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.CloseableDockableMenuPiece
bibliothek.gui.dock.common.menu.SingleCDockableListMenuPiece
public class SingleCDockableListMenuPiece
A piece of a menu that adds an item for each closeable CDockable
that can be found in a CControl. The user can show or hide
CDockables by clicking onto these items.
Please note: this menu shows only CDockables that really do exist,
if a dockable is loaded lazy, then this menu does not show the element!
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class bibliothek.gui.dock.facile.menu.CloseableDockableMenuPiece |
|---|
CloseableDockableMenuPiece.Item |
| Constructor Summary | |
|---|---|
SingleCDockableListMenuPiece(CControl control)
Creates a new piece. |
|
| Method Summary | |
|---|---|
void |
bind()
This method is called if there is a possibility for the user to see this menu. |
protected void |
hide(Dockable dockable)
Ensures that dockable is not visible. |
protected boolean |
include(Dockable dockable)
Tells whether an item should be inserted into the menu for the given dockable or not. |
void |
setControl(CControl control)
Exchanges the CControl whose CDockables are observed
by this piece. |
void |
setFrontend(DockFrontend frontend)
Sets the frontend which will be observed by this piece. |
protected void |
show(Dockable dockable)
Ensures that dockable is visible. |
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.facile.menu.CloseableDockableMenuPiece |
|---|
check, create, getFrontend, getOrder, insert, reorder, setOrder |
| 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 SingleCDockableListMenuPiece(CControl control)
control - the control to observe for new Dockables, can be null.| Method Detail |
|---|
public void setControl(CControl control)
CControl whose CDockables are observed
by this piece.
control - the new control to observe, can be nullpublic void bind()
MenuPiece
bind in class CloseableDockableMenuPieceMenuPiece.unbind()public void unbind()
MenuPiece
unbind in class CloseableDockableMenuPieceMenuPiece.bind()public void setFrontend(DockFrontend frontend)
CloseableDockableMenuPieceDockable that is registered at the frontend will
get an item in the menu of this piece.
setFrontend in class CloseableDockableMenuPiecefrontend - the list of Dockables, can be nullprotected void show(Dockable dockable)
CloseableDockableMenuPiecedockable is visible.
show in class CloseableDockableMenuPiecedockable - the element to showprotected void hide(Dockable dockable)
CloseableDockableMenuPiecedockable is not visible.
hide in class CloseableDockableMenuPiecedockable - the element to hideprotected boolean include(Dockable dockable)
CloseableDockableMenuPiecedockable or not.
include in class CloseableDockableMenuPiecedockable - the element to check
true if there should be an item added to the menu
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||