|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.sim.kiem.properties.KiemPropertyType
de.cau.cs.kieler.sim.kiem.properties.KiemPropertyTypeEditor
public class KiemPropertyTypeEditor
The Class KiemPropertyTypeEditor. This implements a sample KiemPropertyType that uses a displays a list of all open editors to choose from.
Constructor Summary | |
---|---|
KiemPropertyTypeEditor()
Instantiates a new KiemPropertyType editor. |
Method Summary | |
---|---|
Object |
getValue(KiemProperty property)
This method bridges String names values (encoded as Strings in property) to int of the combobox cell editor. |
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor |
getValueAsDiagramEditor(KiemProperty property)
Gets the DiagramEditor selected in the KiemProperty. |
CellEditor |
provideCellEditor(Composite parent)
Provides a cell editor of this KiemPropertyType. |
Image |
provideIcon()
Provide an icon Image for this KiemPropertyType. |
void |
refreshItems()
Refresh editor items. |
void |
setValue(KiemProperty property,
Object value)
This method bridges String names values (encoded as Strings in property) to int of the combobox cell editor. |
Methods inherited from class de.cau.cs.kieler.sim.kiem.properties.KiemPropertyType |
---|
getCellEditor, getIcon, getId, setCellEditor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KiemPropertyTypeEditor()
Method Detail |
---|
public CellEditor provideCellEditor(Composite parent)
KiemPropertyType
provideCellEditor
in class KiemPropertyType
parent
- the parent SWT composite that holds the Cell Editor
public void refreshItems()
public Object getValue(KiemProperty property)
getValue
in interface IKiemPropertyType
property
- the KiemProperty that this type operates on
public org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor getValueAsDiagramEditor(KiemProperty property)
property
- the KiemProperty
public void setValue(KiemProperty property, Object value)
setValue
in interface IKiemPropertyType
property
- the KiemProperty that this type operates onvalue
- the value of the property with the type depending on the cell editorpublic Image provideIcon()
KiemPropertyType
provideIcon
in class KiemPropertyType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |