|
||||||||||
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.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
CDockable
s by clicking onto these items.
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 | |
---|---|
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 CDockable s 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. |
Methods inherited from class bibliothek.gui.dock.facile.menu.CloseableDockableMenuPiece |
---|
check, create, getFrontend, insert |
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, 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 Dockable
s, can be null
.Method Detail |
---|
public void setControl(CControl control)
CControl
whose CDockable
s are observed
by this piece.
control
- the new control to observe, can be null
public void setFrontend(DockFrontend frontend)
CloseableDockableMenuPiece
Dockable
that is registered at the frontend
will
get an item in the menu of this piece.
setFrontend
in class CloseableDockableMenuPiece
frontend
- the list of Dockable
s, can be null
protected void show(Dockable dockable)
CloseableDockableMenuPiece
dockable
is visible.
show
in class CloseableDockableMenuPiece
dockable
- the element to showprotected void hide(Dockable dockable)
CloseableDockableMenuPiece
dockable
is not visible.
hide
in class CloseableDockableMenuPiece
dockable
- the element to hideprotected boolean include(Dockable dockable)
CloseableDockableMenuPiece
dockable
or not.
include
in class CloseableDockableMenuPiece
dockable
- 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 |