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, 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.
 boolean isEnabled(ExpandedState state)
          Tells whether this ExpandableToolbarItem likes to be in state state.
 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

isEnabled

boolean isEnabled(ExpandedState state)
Tells whether this ExpandableToolbarItem likes to be in state state.

Parameters:
state - a possible state
Returns:
whether this item likes to be in state

setExpandedState

void setExpandedState(ExpandedState state)
Changes the state of this item to state. Note that state can be any state, including those for which isEnabled(ExpandedState) returned false.

Parameters:
state - the new state

getExpandedState

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

Returns:
the current state