Class ConfigField

java.lang.Object
org.apache.uima.tools.cpm.ConfigField

public class ConfigField extends Object
Configuration Field class used for representation of resource parameters in dynamically created MetaDataPanels.
See Also:
  • Constructor Details

    • ConfigField

      public ConfigField(String pn, String cs, boolean mv, JComponent c)
      Parameters:
      pn - Resource parameter name e.g. outputDir
      cs - String value of Java type used for value e.g. Integer
      mv - true if the value is a multi-value array
      c - Component used to represent field - Could be JTextField, JCheckBox, FileSelector or ListSelector
  • Method Details

    • getParameterName

      public String getParameterName()
    • getClassString

      public String getClassString()
    • getFieldComponent

      public JComponent getFieldComponent()
    • isMultiValued

      public boolean isMultiValued()
    • getFieldValue

      public Object getFieldValue()
    • setFieldValue

      public void setFieldValue(Object fieldValue)
    • 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.