Package jexer.help

Class TWord

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

    public class TWord
    extends TWidget
    TWord contains either a string to display or a clickable link.
    • Constructor Detail

      • TWord

        public TWord​(java.lang.String words,
                     Link link)
        Public constructor.
        Parameters:
        words - the words to display
        link - link to other topic, or null
    • Method Detail

      • onMouseDown

        public void onMouseDown​(TMouseEvent mouse)
        Handle mouse press events.
        Overrides:
        onMouseDown in class TWidget
        Parameters:
        mouse - mouse button press event
      • onKeypress

        public void onKeypress​(TKeypressEvent keypress)
        Handle keystrokes.
        Overrides:
        onKeypress in class TWidget
        Parameters:
        keypress - keystroke event
      • draw

        public void draw()
        Draw the words.
        Overrides:
        draw in class TWidget