|
Eclipse Platform 2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.eclipse.jface.action.SubContributionItem
A SubContributionItem is a wrapper for an IContributionItem.
It is used within a SubContributionManager to control the visibility
of items.
This class is not intended to be subclassed.
| Constructor Summary | |
SubContributionItem(IContributionItem item)
Creates a new SubContributionItem. |
|
| Method Summary | |
void |
dispose()
The default implementation of this IContributionItem
delegates to the inner item. |
void |
fill(Composite parent)
Fills the given composite control with controls representing this contribution item. |
void |
fill(Menu parent,
int index)
Fills the given menu with controls representing this contribution item. |
void |
fill(ToolBar parent,
int index)
Fills the given tool bar with controls representing this contribution item. |
String |
getId()
Returns the identifier of this contribution item. |
IContributionItem |
getInnerItem()
Returns the inner contribution item. |
boolean |
isDirty()
Returns whether this contribution item is dirty. |
boolean |
isDynamic()
Returns whether this contribution item is dynamic. |
boolean |
isEnabled()
Returns whether this contribution item is enabled. |
boolean |
isGroupMarker()
Returns whether this contribution item is a group marker. |
boolean |
isSeparator()
Returns whether this contribution item is a separator. |
boolean |
isVisible()
Returns whether this contribution item is visibile within its manager. |
void |
setParent(IContributionManager parent)
Sets the parent manager of this item |
void |
setVisible(boolean visible)
Sets whether this contribution item is visibile within its manager. |
void |
update()
Updates any SWT controls cached by this contribution item with any changes which have been made to this contribution item since the last update. |
void |
update(String id)
Updates any SWT controls cached by this contribution item with changes for the the given property. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SubContributionItem(IContributionItem item)
SubContributionItem.| Method Detail |
public void dispose()
IContributionItem
delegates to the inner item. Subclasses may override.dispose in interface IContributionItempublic void fill(Composite parent)
IContributionItemStatusLineManager.fill in interface IContributionItemorg.eclipse.jface.action.IContributionItemparent - the parent control
public void fill(Menu parent,
int index)
IContributionItemMenuManager.fill in interface IContributionItemorg.eclipse.jface.action.IContributionItemparent - the parent menuindex - the index where the controls are inserted,
or -1 to insert at the end
public void fill(ToolBar parent,
int index)
IContributionItemToolBarManager.fill in interface IContributionItemorg.eclipse.jface.action.IContributionItemparent - the parent tool barindex - the index where the controls are inserted,
or -1 to insert at the endpublic String getId()
IContributionItemgetId in interface IContributionItemorg.eclipse.jface.action.IContributionItemnull
if nonepublic IContributionItem getInnerItem()
public boolean isEnabled()
IContributionItemisEnabled in interface IContributionItemorg.eclipse.jface.action.IContributionItemtrue if this item is enabledpublic boolean isDirty()
IContributionItemisDirty in interface IContributionItemorg.eclipse.jface.action.IContributionItemtrue if this item is dirtypublic boolean isDynamic()
IContributionItemisDynamic in interface IContributionItemorg.eclipse.jface.action.IContributionItemtrue if this item is dynamic, and
false for normal itemspublic boolean isGroupMarker()
IContributionItemisGroupMarker in interface IContributionItemorg.eclipse.jface.action.IContributionItemtrue if this item is a group marker, and
false for normal itemsGroupMarker,
IContributionManager.appendToGroup(java.lang.String, org.eclipse.jface.action.IAction),
IContributionManager.prependToGroup(java.lang.String, org.eclipse.jface.action.IAction)public boolean isSeparator()
IContributionItemisSeparator in interface IContributionItemorg.eclipse.jface.action.IContributionItemtrue if this item is a separator, and
false for normal itemsSeparatorpublic boolean isVisible()
IContributionItemisVisible in interface IContributionItemorg.eclipse.jface.action.IContributionItemtrue if this item is visible, and
false otherwisepublic void setParent(IContributionManager parent)
IContributionItemsetParent in interface IContributionItemorg.eclipse.jface.action.IContributionItemparent - the parent contribution managerpublic void setVisible(boolean visible)
IContributionItemsetVisible in interface IContributionItemorg.eclipse.jface.action.IContributionItemvisible - true if this item should be visible, and
false otherwisepublic void update()
IContributionItemupdate in interface IContributionItempublic void update(String id)
IContributionItemupdate in interface IContributionItemorg.eclipse.jface.action.IContributionItemString - id the di of the changed property
|
Eclipse Platform 2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||