|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.graphiti.tb.DefaultContextButtonPadData
public class DefaultContextButtonPadData
A very simple implementation of IContextButtonPadData
without any
real functionality.
Field Summary | |
---|---|
private IContextButtonEntry |
collapseContextButton
|
private java.util.List<IContextButtonEntry> |
domainSpecificContextButtons
|
private java.util.List<IContextButtonEntry> |
genericContextButtons
|
private IRectangle |
location
|
Constructor Summary | |
---|---|
DefaultContextButtonPadData()
Creates a new DefaultContextButtonPadData . |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.List<IContextButtonEntry> genericContextButtons
private java.util.List<IContextButtonEntry> domainSpecificContextButtons
private IContextButtonEntry collapseContextButton
private IRectangle location
Constructor Detail |
---|
public DefaultContextButtonPadData()
DefaultContextButtonPadData
.
Method Detail |
---|
public java.util.List<IContextButtonEntry> getGenericContextButtons()
IContextButtonPadData
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)
.
getGenericContextButtons
in interface IContextButtonPadData
DefaultToolBehaviorProvider.setGenericContextButtons(IContextButtonPadData,
org.eclipse.graphiti.mm.pictograms.PictogramElement, int)
public java.util.List<IContextButtonEntry> getDomainSpecificContextButtons()
IContextButtonPadData
The button list can be changed by working directly on the result list (e.g. getDomainSpecificContextButtons().add()).
getDomainSpecificContextButtons
in interface IContextButtonPadData
public IContextButtonEntry getCollapseContextButton()
IContextButtonPadData
getCollapseContextButton
in interface IContextButtonPadData
public void setCollapseContextButton(IContextButtonEntry collapseContextButton)
IContextButtonPadData
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)
.
setCollapseContextButton
in interface IContextButtonPadData
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)
public IRectangle getPadLocation()
IContextButtonPadData
The location can be changed by working directly on the result rectangle (e.g. getPadLocation().setRectangle()).
getPadLocation
in interface IContextButtonPadData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |