public interface SingleTabDecider
Dockables whether there should be a single tab
shown for them.| Modifier and Type | Field and Description |
|---|---|
static SingleTabDecider |
ALLWAYS
Deprecated.
please use
ALWAYS instead |
static SingleTabDecider |
ALWAYS
this decider shows a tab, unless the element is a station itself or on a
StackDockStation |
static SingleTabDecider |
NONE
this decider never shows a tab
|
static PropertyKey<SingleTabDecider> |
SINGLE_TAB_DECIDER
Key for the
DockProperties |
| Modifier and Type | Method and Description |
|---|---|
void |
addSingleTabDeciderListener(SingleTabDeciderListener listener)
Adds a listener to this decider, the listener is to be informed if
the single tab property of a
Dockable changes. |
void |
removeSingleTabDeciderListener(SingleTabDeciderListener listener)
Removes a listener from this decider.
|
boolean |
showSingleTab(DockStation station,
Dockable dockable)
Decides whether to show a single tab for
dockable |
static final SingleTabDecider NONE
static final SingleTabDecider ALWAYS
StackDockStation@Deprecated @Todo(target=VERSION_1_1_3, priority=MINOR, compatibility=BREAK_MINOR, description="remove this constant without replacement") static final SingleTabDecider ALLWAYS
ALWAYS insteadStackDockStationstatic final PropertyKey<SingleTabDecider> SINGLE_TAB_DECIDER
DockPropertiesboolean showSingleTab(DockStation station, Dockable dockable)
dockablestation - the parent of dockabledockable - the element for which a single tab might be showntrue if a tab should be shown, false
if notvoid addSingleTabDeciderListener(SingleTabDeciderListener listener)
Dockable changes.listener - the new listenervoid removeSingleTabDeciderListener(SingleTabDeciderListener listener)
listener - the listener to removeCopyright © 2017 Docking Frames. All rights reserved.