@FrameworkOnly public interface SharingStandardDockAction extends StandardDockAction
SharingStandardDockAction is a StandardDockAction whose properties are
shared by all Dockables and whose properties can be modified by the client.BUTTON_CONTENT_FILTER| Modifier and Type | Method and Description |
|---|---|
KeyStroke |
getAccelerator()
Gets the type of
KeyEvent that must happen to trigger this
action. |
Icon |
getDisabledIcon()
Gets the icon that is shown when this action is not enabled.
|
Dockable |
getDockableRepresentation()
Gets the
Dockable which is represented by this DockAction. |
Icon |
getIcon()
Gets the default-icon that is shown for this action.
|
Icon |
getIcon(ActionContentModifier modifier)
Gets the icon that is used if the conditions of
modifier are met. |
String |
getText()
Gets the text that is shown for this action.
|
String |
getTooltip()
Gets the first part of the tooltip-text that is shown for this action.
|
String |
getTooltipText()
Gets the text that should be shown as tooltip of this action.
|
boolean |
isAcceleratorGlobal()
Whether this action is listening to global key events.
|
boolean |
isEnabled()
Gets the enabled-state for this action.
|
void |
setAccelerator(KeyStroke accelerator)
Sets the type of event that will trigger this action.
|
void |
setAcceleratorIsGlobal(boolean global)
Tells this action that the
accelerator is global. |
void |
setDisabledIcon(Icon disabledIcon)
Sets an icon that will be shown when this action is not enabled.
|
void |
setDockableRepresentation(Dockable dockable)
Sets the
Dockable which is represented by this DockAction. |
void |
setEnabled(boolean enabled)
Sets the enabled-state of this action.
|
void |
setIcon(ActionContentModifier modifier,
Icon icon)
Sets the icon which is to be used if the conditions of
modifier are met. |
void |
setIcon(Icon icon)
Sets the default-
icon for this action. |
void |
setText(String text)
Sets the
text which is shown for this action. |
void |
setTooltip(String tooltip)
Sets the first part of the tooltip-text which is shown for this action.
|
addDockActionListener, getDockableRepresentation, getIcon, getIconContexts, getText, getTooltipText, isEnabled, removeDockActionListenerbind, createView, trigger, unbindString getText()
nullsetText(String)void setText(String text)
text which is shown for this action.text - The text to show, or nullvoid setTooltip(String tooltip)
tooltip - The client defined part of the tooltip for this actionString getTooltip()
setTooltip(String)String getTooltipText()
getTooltip(), but also additional information
like the acceleratorboolean isEnabled()
true if this action can be triggered,
false otherwisesetEnabled(boolean)void setEnabled(boolean enabled)
enabled - The stateIcon getIcon()
nullsetIcon(Icon)void setIcon(Icon icon)
icon for this action. This icon
will be shown when no other icon fits the current states of
the action.icon - The icon, can be nullIcon getDisabledIcon()
nullsetDisabledIcon(Icon),
isEnabled()void setDisabledIcon(Icon disabledIcon)
disabledIcon - The disabled-icon, can be nullsetEnabled(boolean)Icon getIcon(ActionContentModifier modifier)
modifier are met.modifier - the key for the iconnullvoid setIcon(ActionContentModifier modifier, Icon icon)
modifier are met.modifier - the key of the iconicon - the new icon or nullvoid setDockableRepresentation(Dockable dockable)
Dockable which is represented by this DockAction. Some views of
this DockAction will register themselves as DockElementRepresentative representing
dockable.dockable - the new representation, can be nullDockable getDockableRepresentation()
Dockable which is represented by this DockAction.nullStandardDockAction.getDockableRepresentation(Dockable)KeyStroke getAccelerator()
KeyEvent that must happen to trigger this
action.nullvoid setAccelerator(KeyStroke accelerator)
accelerator - the type of event or null.void setAcceleratorIsGlobal(boolean global)
accelerator is global.
A global action is executed whenever the accelerator keys are typed anywhere in the scope of
DockingFrames (if for example the keys are typed on some random dialog, DockingFrames will not be
informed about the event).global - should this action be listening to global key eventsboolean isAcceleratorGlobal()
true if global key events are supportedCopyright © 2017 Docking Frames. All rights reserved.