JavaScript is disabled on your browser.
Skip navigation links
gnu.jemacs.swing

Class SwingWindow

  • All Implemented Interfaces:
    java.awt.event.FocusListener, java.awt.event.KeyListener, java.util.EventListener, javax.swing.event.ChangeListener


    public class SwingWindow
    extends EWindow
    implements java.awt.event.FocusListener, java.awt.event.KeyListener, javax.swing.event.ChangeListener
    An Emacs window (EWindow) implemented using the Swing toolkits.
    • Field Detail

    • Constructor Detail

      • SwingWindow

        public SwingWindow(Buffer buffer)
      • SwingWindow

        public SwingWindow(Buffer buffer,
         boolean wantModeline)
        Create new Window.
        Parameters:
        buffer - the Buffer containing the data.
        wantModeline - true if we should create a mode line
    • Method Detail

      • wrap

        public javax.swing.JPanel wrap()
        Warp this (and optional modeline) inside a ScrollPane in a new JPanel.
      • getPanel

        public javax.swing.JPanel getPanel()
        Get the JPanel containing this Window.
      • focusGained

        public void focusGained(java.awt.event.FocusEvent e)
        Specified by:
        focusGained in interface java.awt.event.FocusListener
      • focusLost

        public void focusLost(java.awt.event.FocusEvent e)
        Specified by:
        focusLost in interface java.awt.event.FocusListener
      • getPoint

        public int getPoint()
        Description copied from class: EWindow
        Returns the "Emacs value" (1-origin) of point.
        Specified by:
        getPoint in class EWindow
      • setDot

        public void setDot(int offset)
        Specified by:
        setDot in class EWindow
      • split

        public EWindow split(Buffer buffer,
         int lines,
         boolean horizontal)
        Description copied from class: EWindow
        Split this window into two. Display buffer in the new window.
        Specified by:
        split in class EWindow
        Returns:
        the new window.
      • stateChanged

        public void stateChanged(javax.swing.event.ChangeEvent e)
        Specified by:
        stateChanged in interface javax.swing.event.ChangeListener
      • getContainedWindow

        public static javax.swing.JTextPane getContainedWindow(java.awt.Container cont,
         boolean last)
      • getWindow

        public static SwingWindow getWindow(java.awt.event.ActionEvent event)
      • activateRegion

        public void activateRegion()
      • getPreferredScrollableViewportSize

        public java.awt.Dimension getPreferredScrollableViewportSize()
      • getWidth

        public int getWidth()
        Description copied from class: EWindow
        Get the current width (in pixels) of this window.
        Specified by:
        getWidth in class EWindow
      • getHeight

        public int getHeight()
        Description copied from class: EWindow
        Get the current height (in pixels) of this window.
        Specified by:
        getHeight in class EWindow
      • keyTyped

        public void keyTyped(java.awt.event.KeyEvent e)
        Specified by:
        keyTyped in interface java.awt.event.KeyListener
      • keyPressed

        public void keyPressed(java.awt.event.KeyEvent e)
        Specified by:
        keyPressed in interface java.awt.event.KeyListener
      • keyReleased

        public void keyReleased(java.awt.event.KeyEvent e)
        Specified by:
        keyReleased in interface java.awt.event.KeyListener
      • handle

        protected void handle(java.awt.event.KeyEvent e,
         int code)
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /