public interface ExpandableToolbarItem
extends bibliothek.gui.Dockable
ExpandableToolbarItem
is a part of a toolbar that can have
different shapes.Modifier and Type | Method and Description |
---|---|
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 . |
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
asDockable, asDockStation, getFactoryID
getComponentConfiguration, setComponentConfiguration
void addExpandableListener(ExpandableToolbarItemListener listener)
listener
to this item.listener
- the new listener, not null
void removeExpandableListener(ExpandableToolbarItemListener listener)
listener
from this item.listener
- the listener to removeboolean isEnabled(ExpandedState state)
ExpandableToolbarItem
likes to be in state state
.state
- a possible statethis
item likes to be in state
void setExpandedState(ExpandedState state)
state
. Note that state
can be any state, including those for which isEnabled(ExpandedState)
returned
false
.state
- the new stateExpandedState getExpandedState()