Package jexer.demos

Class DemoMainWindow

  • All Implemented Interfaces:
    java.lang.Comparable<TWidget>

    public class DemoMainWindow
    extends TWindow
    This is the main "demo" application window. It makes use of the TTimer, TProgressBox, TLabel, TButton, and TField widgets.
    • Constructor Detail

      • DemoMainWindow

        public DemoMainWindow​(TApplication parent)
        Construct demo window. It will be centered on screen.
        Parameters:
        parent - the main application
    • Method Detail

      • onClose

        public void onClose()
        We need to override onClose so that the timer will no longer be called after we close the window. TTimers currently are completely unaware of the rest of the UI classes.
        Overrides:
        onClose in class TWindow
      • onCommand

        public void onCommand​(TCommandEvent command)
        Method that subclasses can override to handle posted command events.
        Overrides:
        onCommand in class TWindow
        Parameters:
        command - command event