bibliothek.gui.dock.station
Interface OrientingDockStation

All Superinterfaces:
bibliothek.gui.dock.DockElement, bibliothek.gui.DockStation
All Known Subinterfaces:
OrientedDockStation
All Known Implementing Classes:
AbstractToolbarDockStation, CommonToolbarContainerDockStation, ToolbarContainerDockStation, ToolbarDockStation, ToolbarGroupDockStation, ToolbarTabDockStation

public interface OrientingDockStation
extends bibliothek.gui.DockStation

A DockStation where the children have an orientation.

Author:
Benjamin Sigg

Method Summary
 void addOrientingDockStationListener(OrientingDockStationListener listener)
          Adds the observer listener to this station.
 Orientation getOrientationOf(bibliothek.gui.Dockable child)
          Tells what orientation child has.
 void removeOrientingDockStationListener(OrientingDockStationListener listener)
          Removes the observer listener from this station.
 
Methods inherited from interface bibliothek.gui.DockStation
accept, addDockStationListener, canDrag, canReplace, changed, drag, drop, drop, getController, getDirectActionOffers, getDockable, getDockableCount, getDockableProperty, getFrontDockable, getIndirectActionOffers, getLayers, getPlaceholders, getTheme, isChildShowing, isStationShowing, isStationVisible, isVisible, move, prepareDrag, prepareDrop, removeDockStationListener, replace, replace, requestChildDisplayer, requestChildDockTitle, setController, setFrontDockable, setPlaceholders, updateTheme
 
Methods inherited from interface bibliothek.gui.dock.DockElement
asDockable, asDockStation, getFactoryID
 

Method Detail

getOrientationOf

Orientation getOrientationOf(bibliothek.gui.Dockable child)
Tells what orientation child has.

Parameters:
child - a child of this station
Returns:
the orientation, never null
Throws:
IllegalArgumentException - if child is not a child

addOrientingDockStationListener

void addOrientingDockStationListener(OrientingDockStationListener listener)
Adds the observer listener to this station. The observer receives an event if the orientation of a child of this station changed. The observer may or may not receive an event upon dropping a new Dockable onto this station.

Parameters:
listener - the new observer, not null

removeOrientingDockStationListener

void removeOrientingDockStationListener(OrientingDockStationListener listener)
Removes the observer listener from this station.

Parameters:
listener - the listener to remove