Package rma.swing

Class RmaJ24HourTimeField

All Implemented Interfaces:
FocusListener, MouseMotionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, DocumentListener, Scrollable, SwingConstants, Modifiable, ModifiedEventControl, EditableComponent, FormManagementListener, RmaValidComponent

public class RmaJ24HourTimeField extends RmaJTextField
extension of the JTextField to only allow decimal type numbers
See Also:
  • Constructor Details

    • RmaJ24HourTimeField

      public RmaJ24HourTimeField()
    • RmaJ24HourTimeField

      public RmaJ24HourTimeField(int value, int columns)
  • Method Details

    • getValue

      public int getValue()
    • getTextAsInt

      public Integer getTextAsInt()
    • setValue

      public void setValue(int value)
    • createDefaultModel

      protected Document createDefaultModel()
      Description copied from class: RmaJTextField
      Creates the default implementation of the model to be used at construction if one isn't explicitly given. An instance of RMADocument is returned.
      Overrides:
      createDefaultModel in class RmaJTextField
      Returns:
      the default model implementation
    • getMilitaryTimeDocument

      public MilitaryTimeDocument getMilitaryTimeDocument()
    • validateData

      protected boolean validateData(boolean showError)
      Overrides:
      validateData in class RmaJTextField
    • setAllowMinutes

      public void setAllowMinutes(boolean b)
    • getAllowsMinutes

      public boolean getAllowsMinutes()