|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.themes.ThemeDockableSelection
public class ThemeDockableSelection
A DockableSelection
that forwards any calls to the DockableSelection
of the current
DockTheme
.
Constructor Summary | |
---|---|
ThemeDockableSelection(DockController controller)
Creates a new object |
Method Summary | |
---|---|
void |
addDockableSelectionListener(DockableSelectionListener listener)
Adds a listener that gets informed when the state of this selection changes. |
void |
close()
Called when the current selection is no longer needed either because a selection was done or was canceled. |
java.awt.Component |
getComponent()
Gets the component which represents the selection. |
boolean |
hasChoices(DockController controller)
Checks whether controller has at least two different
Dockable s which would be shown on this DockableSelection . |
void |
open(DockController controller)
Called when a new selection is about to happen. |
void |
removeDockableSelectionListener(DockableSelectionListener listener)
Removes a listener that gets informed when the state of this selection changes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThemeDockableSelection(DockController controller)
controller
- the controller whose DockTheme
will be usedMethod Detail |
---|
public void addDockableSelectionListener(DockableSelectionListener listener)
DockableSelection
addDockableSelectionListener
in interface DockableSelection
listener
- the new listenerpublic void close()
DockableSelection
close
in interface DockableSelection
public java.awt.Component getComponent()
DockableSelection
getComponent
in interface DockableSelection
public boolean hasChoices(DockController controller)
DockableSelection
controller
has at least two different
Dockable
s which would be shown on this DockableSelection
.
hasChoices
in interface DockableSelection
controller
- the controller which might not have any children at all
true
if opening this DockableSelection
gives
the user a choice, false
if this selection would not show
anythingpublic void open(DockController controller)
DockableSelection
open
in interface DockableSelection
controller
- the controller for which the selection will happenpublic void removeDockableSelectionListener(DockableSelectionListener listener)
DockableSelection
removeDockableSelectionListener
in interface DockableSelection
listener
- the new listener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |