Package jexer.demos

Class DemoTextWindow

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

    public class DemoTextWindow
    extends TWindow
    This window demonstates the TText, THScroller, and TVScroller widgets.
    • Constructor Detail

      • DemoTextWindow

        public DemoTextWindow​(TApplication parent,
                              java.lang.String title,
                              java.lang.String text)
        Public constructor makes a text window out of any string.
        Parameters:
        parent - the main application
        title - the text string
        text - the text string
      • DemoTextWindow

        public DemoTextWindow​(TApplication parent)
        Public constructor.
        Parameters:
        parent - the main application
    • Method Detail

      • onResize

        public void onResize​(TResizeEvent event)
        Handle window/screen resize events.
        Overrides:
        onResize in class TWindow
        Parameters:
        event - resize event
      • onFocus

        public void onFocus()
        Play with menu items.
        Overrides:
        onFocus in class TWindow
      • onUnfocus

        public void onUnfocus()
        Called by application.switchWindow() when another window gets the focus.
        Overrides:
        onUnfocus in class TWindow