Class FIntField

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable, SwingConstants

public class FIntField extends JFormattedTextField
Standard int field for Formiko.
Author:
Hydrolien
See Also:
  • Constructor Details

    • FIntField

      private FIntField(NumberFormatter formatter)
      Main constructor.
  • Method Details

    • newFIntField

      public static FIntField newFIntField(int min, int max, int value)
      Create an editable int field.
      Value will always be in [min, max]. Unautorised char can't be add to the field.
      Parameters:
      min - the min value (should be > -1)
      max - the max value (should be > -1)
      value - default value
    • addSizeUpdater

      public void addSizeUpdater()
      Add a listener to update this & parent size so that this can still fit in.
    • updateParentSize

      private void updateParentSize()
      Update parent size so that this can still fit in.