public interface ExpandableToolbarItemStrategy
ExpandableToolbarItemStrategy is a strategy that allows to expand
and to shrink items of a toolbar.| Modifier and Type | Field and Description |
|---|---|
static PropertyKey<ExpandableToolbarItemStrategy> |
STRATEGY
An identifier to exchange the strategy.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addExpandedListener(ExpandableToolbarItemStrategyListener listener)
Adds a listener to this strategy, the listener is to be informed if the
state of an item changes.
|
ExpandedState |
getState(Dockable item)
Gets the current state
item has. |
void |
install(DockController controller)
Called if this strategy is used by
controller. |
boolean |
isEnabled(Dockable item,
ExpandedState state)
|
void |
removeExpandedListener(ExpandableToolbarItemStrategyListener listener)
Removes a listener from this strategy.
|
void |
setState(Dockable item,
ExpandedState state)
Changes the state of
item to state. |
void |
uninstall(DockController controller)
Called if this strategy is no longer used by
controller. |
static final PropertyKey<ExpandableToolbarItemStrategy> STRATEGY
DefaultExpandableToolbarItemStrategyvoid install(DockController controller)
controller.controller - the controller using this strategyvoid uninstall(DockController controller)
controller.controller - the controller which is no longer using this strategyboolean isEnabled(Dockable item, ExpandedState state)
item - the item to checkstate - the state that might be applied to itemtrue if this strategy knows how to change the state
of item to stateExpandedState getState(Dockable item)
item has.item - some Dockablenull if item is not supported by this strategy.void setState(Dockable item, ExpandedState state)
item to state. The strategy may refuse to do anything or
replace state if state is not enabled for item.item - the item whose state is changedstate - the new state, this is a state which is enabledvoid addExpandedListener(ExpandableToolbarItemStrategyListener listener)
listener - the new listener, not nullvoid removeExpandedListener(ExpandableToolbarItemStrategyListener listener)
listener - the listener to removeCopyright © 2018. All rights reserved.