|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.toolbar.expand.DefaultExpandableToolbarItemStrategy
public class DefaultExpandableToolbarItemStrategy
The default implementation of an ExpandableToolbarItemStrategy
searches for ExpandableToolbarItems.
| Field Summary |
|---|
| Fields inherited from interface bibliothek.gui.dock.ExpandableToolbarItemStrategy |
|---|
STRATEGY |
| Constructor Summary | |
|---|---|
DefaultExpandableToolbarItemStrategy()
|
|
| 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. |
protected void |
handleAdd(bibliothek.gui.DockStation station)
|
protected void |
handleRemove(bibliothek.gui.DockStation station)
|
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. |
protected ExpandableToolbarItemStrategyListener[] |
listeners()
Gets all the ExpandableToolbarItemStrategyListeners that are
currently registered. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultExpandableToolbarItemStrategy()
| Method Detail |
|---|
protected void handleAdd(bibliothek.gui.DockStation station)
protected void handleRemove(bibliothek.gui.DockStation station)
public void install(bibliothek.gui.DockController controller)
ExpandableToolbarItemStrategycontroller.
install in interface ExpandableToolbarItemStrategycontroller - the controller using this strategypublic void uninstall(bibliothek.gui.DockController controller)
ExpandableToolbarItemStrategycontroller.
uninstall in interface ExpandableToolbarItemStrategycontroller - the controller which is no longer using this strategy
public boolean isEnabled(bibliothek.gui.Dockable item,
ExpandedState state)
ExpandableToolbarItemStrategyDockable item can have the state
state.
isEnabled in interface ExpandableToolbarItemStrategyitem - 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 statepublic ExpandedState getState(bibliothek.gui.Dockable item)
ExpandableToolbarItemStrategyitem has.
getState in interface ExpandableToolbarItemStrategyitem - some Dockable
null if item is not supported by this strategy.
public void setState(bibliothek.gui.Dockable item,
ExpandedState state)
ExpandableToolbarItemStrategyitem to state.
setState in interface ExpandableToolbarItemStrategyitem - the item whose state is changedstate - the new state, this is a state which is enabledpublic void addExpandedListener(ExpandableToolbarItemStrategyListener listener)
ExpandableToolbarItemStrategy
addExpandedListener in interface ExpandableToolbarItemStrategylistener - the new listener, not nullpublic void removeExpandedListener(ExpandableToolbarItemStrategyListener listener)
ExpandableToolbarItemStrategy
removeExpandedListener in interface ExpandableToolbarItemStrategylistener - the listener to removeprotected ExpandableToolbarItemStrategyListener[] listeners()
ExpandableToolbarItemStrategyListeners that are
currently registered.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||