|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.action.actions.AbstractStandardDockAction
bibliothek.gui.dock.action.actions.SimpleDockAction
bibliothek.gui.dock.action.actions.SimpleDropDownItemAction
bibliothek.gui.dock.action.actions.SimpleButtonAction
bibliothek.gui.dock.facile.action.CloseAction
public class CloseAction
This action shows an icon for "close". When the action is trigged,
the close-method is invoked with the
Dockable to close. This method will then remove the Dockable
from it's parent.
| Constructor Summary | |
|---|---|
CloseAction(DockController controller)
Sets the icon and the text of this action. |
|
| Method Summary | |
|---|---|
void |
action(Dockable dockable)
Invoked when this action is triggered by the user. |
protected void |
close(Dockable dockable)
Invoked when the dockable has to be closed. |
void |
setController(DockController controller)
Called when a new controller has been set. |
| Methods inherited from class bibliothek.gui.dock.action.actions.SimpleButtonAction |
|---|
addActionListener, createView, getCommand, removeActionListener, setCommand, trigger |
| Methods inherited from class bibliothek.gui.dock.action.actions.SimpleDropDownItemAction |
|---|
isDropDownSelectable, isDropDownSelectable, isDropDownTriggerable, isDropDownTriggerableNotSelected, isDropDownTriggerableSelected, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelected |
| Methods inherited from class bibliothek.gui.dock.action.actions.SimpleDockAction |
|---|
bound, getAccelerator, getDisabledIcon, getDisabledIcon, getDockableRepresentation, getDockableRepresentation, getIcon, getIcon, getText, getText, getTooltip, getTooltipText, getTooltipText, isEnabled, isEnabled, setAccelerator, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setText, setTooltip, trigger, unbound |
| Methods inherited from class bibliothek.gui.dock.action.actions.AbstractStandardDockAction |
|---|
addDockActionListener, bind, fireActionDisabledIconChanged, fireActionEnabledChanged, fireActionIconChanged, fireActionRepresentativeChanged, fireActionTextChanged, fireActionTooltipTextChanged, getBoundDockables, isBound, removeDockActionListener, unbind |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface bibliothek.gui.dock.action.DockAction |
|---|
bind, createView, trigger, unbind |
| Methods inherited from interface bibliothek.gui.dock.action.dropdown.DropDownItemAction |
|---|
isDropDownSelectable, isDropDownTriggerable |
| Constructor Detail |
|---|
public CloseAction(DockController controller)
controller - The controller from which this action should read
properties, might be null and can be changed by the
method setController| Method Detail |
|---|
public void setController(DockController controller)
ListeningDockAction
setController in interface ListeningDockActioncontroller - the new controllerpublic void action(Dockable dockable)
ButtonDockAction
action in interface ButtonDockActionaction in class SimpleButtonActiondockable - The Dockable which is associated with
this DockAction, and which shall be used for the current action.protected void close(Dockable dockable)
dockable has to be closed. The
default-behaviour of this method is to remove the Dockable
from it's parent, if there is a parent.
dockable - The Dockable to close
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||