Class NumericParameterComponents

java.lang.Object
PamModel.parametermanager.swing.NumericParameterComponents
All Implemented Interfaces:
PamParameterComponents
Direct Known Subclasses:
DoubleParameterComponents, IntParameterComponents

public abstract class NumericParameterComponents extends Object implements PamParameterComponents
  • Constructor Details

    • NumericParameterComponents

      public NumericParameterComponents(PamParameterData pamParameterData, String textFormat)
  • Method Details

    • getAllComponents

      public JComponent[] getAllComponents()
      Description copied from interface: PamParameterComponents
      Get a set of three swing components which can be added to a dialog. These will be a title, a field and a post title. note that the two titles may be null if there is no text to display, but the main data entry field will always not be null and will always be component[1].
      Specified by:
      getAllComponents in interface PamParameterComponents
      Returns:
      array of swing components.
    • getPamParameterData

      public PamParameterData getPamParameterData()
      Returns:
      the pamParameterData
    • getTextFormat

      public String getTextFormat()
      Returns:
      the textFormat
    • getTitle

      public JComponent getTitle()
      Returns:
      the title
    • getPostTitle

      public JComponent getPostTitle()
      Returns:
      the postTitle
    • getDataField

      public JTextField getDataField()
      Returns:
      the dataField
    • setField

      public boolean setField()
      Description copied from interface: PamParameterComponents
      Set the text in the data field from the parameter value.
      Specified by:
      setField in interface PamParameterComponents
      Returns:
      true if the text was set correctly