bibliothek.gui.dock.toolbar.expand
Interface ExpandableToolbarItem

All Superinterfaces:
bibliothek.gui.Dockable, bibliothek.gui.dock.DockElement, bibliothek.gui.dock.DockElementRepresentative, bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.Dockable>
All Known Implementing Classes:
AbstractToolbarDockStation, CommonToolbarItemDockable, ComponentDockable, OrientedComponentDockable, ToolbarDockStation, ToolbarGroupDockStation, ToolbarItemDockable

public interface ExpandableToolbarItem
extends bibliothek.gui.Dockable

An ExpandableToolbarItem is a part of a toolbar that can have different shapes.

Author:
Benjamin Sigg

Method Summary
 void addExpandableListener(ExpandableToolbarItemListener listener)
          Adds the observer listener to this item.
 ExpandedState getExpandedState()
          Gets the current state of this item.
 void removeExpandableListener(ExpandableToolbarItemListener listener)
          Removes the observer listener from this item.
 void setExpandedState(ExpandedState state)
          Changes the state of this item to state.
 
Methods inherited from interface bibliothek.gui.Dockable
accept, accept, addDockableListener, addDockableStateListener, addDockHierarchyListener, addMouseInputListener, bind, configureDisplayerHints, getComponent, getController, getDockParent, getGlobalActionOffers, getLocalActionOffers, getTitleIcon, getTitleText, getTitleToolTip, isDockableShowing, isDockableVisible, listBoundTitles, removeDockableListener, removeDockableStateListener, removeDockHierarchyListener, removeMouseInputListener, requestDisplayer, requestDockTitle, setController, setDockParent, unbind
 
Methods inherited from interface bibliothek.gui.dock.DockElement
asDockable, asDockStation, getFactoryID
 
Methods inherited from interface bibliothek.gui.dock.DockElementRepresentative
getElement, getPopupLocation, isUsedAsTitle, shouldFocus, shouldTransfersFocus
 
Methods inherited from interface bibliothek.gui.dock.station.support.PlaceholderListItem
asDockable
 

Method Detail

addExpandableListener

void addExpandableListener(ExpandableToolbarItemListener listener)
Adds the observer listener to this item.

Parameters:
listener - the new listener, not null

removeExpandableListener

void removeExpandableListener(ExpandableToolbarItemListener listener)
Removes the observer listener from this item.

Parameters:
listener - the listener to remove

setExpandedState

void setExpandedState(ExpandedState state)
Changes the state of this item to state.

Parameters:
state - the new state

getExpandedState

ExpandedState getExpandedState()
Gets the current state of this item.

Returns:
the current state