|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.toolbar.expand.DisabledExpandableToolbarItemStrategy
public class DisabledExpandableToolbarItemStrategy
This implementation of ExpandableToolbarItemStrategy does not do anything, it just disables
any feature related to expandable items.
| Field Summary |
|---|
| Fields inherited from interface bibliothek.gui.dock.ExpandableToolbarItemStrategy |
|---|
STRATEGY |
| Constructor Summary | |
|---|---|
DisabledExpandableToolbarItemStrategy()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DisabledExpandableToolbarItemStrategy()
| Method Detail |
|---|
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 remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||