|
||||||||||
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 ExpandableToolbarItem
s.
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.Dockable dockable)
|
protected void |
handleAdd(bibliothek.gui.DockStation station)
|
protected void |
handleRemove(bibliothek.gui.Dockable dockable)
|
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 ExpandableToolbarItemStrategyListener s 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.Dockable dockable)
protected void handleAdd(bibliothek.gui.DockStation station)
protected void handleRemove(bibliothek.gui.Dockable dockable)
protected void handleRemove(bibliothek.gui.DockStation station)
public void install(bibliothek.gui.DockController controller)
ExpandableToolbarItemStrategy
controller
.
install
in interface ExpandableToolbarItemStrategy
controller
- the controller using this strategypublic void uninstall(bibliothek.gui.DockController controller)
ExpandableToolbarItemStrategy
controller
.
uninstall
in interface ExpandableToolbarItemStrategy
controller
- the controller which is no longer using this strategypublic boolean isEnabled(bibliothek.gui.Dockable item, ExpandedState state)
ExpandableToolbarItemStrategy
Dockable
item
can have the state
state
.
isEnabled
in interface ExpandableToolbarItemStrategy
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 state
public ExpandedState getState(bibliothek.gui.Dockable item)
ExpandableToolbarItemStrategy
item
has.
getState
in interface ExpandableToolbarItemStrategy
item
- some Dockable
null
if item
is not supported by this strategy.public void setState(bibliothek.gui.Dockable item, ExpandedState state)
ExpandableToolbarItemStrategy
item
to state
. The strategy may refuse to do anything or
replace state
if state
is not enabled for item
.
setState
in interface ExpandableToolbarItemStrategy
item
- the item whose state is changedstate
- the new state, this is a state which is enabled
public void addExpandedListener(ExpandableToolbarItemStrategyListener listener)
ExpandableToolbarItemStrategy
addExpandedListener
in interface ExpandableToolbarItemStrategy
listener
- the new listener, not null
public void removeExpandedListener(ExpandableToolbarItemStrategyListener listener)
ExpandableToolbarItemStrategy
removeExpandedListener
in interface ExpandableToolbarItemStrategy
listener
- the listener to removeprotected ExpandableToolbarItemStrategyListener[] listeners()
ExpandableToolbarItemStrategyListener
s that are
currently registered.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |