Class TLcdSimulatorTimeButton

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

public class TLcdSimulatorTimeButton extends JButton
This JButton can be used to display the current time of a TLcdSimulator.
See Also:
  • Constructor Details

    • TLcdSimulatorTimeButton

      public TLcdSimulatorTimeButton()
      Constructs a new TLcdSimulatorTimeButton without a TLcdSimulator to represent. The TLcdSimulator should be set with setSimulator.
    • TLcdSimulatorTimeButton

      public TLcdSimulatorTimeButton(TLcdSimulator newSimulator)
      Constructs a new TLcdSimulatorTimeButton that represents newSimulator.
      Parameters:
      newSimulator - The TLcdSimulator to represent.
  • Method Details

    • getSimulator

      public TLcdSimulator getSimulator()
      Returns the TLcdSimulator of which this JButton displays the time.
      Returns:
      The TLcdSimulator of which this JButton displays the time.
    • setSimulator

      public void setSimulator(TLcdSimulator newSimulator)
      Sets the TLcdSimulator of which this JButton displays the time.
      Parameters:
      newSimulator - The TLcdSimulator to set.
      See Also:
    • setDateFormat

      public void setDateFormat(DateFormat aDateFormat)
      Sets the DateFormat to be used for displaying the TLcdSimulator current time.
      Parameters:
      aDateFormat - The DateFormat to set.
      See Also:
    • getDateFormat

      public DateFormat getDateFormat()
      Returns the DateFormat used for displaying the TLcdSimulator current time.
      Returns:
      The DateFormat used for displaying the TLcdSimulator current time.