Class MetaDataPanel

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

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:
  • Field Details

  • Constructor Details

    • MetaDataPanel

      public MetaDataPanel()
    • MetaDataPanel

      public MetaDataPanel(int nrColumns)
  • Method Details

    • populate

      public void populate(ResourceMetaData md, CasProcessorConfigurationParameterSettings overrides)
    • getMetaData

      public ResourceMetaData getMetaData()
    • getValues

      public List getValues()
    • setValue

      public void setValue(String fieldName, Object fieldValue)
      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().
    • 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.