Class OtsControlPanel.TimeEdit

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable, SwingConstants, AppearanceControl, AppearanceControl
Enclosing class:
OtsControlPanel

public class OtsControlPanel.TimeEdit extends JFormattedTextField implements AppearanceControl
Entry field for time.
See Also:
  • Method Details

    • setTime

      public void setTime(Time newValue)
      Set or update the time shown in this TimeEdit.
      Parameters:
      newValue - the (new) value to set/show in this TimeEdit
    • getFontSize

      public OptionalInt getFontSize()
      Description copied from interface: AppearanceControl
      Returns the font size. May be null to ignore font size.
      Specified by:
      getFontSize in interface AppearanceControl
      Returns:
      font size, may be empty to ignore font size from appearance.
    • toString

      public final String toString()
      Overrides:
      toString in class Component