|
||||||||||
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.KiemPropertyTypeChoice
public class KiemPropertyTypeChoice
The Class KiemPropertyTypeChoice. This implements a sample KiemPropertyType for selecting a String from a String[] array with a drop down list.
Constructor Summary | |
---|---|
KiemPropertyTypeChoice(String[] itemsParam)
Instantiates a new KiemPropertyType choice. |
Method Summary | |
---|---|
Object |
getValue(KiemProperty property)
This method bridges String names values (encoded as Strings in property) to int of the combobox cell editor. |
CellEditor |
provideCellEditor(Composite parent)
Provides a cell editor of this KiemPropertyType. |
Image |
provideIcon()
Provide an icon Image for this KiemPropertyType. |
void |
setValue(KiemProperty element,
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 KiemPropertyTypeChoice(String[] itemsParam)
itemsParam
- the itemsMethod Detail |
---|
public CellEditor provideCellEditor(Composite parent)
KiemPropertyType
provideCellEditor
in class KiemPropertyType
parent
- the parent SWT composite that holds the Cell Editor
public Object getValue(KiemProperty property)
getValue
in interface IKiemPropertyType
property
- the KiemProperty that this type operates on
public void setValue(KiemProperty element, Object value)
setValue
in interface IKiemPropertyType
element
- 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 |