|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StandardDockAction
A StandardDockAction is an object that is shown as graphical interface (like a button)
on some Components. The user can trigger an action, for example by pressing
a button.
StandardDockActions are linked with one or many Dockables
.
Note: this interface allows that one action is used for many Dockables with
unspecified type. However, some implementations may have restrictions, read
the documentation of those actions carefully.
Method Summary | |
---|---|
void |
addDockActionListener(StandardDockActionListener listener)
Adds a listener to this DockAction. |
javax.swing.Icon |
getDisabledIcon(Dockable dockable)
Gets the Icon of this DockAction, when this DockAction is shown together with dockable and is not enabled. |
Dockable |
getDockableRepresentation(Dockable dockable)
Tells whether this DockAction represents a Dockable . |
javax.swing.Icon |
getIcon(Dockable dockable)
Gets the Icon of this DockAction, when this DockAction is shown together with dockable . |
java.lang.String |
getText(Dockable dockable)
Gets the text of this DockActon, when this DockAction is shown together with dockable . |
java.lang.String |
getTooltipText(Dockable dockable)
Gets a tooltip for this DockActon, when this DockAction is shown together with dockable . |
boolean |
isEnabled(Dockable dockable)
Tells whether this DockAction can be triggered together with the dockable . |
void |
removeDockActionListener(StandardDockActionListener listener)
Removes a listener from this DockStation. |
Methods inherited from interface bibliothek.gui.dock.action.DockAction |
---|
bind, createView, trigger, unbind |
Method Detail |
---|
javax.swing.Icon getIcon(Dockable dockable)
dockable
.
dockable
- The Dockable
for which the action-icon
should be chosen.
dockable
, or null
.javax.swing.Icon getDisabledIcon(Dockable dockable)
dockable
and is not enabled.
dockable
- The Dockable
for which the action-icon
should be chosen.
dockable
, or null
.java.lang.String getText(Dockable dockable)
dockable
.
dockable
- The Dockable
for which the action-text
should be chosen.
dockable
, or null
.java.lang.String getTooltipText(Dockable dockable)
dockable
.
dockable
- The Dockable
for which the action-tooltip
should be chosen.
dockable
, or null
.void addDockActionListener(StandardDockActionListener listener)
listener
- The listener to addvoid removeDockActionListener(StandardDockActionListener listener)
listener
- The listener to removeboolean isEnabled(Dockable dockable)
dockable
.
dockable
- The Dockable
for which this action maybe
triggered.
true
if the user should be able to trigger
this action, false
otherwiseDockable getDockableRepresentation(Dockable dockable)
DockAction
represents a Dockable
. If so, the framework
may register views for this action as DockElementRepresentative
.
dockable
- The Dockable
for which this action may be triggered
Dockable
which is represented by this action, can be null
.
Normally dockable
should not be the result.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |