Package jexer

Class TEditorWindow

    • Constructor Detail

      • TEditorWindow

        public TEditorWindow​(TApplication parent,
                             java.lang.String title)
        Public constructor sets window title.
        Parameters:
        parent - the main application
        title - the window title
      • TEditorWindow

        public TEditorWindow​(TApplication parent,
                             java.lang.String title,
                             java.lang.String contents)
        Public constructor sets window title and contents.
        Parameters:
        parent - the main application
        title - the window title, usually a filename
        contents - the data for the editing window, usually the file data
      • TEditorWindow

        public TEditorWindow​(TApplication parent,
                             java.io.File file)
                      throws java.io.IOException
        Public constructor opens a file.
        Parameters:
        parent - the main application
        file - the file to open
        Throws:
        java.io.IOException - if a java.io operation throws
      • TEditorWindow

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

      • onFocus

        public void onFocus()
        Called by application.switchWindow() when this window gets the focus, and also by application.addWindow().
        Overrides:
        onFocus in class TWindow
      • onUnfocus

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

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

        public void onMouseUp​(TMouseEvent mouse)
        Handle mouse release events.
        Overrides:
        onMouseUp in class TWindow
        Parameters:
        mouse - mouse button release event
      • onMouseMotion

        public void onMouseMotion​(TMouseEvent mouse)
        Method that subclasses can override to handle mouse movements.
        Overrides:
        onMouseMotion in class TWindow
        Parameters:
        mouse - mouse motion event
      • onKeypress

        public void onKeypress​(TKeypressEvent keypress)
        Handle keystrokes.
        Overrides:
        onKeypress in class TWindow
        Parameters:
        keypress - keystroke event
      • 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
      • onMenu

        public void onMenu​(TMenuEvent menu)
        Handle posted menu events.
        Overrides:
        onMenu in class TWindow
        Parameters:
        menu - menu event
      • draw

        public void draw()
        Draw the window.
        Overrides:
        draw in class TWindow
      • hasHiddenMouse

        public boolean hasHiddenMouse()
        Returns true if this window does not want the application-wide mouse cursor drawn over it.
        Overrides:
        hasHiddenMouse in class TWindow
        Returns:
        true if this window does not want the application-wide mouse cursor drawn over it