Package rma.swing

Class RmaJCalendarField

All Implemented Interfaces:
FocusListener, MouseMotionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, DocumentListener, Scrollable, SwingConstants, Modifiable, ModifiedEventControl, DateChooserField, EditableComponent, FormManagementListener, RmaValidComponent
Direct Known Subclasses:
CalendarField, RmaJCalendarExField, RmaJDateTimeField

public class RmaJCalendarField extends RmaJDateField implements DateChooserField
extension of the JTextField to only allow dates
See Also:
  • Field Details

  • Constructor Details

    • RmaJCalendarField

      public RmaJCalendarField()
    • RmaJCalendarField

      public RmaJCalendarField(String format, String text)
  • Method Details

    • setTruncateDefaultTime

      public void setTruncateDefaultTime(boolean tf)
      Will truncate the time value for the displayed calendar dialog.
      Parameters:
      tf -
    • getTruncateDefaultTime

      public boolean getTruncateDefaultTime()
    • enableCalenderTool

      public void enableCalenderTool(boolean enable)
    • isCalenderToolEnabled

      public boolean isCalenderToolEnabled()
      Specified by:
      isCalenderToolEnabled in interface DateChooserField
      Returns:
    • configure

      protected void configure()
      Overrides:
      configure in class RmaJDateField
    • displayChooserDialog

      public void displayChooserDialog()
      Description copied from interface: DateChooserField
      display the dialog to pick the date
      Specified by:
      displayChooserDialog in interface DateChooserField
    • getCalendar

      protected Calendar getCalendar()
    • isTimeVisible

      protected boolean isTimeVisible()
      Returns:
    • setDate

      protected void setDate(Calendar cal)
      set the date
      Parameters:
      cal - date in the format of Calendar.getTime().toString()
    • setText

      public void setText(String txt)
      Overrides:
      setText in class JTextComponent
    • getUIClassID

      public String getUIClassID()
      Gets the class ID for a UI.
      Overrides:
      getUIClassID in class JTextField
      Returns:
      the ID ("DateFieldUI")
      See Also:
    • setDefaultTime

      public void setDefaultTime(String dateAndTime)
      Parameters:
      dateAndTime -
    • getDefaultTime

      public String getDefaultTime()