|
||||||||||
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.KiemPropertyTypeFile
public class KiemPropertyTypeFile
The Class KiemPropertyTypeFile. This implements a sample KiemPropertyType that uses a standard SWT dialog to browse for a file.
Nested Class Summary | |
---|---|
class |
KiemPropertyTypeFile.CustomDialogCellEditor
The Class CustomDialogCellEditor. |
Constructor Summary | |
---|---|
KiemPropertyTypeFile()
Instantiates a new KiemPropertyType file. |
|
KiemPropertyTypeFile(boolean textFieldIsEditableManually)
Instantiates a new KiemPropertyType file. |
Method Summary | |
---|---|
String[] |
getFilterExts()
Gets the filter extensions. |
String[] |
getFilterNames()
Gets the filter extension names. |
Object |
getValue(KiemProperty property)
This method bridges String file location values (encoded as Strings in property) and the String displayed in the String cell editor. |
static IPath |
getValueAsIPath(KiemProperty property)
Gets the value as file. |
CellEditor |
provideCellEditor(Composite parent)
Provides a cell editor of this KiemPropertyType. |
Image |
provideIcon()
Provide an icon Image for this KiemPropertyType. |
void |
setFilterExts(String[] filterExtsParam)
Sets the filter extensions. |
void |
setFilterNames(String[] filterNamesParam)
Sets the filter extension names. |
void |
setValue(KiemProperty property,
Object value)
This method bridges String file location values (encoded as Strings in property) and the String displayed in the String 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 KiemPropertyTypeFile()
public KiemPropertyTypeFile(boolean textFieldIsEditableManually)
textFieldIsEditableManually
- a flag whether the user can modify the text field manuallyMethod Detail |
---|
public Object getValue(KiemProperty property)
getValue
in interface IKiemPropertyType
property
- the KiemProperty that this type operates on
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 static IPath getValueAsIPath(KiemProperty property)
property
- the property
public Image provideIcon()
KiemPropertyType
provideIcon
in class KiemPropertyType
public CellEditor provideCellEditor(Composite parent)
KiemPropertyType
provideCellEditor
in class KiemPropertyType
parent
- the parent SWT composite that holds the Cell Editor
public void setFilterNames(String[] filterNamesParam)
filterNamesParam
- the new filter namespublic String[] getFilterNames()
public void setFilterExts(String[] filterExtsParam)
filterExtsParam
- the new filter extensionspublic String[] getFilterExts()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |