|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.station.stack.tab.AbstractTabPaneComponent
bibliothek.gui.dock.station.stack.tab.AbstractTab
public abstract class AbstractTab
Abstract implemention of Tab
based on a real Component
. Clients
should call bind()
, unbind()
and setController(DockController)
to
fully utilize this class.
Constructor Summary | |
---|---|
AbstractTab(TabPane parent,
Dockable dockable)
|
Method Summary | |
---|---|
void |
bind()
Connects this tab with its parent and the DockController . |
Dockable |
getDockable()
Gets the element that is associated with this tab. |
protected abstract void |
informFocusChanged(boolean focused)
Called when the focus state of this tab has been changed. |
protected abstract void |
informSelectionChanged(boolean selected)
Called when the selection state of this tab has been changed. |
boolean |
isFocused()
Tells whether this tab is focused. |
boolean |
isSelected()
Tells whether this tab is selected. |
void |
setController(DockController controller)
Sets the controller in whose realm this AbstractTab works. |
void |
unbind()
Disconnects this tab from its parent and from the DockController . |
Methods inherited from class bibliothek.gui.dock.station.stack.tab.AbstractTabPaneComponent |
---|
getBounds, getComponent, getMaximumSize, getMinimumSize, getOverlap, getPreferredSize, getTabParent, setBounds |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface bibliothek.gui.dock.station.stack.tab.TabPaneComponent |
---|
getBounds, getMaximumSize, getMinimumSize, getOverlap, getPreferredSize, getTabParent, getZOrder, isPaneVisible, setBounds, setPaneVisible, setZOrder |
Constructor Detail |
---|
public AbstractTab(TabPane parent, Dockable dockable)
Method Detail |
---|
public Dockable getDockable()
Tab
getDockable
in interface Tab
public void bind()
DockController
.
IllegalStateException
- if this method has already been invokedpublic void unbind()
DockController
.
IllegalStateException
- if this method has already been invoked.public boolean isSelected()
TabPaneListener
and might not be the correct value while a selection changes.
protected abstract void informSelectionChanged(boolean selected)
selected
- the new selection statepublic boolean isFocused()
Dockable
is focused
.
This property is updated by a DockableFocusListener
, hence it
might not be accurate while the focus changes.
protected abstract void informFocusChanged(boolean focused)
focused
- the new focus statepublic void setController(DockController controller)
AbstractTab
works.
controller
- the controller
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |