Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
gnu.jemacs.buffer.EWindow
gnu.jemacs.swing.SwingWindow
public class SwingWindow
extends EWindow
implements java.awt.event.FocusListener, java.awt.event.KeyListener, javax.swing.event.ChangeListener
Fields inherited from class gnu.jemacs.buffer.EWindow | |
buffer , charHeight , charWidth , frame , nextWindow , pendingKeys , pendingLength , prevWindow |
Constructor Summary | |
| |
|
Method Summary | |
void | |
protected void | |
void |
|
void |
|
protected void | |
static JTextPane |
|
int | |
JPanel |
|
int |
|
Dimension | |
int |
|
static SwingWindow |
|
protected void |
|
void |
|
void |
|
void |
|
void | |
void | |
void |
|
void | |
EWindow | |
void |
|
Object |
|
void |
|
JPanel |
|
Methods inherited from class gnu.jemacs.buffer.EWindow | |
delete , deleteNoValidate , deleteOtherWindows , getBuffer , getCharSize , getFrame , getHeight , getHeightInLines , getNextWindow , getNextWindowInFrame , getOtherWindow , getPoint , getSelected , getWidth , getWidthInColumns , handleCommand , handleKey , linkSibling , lookupKey , pushPrefix , requestFocus , setBuffer , setDot , setFrame , setPoint , setSelected , setSelected , split , split , toString , tooLong , unlink , unselect |
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
public void activateRegion()
public void focusGained(FocusEvent e)
public void focusLost(FocusEvent e)
public static JTextPane getContainedWindow(Container cont, boolean last)
public JPanel getPanel()
Get the JPanel containing this Window.
public Dimension getPreferredScrollableViewportSize()
protected void handle(KeyEvent e, int code)
public void keyPressed(KeyEvent e)
public void keyReleased(KeyEvent e)
public void keyTyped(KeyEvent e)
public void stateChanged(javax.swing.event.ChangeEvent e)
public JPanel wrap()
Warp this (and optional modeline) inside a ScrollPane in a new JPanel.