Class PIABinaryStringField

All Implemented Interfaces:
PAppComponent, PAppFieldComponent, PClientComponent, PCollectDataListener, PComponent, PComponentAttribute, PFieldBean, PLightComponent, PViewDataChangeListener, FocusListener, ImageObserver, MenuContainer, Serializable, Remote, EventListener, Accessible, Scrollable, SwingConstants

public class PIABinaryStringField extends PIATextField
Swing compatible, Portal aware text entry field that limits the input to the format xxx.xxx.xxx.xxx...., where x is a digit and xxx invalid input: '<' 256.
See Also:
  • Constructor Details

    • PIABinaryStringField

      public PIABinaryStringField()
  • Method Details

    • getValue

      public Object getValue()
    • setLightData

      public void setLightData(Object field)
      Description copied from interface: PLightComponent
      Sets the lightweight data object. This is usually called by framework support as part of the lightweight component implementation.
      Specified by:
      setLightData in interface PLightComponent
      Overrides:
      setLightData in class PIATextField
      Parameters:
      field - the lightweight component's display data
    • setText

      public void setText(String str)
      Sets the text of this textfield to the specified text, granted the specified text contains numeric data and the decimal separator only. If the specified text contains alphabetic characters other than ".", the text is rejected.
      Overrides:
      setText in class PIATextField
      Parameters:
      str - the new text to display
    • replaceSelection

      public void replaceSelection(String str)
      Replaces the currently selected content with the specified text, granted the specified text contains numeric data only. If the specified text contains alphabetic characters the text is rejected. If there is no selection this amounts to an insert of the specified text.
      Overrides:
      replaceSelection in class JTextComponent
      Parameters:
      str - the text to use when replacing the selected text
    • collectData

      public void collectData(PCollectDataEvent event)
      Overrides PCollectDataListener. Causes the controller to save changes back to the data model. Done prior to committing changes to Portal.
      Specified by:
      collectData in interface PCollectDataListener
      Overrides:
      collectData in class PIATextField
      Parameters:
      event - the data collection event
    • isValidInput

      protected boolean isValidInput(String str)