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
Dockables 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)
DockableSelectionaddDockableSelectionListener in interface DockableSelectionlistener - the new listenerpublic void close()
DockableSelectionclose in interface DockableSelectionpublic Component getComponent()
DockableSelectiongetComponent in interface DockableSelectionpublic boolean hasChoices(DockController controller)
DockableSelectioncontroller has at least two different
Dockables which would be shown on this DockableSelection.hasChoices in interface DockableSelectioncontroller - 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)
DockableSelectionopen in interface DockableSelectioncontroller - the controller for which the selection will happenpublic void removeDockableSelectionListener(DockableSelectionListener listener)
DockableSelectionremoveDockableSelectionListener in interface DockableSelectionlistener - the new listenerCopyright © 2017 Docking Frames. All rights reserved.