Class JPanelEditDefault

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class JPanelEditDefault extends JPanelEdit
Very simple EditPanel which merely contains some text. Its values cannot be verified.
Version:
1.0
Author:
David Parsons
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
    • maxLength

      int maxLength
      DOCUMENT ME!
    • editTextField

      private JTextField editTextField
      DOCUMENT ME!
  • Constructor Details

    • JPanelEditDefault

      public JPanelEditDefault(String initialText)
      Sets the panel to contain a standard, white JTextField.
      Parameters:
      initialText - the text which will fill the text field whn begun
      See Also:
  • Method Details

    • checkFields

      public boolean checkFields()
      There is nothing to check in this Panel. Returns true.
      Specified by:
      checkFields in class JPanelEdit
      Returns:
      true
    • getCodedValue

      public Object getCodedValue()
      If the information held by the panel is stored as a code (as in 'M' for "male" or 'F' for "female"), then this code will be returned by this method. If there is no code for this value, this method will return a the same value as getPanelValue()
      Specified by:
      getCodedValue in class JPanelEdit
      Returns:
      the coded value. If the panel has no coded value, then the return value will be the String returned by getPanelValue().
    • getPanelValue

      public String getPanelValue()
      gets the data which the user could redefine within this panel.
      Specified by:
      getPanelValue in class JPanelEdit
      Returns:
      This is the value translated from the user-editable fields
    • makeNumericsOnly

      public void makeNumericsOnly(boolean decimal)
      permit only numbers, backspace and delete-key entries in the panel.
      Parameters:
      decimal - permits the value entered to include one one decimal point
    • setColumns

      public void setColumns(int col)
      See Also:
    • setMaxLength

      public void setMaxLength(int col)
      sets the system bell to ring whenever the string is larger than the specified value. attempting to reset to value larger than a previous setting results in an undefinable behaviour
      See Also: