Class MetaDataPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
AnalysisEnginePanel, ConsumerPanel

public class MetaDataPanel extends FormPanel
A dynamically generated form panel with components generated from configuration parameters specified as ResourceMetaData. The components are either text fields, checkboxes, FileSelectors or ListSelectors. These are allocated via the populate method.
See Also:
  • Constructor Details

    • MetaDataPanel

      public MetaDataPanel()
      Instantiates a new meta data panel.
    • MetaDataPanel

      public MetaDataPanel(int nrColumns)
      Instantiates a new meta data panel.
      Parameters:
      nrColumns - the nr columns
  • Method Details

    • populate

      public void populate(ResourceMetaData md, CasProcessorConfigurationParameterSettings overrides)
      Populate.
      Parameters:
      md - the md
      overrides - the overrides
    • getMetaData

      public ResourceMetaData getMetaData()
      Gets the meta data.
      Returns:
      the meta data
    • getValues

      public List getValues()
      Gets the values.
      Returns:
      the values
    • setValue

      public void setValue(String fieldName, Object fieldValue)
      Sets the value.
      Parameters:
      fieldName - Configuration parameter field name
      fieldValue - Field value
    • clearAll

      public void clearAll()
      Removes all fields.
    • isModified

      public boolean isModified()
      Returns whether this panel has been modified from its original configuration. Note that this is not affected by saves. For that, use isDirty().
      Returns:
      true, if is modified
    • isDirty

      public boolean isDirty()
      Returns whether this panel is dirty; that is, whether a field has been modified since clearDirty() was last called.
      Returns:
      whether this panel is dirty
    • clearDirty

      public void clearDirty()
      Marks all fields in this panel is not dirty.