public class ThemeDockableSelection extends Object implements DockableSelection
Constructor and Description |
---|
ThemeDockableSelection(DockController controller)
Creates a new object
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
public ThemeDockableSelection(DockController controller)
controller
- the controller whose DockTheme
will be usedpublic void addDockableSelectionListener(DockableSelectionListener listener)
DockableSelection
addDockableSelectionListener
in interface DockableSelection
listener
- the new listenerpublic void close()
DockableSelection
close
in interface DockableSelection
public 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 alltrue
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