Class FWTextField

All Implemented Interfaces:
FocusListener, MouseListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, DocumentListener, Scrollable, SwingConstants

public class FWTextField extends JTextField implements MouseListener, FocusListener, DocumentListener
This class add the possibility to JTextField to lock the number of character in field to a max length.
Author:
Andreas Enders
See Also:
  • Field Details

    • LITTLE_TEXTSIZE

      public static final int LITTLE_TEXTSIZE
      This constant represents the size of a little text.
      See Also:
    • NORMAL_TEXTSIZE

      public static final int NORMAL_TEXTSIZE
      This constant represents the size of a normal sized text.
      See Also:
    • BIG_TEXTSIZE

      public static final int BIG_TEXTSIZE
      This constant represents the size of a big text.
      See Also:
    • UNLIMITED_TEXTSIZE

      public static final int UNLIMITED_TEXTSIZE
      This constant represents the unlimited size.
      See Also:
    • FILE_TEXTSIZE

      public static final int FILE_TEXTSIZE
      This size for filepaths.
      See Also:
    • DEFAULT_TEXTSIZE

      public static final int DEFAULT_TEXTSIZE
      This constant represents the defaultvalue, that will be choosen when the developer has called the default constructor.
      See Also:
  • Constructor Details

    • FWTextField

      public FWTextField(boolean aRequiredBorder)
      Default constructor. Sets the default-textsize to this field.
    • FWTextField

      public FWTextField(String aString, int aMaxSize, boolean aRequiredBorder)
      Default constructor. Sets the default-textsize to this field.
    • FWTextField

      public FWTextField(int aMaxSize, boolean aRequiredBorder)
      This construcotr has the maxsize as parameter. This allows the developer to choose a size different from the default.
    • FWTextField

      public FWTextField(int aMaxSize, int aMaxInput, boolean aRequiredBorder)
      This construcotr has the maxsize and the maxInput as parameter. This allows the developer separate the MaxSize and the max. input of letters
    • FWTextField

      public FWTextField(String aString, int aMaxSize, int aMaxInput, boolean aRequiredBorder)
      This construcotr has the maxsize and the maxInput as parameter. This allows the developer separate the MaxSize and the max. input of letters
    • FWTextField

      public FWTextField(String aString, int aMaxSize, int aMaxInput, boolean aRequiredBorder, String aRegularExpression)
      This construcotr has the maxsize and the maxInput as parameter. This allows the developer separate the MaxSize and the max. input of letters
  • Method Details