|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IContextButtonPadData
The interface IContextButtonPadData allows to define all information needed to show a context button pad.
Method Summary | |
---|---|
IContextButtonEntry |
getCollapseContextButton()
Returns the collapse context button to show in the context button pad. |
java.util.List<IContextButtonEntry> |
getDomainSpecificContextButtons()
Returns the domain specific context buttons to show in the context button pad. |
java.util.List<IContextButtonEntry> |
getGenericContextButtons()
Returns the generic context buttons (remove, delete, update, ...) to show in the context button pad. |
IRectangle |
getPadLocation()
Returns the location of the context button pad. |
void |
setCollapseContextButton(IContextButtonEntry collapseContextButton)
Sets the collapse context button to show in the context button pad. |
Method Detail |
---|
IRectangle getPadLocation()
The location can be changed by working directly on the result rectangle (e.g. getPadLocation().setRectangle()).
java.util.List<IContextButtonEntry> getGenericContextButtons()
The button list can be changed by working directly on the result list (e.g. getGenericContextButtons().add()).
To ensure, that the generic context buttons are identical in all tools,
you have to create them using
DefaultToolBehaviorProvider.setGenericContextButtons(IContextButtonPadData, org.eclipse.graphiti.mm.pictograms.PictogramElement, int)
.
DefaultToolBehaviorProvider.setGenericContextButtons(IContextButtonPadData,
org.eclipse.graphiti.mm.pictograms.PictogramElement, int)
java.util.List<IContextButtonEntry> getDomainSpecificContextButtons()
The button list can be changed by working directly on the result list (e.g. getDomainSpecificContextButtons().add()).
IContextButtonEntry getCollapseContextButton()
void setCollapseContextButton(IContextButtonEntry collapseContextButton)
To ensure, that the collapse context button is identical in all tools,
you have to create it using
ContextEntryHelper.createCollapseContextButton(boolean, org.eclipse.graphiti.features.IFeature, org.eclipse.graphiti.features.context.IContext)
.
collapseContextButton
- The collapse context button to show in the context button pad.
A value of null means, that there is no collapse context
button.ContextEntryHelper.createCollapseContextButton(boolean,
org.eclipse.graphiti.features.IFeature,
org.eclipse.graphiti.features.context.IContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |