public class SwingWindow extends EWindow implements java.awt.event.FocusListener, java.awt.event.KeyListener, javax.swing.event.ChangeListener
Modifier and Type | Field and Description |
---|---|
Modeline |
modeline |
buffer, charHeight, charWidth, frame, nextWindow, pendingKeys, pendingLength, prevWindow
Constructor and Description |
---|
SwingWindow(Buffer buffer) |
SwingWindow(Buffer buffer,
boolean wantModeline)
Create new Window.
|
Modifier and Type | Method and Description |
---|---|
void |
activateRegion() |
protected void |
deleteNoValidate() |
void |
focusGained(java.awt.event.FocusEvent e) |
void |
focusLost(java.awt.event.FocusEvent e) |
protected void |
getCharSize() |
static javax.swing.JTextPane |
getContainedWindow(java.awt.Container cont,
boolean last) |
int |
getHeight()
Get the current height (in pixels) of this window.
|
javax.swing.JPanel |
getPanel()
Get the JPanel containing this Window.
|
int |
getPoint()
Returns the "Emacs value" (1-origin) of point.
|
java.awt.Dimension |
getPreferredScrollableViewportSize() |
int |
getWidth()
Get the current width (in pixels) of this window.
|
static SwingWindow |
getWindow(java.awt.event.ActionEvent event) |
protected void |
handle(java.awt.event.KeyEvent e,
int code) |
void |
keyPressed(java.awt.event.KeyEvent e) |
void |
keyReleased(java.awt.event.KeyEvent e) |
void |
keyTyped(java.awt.event.KeyEvent e) |
void |
requestFocus() |
void |
setBuffer(Buffer buffer) |
void |
setDot(int offset) |
void |
setSelected() |
EWindow |
split(Buffer buffer,
int lines,
boolean horizontal)
Split this window into two.
|
void |
stateChanged(javax.swing.event.ChangeEvent e) |
java.lang.Object |
tooLong(int pendingLength) |
void |
unselect() |
javax.swing.JPanel |
wrap()
Warp this (and optional modeline) inside a ScrollPane in a new JPanel.
|
delete, deleteOtherWindows, getBuffer, getFrame, getHeightInLines, getNextWindow, getNextWindowInFrame, getOtherWindow, getSelected, getWidthInColumns, handleCommand, handleKey, linkSibling, lookupKey, pushPrefix, setFrame, setPoint, setSelected, split, toString, unlink
public Modeline modeline
public SwingWindow(Buffer buffer)
public SwingWindow(Buffer buffer, boolean wantModeline)
buffer
- the Buffer containing the data.wantModeline
- true if we should create a mode linepublic javax.swing.JPanel wrap()
public javax.swing.JPanel getPanel()
public void focusGained(java.awt.event.FocusEvent e)
focusGained
in interface java.awt.event.FocusListener
public void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener
public void requestFocus()
requestFocus
in class EWindow
public void setSelected()
setSelected
in class EWindow
public int getPoint()
EWindow
public EWindow split(Buffer buffer, int lines, boolean horizontal)
EWindow
public void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged
in interface javax.swing.event.ChangeListener
public static javax.swing.JTextPane getContainedWindow(java.awt.Container cont, boolean last)
public static SwingWindow getWindow(java.awt.event.ActionEvent event)
protected void deleteNoValidate()
deleteNoValidate
in class EWindow
public void activateRegion()
public java.awt.Dimension getPreferredScrollableViewportSize()
protected void getCharSize()
getCharSize
in class EWindow
public int getWidth()
EWindow
public int getHeight()
EWindow
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
protected void handle(java.awt.event.KeyEvent e, int code)
public java.lang.Object tooLong(int pendingLength)
tooLong
in class EWindow
EWindow.tooLong(int)