|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.action.ContributionItem
org.eclipse.gef.internal.ui.palette.ToolbarDropdownContributionItem
A contribution item which delegates to an action.
This class may be instantiated; it is not intended to be subclassed.
Constructor Summary | |
ToolbarDropdownContributionItem(org.eclipse.jface.action.IAction action)
Creates a new contribution item from the given action. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Compares this action contribution item with another object. |
void |
fill(org.eclipse.swt.widgets.Composite parent)
The ToolbarDropdownContributionItem implementation of this
IContributionItem method creates a SWT Button for the action. |
void |
fill(org.eclipse.swt.widgets.Menu parent,
int index)
The ToolbarDropdownContributionItem implementation of this
IContributionItem method creates a SWT MenuItem for the action. |
void |
fill(org.eclipse.swt.widgets.ToolBar parent,
int index)
The ToolbarDropdownContributionItem implementation of this
IContributionItem method creates a SWT ToolItem for the action. |
org.eclipse.jface.action.IAction |
getAction()
Returns the action associated with this contribution item. |
int |
hashCode()
|
boolean |
isDynamic()
The action item implementation of this IContributionItem
method returns true for menu items and false
for everything else. |
boolean |
isEnabled()
|
protected boolean |
isEnabledAllowed()
Returns true if this item is allowed to enable,
false otherwise. |
void |
update()
The action item implementation of this IContributionItem
method calls update(null) . |
void |
update(java.lang.String propertyName)
Synchronizes the UI with the given property. |
Methods inherited from class org.eclipse.jface.action.ContributionItem |
dispose, fill, getId, getParent, isDirty, isGroupMarker, isSeparator, isVisible, saveWidgetState, setParent, setVisible, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ToolbarDropdownContributionItem(org.eclipse.jface.action.IAction action)
action
- the actionMethod Detail |
public boolean equals(java.lang.Object o)
public void fill(org.eclipse.swt.widgets.Composite parent)
ToolbarDropdownContributionItem
implementation of this
IContributionItem
method creates a SWT Button for the action.
If the action's checked property has been set, a toggle button is created
and primed to the value of the checked property.
public void fill(org.eclipse.swt.widgets.Menu parent, int index)
ToolbarDropdownContributionItem
implementation of this
IContributionItem
method creates a SWT MenuItem for the action.
If the action's checked property has been set, a toggle button is created
and primed to the value of the checked property.
If the action's menu creator property has been set, a cascading submenu is created.
public void fill(org.eclipse.swt.widgets.ToolBar parent, int index)
ToolbarDropdownContributionItem
implementation of this
IContributionItem
method creates a SWT ToolItem for the action.
If the action's checked property has been set, a toggle button is created
and primed to the value of the checked property.
If the action's menu creator property has been set, a drop-down
tool item is created.
public org.eclipse.jface.action.IAction getAction()
public int hashCode()
public boolean isEnabled()
public boolean isDynamic()
IContributionItem
method returns true
for menu items and false
for everything else.
protected boolean isEnabledAllowed()
true
if this item is allowed to enable,
false
otherwise.
public final void update()
IContributionItem
method calls update(null)
.
public void update(java.lang.String propertyName)
propertyName
- the name of the property, or null
meaning all
applicable properties
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |