bibliothek.gui.dock.themes.basic
Class BasicStackDockComponent.BasicTab

java.lang.Object
  extended by bibliothek.gui.dock.station.stack.DefaultStackDockComponent.Tab
      extended by bibliothek.gui.dock.themes.basic.BasicStackDockComponent.BasicTab
All Implemented Interfaces:
DockableFocusListener
Enclosing class:
BasicStackDockComponent

protected class BasicStackDockComponent.BasicTab
extends DefaultStackDockComponent.Tab
implements DockableFocusListener

A basic tab that listens to the DockController to recognize when it is focused.

Author:
Benjamin Sigg

Field Summary
 
Fields inherited from class bibliothek.gui.dock.station.stack.DefaultStackDockComponent.Tab
dockable
 
Constructor Summary
BasicStackDockComponent.BasicTab(Dockable dockable)
           
 
Method Summary
 void dockableFocused(DockController controller, Dockable dockable)
          Invoked when dockable has gained the focus.
 void dockableSelected(DockController controller, DockStation station, Dockable dockable)
          Called when station changes its selected dockable.
 void setController(DockController controller)
          Tells this tab which controller is currently used.
 
Methods inherited from class bibliothek.gui.dock.station.stack.DefaultStackDockComponent.Tab
getDockable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicStackDockComponent.BasicTab

public BasicStackDockComponent.BasicTab(Dockable dockable)
Method Detail

setController

public void setController(DockController controller)
Description copied from class: DefaultStackDockComponent.Tab
Tells this tab which controller is currently used. Set to null if this tab is no longer used, or when the connection to a DockController is lost.

Overrides:
setController in class DefaultStackDockComponent.Tab
Parameters:
controller - the new source of information, can be null

dockableFocused

public void dockableFocused(DockController controller,
                            Dockable dockable)
Description copied from interface: DockableFocusListener
Invoked when dockable has gained the focus.

Specified by:
dockableFocused in interface DockableFocusListener
Parameters:
controller - the origin of the event
dockable - the Dockable which is now focused, can be null

dockableSelected

public void dockableSelected(DockController controller,
                             DockStation station,
                             Dockable dockable)
Description copied from interface: DockableFocusListener
Called when station changes its selected dockable.

Specified by:
dockableSelected in interface DockableFocusListener
Parameters:
controller - the controller in whose realm the event occurred
station - some DockStation
dockable - the currently selected element on station, can be null
See Also:
DockStation.getFrontDockable()