Package org.apache.uima.tools.cpm
Class ConfigField
java.lang.Object
org.apache.uima.tools.cpm.ConfigField
Configuration Field class used for representation of resource parameters in dynamically created
MetaDataPanels.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private JComponent
private boolean
private Object
private Object
private String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
To be called when the CPE descriptor is saved.boolean
isDirty()
Returns whether this field has been modified since the last time the CPE descriptor was saved.boolean
Returns whether this field has been modified from its original value.boolean
void
setFieldValue
(Object fieldValue)
-
Field Details
-
parameterName
-
classString
-
isMultiValued
private boolean isMultiValued -
fieldComponent
-
originalValue
-
lastSavedValue
-
-
Constructor Details
-
ConfigField
- Parameters:
pn
- Resource parameter name e.g. outputDircs
- String value of Java type used for value e.g. Integermv
- true if the value is a multi-value arrayc
- Component used to represent field - Could be JTextField, JCheckBox, FileSelector or ListSelector
-
-
Method Details
-
getParameterName
-
getClassString
-
getFieldComponent
-
isMultiValued
public boolean isMultiValued() -
getFieldValue
-
setFieldValue
-
isModified
public boolean isModified()Returns whether this field has been modified from its original value. This is not affected by whether the user has saved the new value; for that use isDirty(). -
isDirty
public boolean isDirty()Returns whether this field has been modified since the last time the CPE descriptor was saved. -
clearDirty
public void clearDirty()To be called when the CPE descriptor is saved. Sets this field to be not dirty, until it is next modified.
-