|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExpandableToolbarItemStrategy
An ExpandableToolbarItemStrategy is a strategy that allows to expand
and to shrink items of a toolbar.
| Field Summary | |
|---|---|
static bibliothek.gui.dock.util.PropertyKey<ExpandableToolbarItemStrategy> |
STRATEGY
An identifier to exchange the strategy. |
| Method Summary | |
|---|---|
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(bibliothek.gui.Dockable item)
Gets the current state item has. |
void |
install(bibliothek.gui.DockController controller)
Called if this strategy is used by controller. |
boolean |
isEnabled(bibliothek.gui.Dockable item,
ExpandedState state)
Tells whether the Dockable item can have the state
state. |
void |
removeExpandedListener(ExpandableToolbarItemStrategyListener listener)
Removes a listener from this strategy. |
void |
setState(bibliothek.gui.Dockable item,
ExpandedState state)
Changes the state of item to state. |
void |
uninstall(bibliothek.gui.DockController controller)
Called if this strategy is no longer used by controller. |
| Field Detail |
|---|
static final bibliothek.gui.dock.util.PropertyKey<ExpandableToolbarItemStrategy> STRATEGY
DefaultExpandableToolbarItemStrategy| Method Detail |
|---|
void install(bibliothek.gui.DockController controller)
controller.
controller - the controller using this strategyvoid uninstall(bibliothek.gui.DockController controller)
controller.
controller - the controller which is no longer using this strategy
boolean isEnabled(bibliothek.gui.Dockable item,
ExpandedState state)
Dockable item can have the state
state.
item - the item to checkstate - the state that might be applied to item
true if this strategy knows how to change the state
of item to stateExpandedState getState(bibliothek.gui.Dockable item)
item has.
item - some Dockable
null if item is not supported by this strategy.
void setState(bibliothek.gui.Dockable item,
ExpandedState state)
item to state.
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 remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||