gnu.jemacs.swt

Class SwtWindow

Implemented Interfaces:
FocusListener, KeyListener, MouseListener, VerifyKeyListener

public class SwtWindow
extends EWindow
implements VerifyKeyListener, FocusListener, KeyListener, MouseListener

Field Summary

Fields inherited from class gnu.jemacs.buffer.EWindow

buffer, charHeight, charWidth, frame, nextWindow, pendingKeys, pendingLength, prevWindow

Constructor Summary

SwtWindow(Buffer buffer)
SwtWindow(Buffer buffer, boolean wantModeLine)

Method Summary

void
focusGained(FocusEvent e)
void
focusLost(FocusEvent e)
protected void
getCharSize()
int
getHeight()
int
getPoint()
void
getReadyToShow(Composite parent, int firstVisibleLine)
int
getWidth()
void
handleCommand(Object command)
void
handleKey(int code)
void
keyPressed(KeyEvent e)
void
keyReleased(KeyEvent e)
void
mouseDoubleClick(MouseEvent e)
void
mouseDown(MouseEvent e)
void
mouseUp(MouseEvent e)
void
setBuffer(Buffer buffer)
void
setDot(int offset)
void
setSelected()
static void
show(KeyEvent e)
EWindow
split(Buffer buffer, int lines, boolean horizontal)
Split this window into two.
Object
tooLong(int pendingLength)
void
unselect()
void
updateModeline()
void
verifyKey(VerifyEvent event)

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

Constructor Details

SwtWindow

public SwtWindow(Buffer buffer)

SwtWindow

public SwtWindow(Buffer buffer,
                 boolean wantModeLine)

Method Details

focusGained

public void focusGained(FocusEvent e)

focusLost

public void focusLost(FocusEvent e)

getCharSize

protected void getCharSize()
Overrides:
getCharSize in interface EWindow

getHeight

public int getHeight()
Overrides:
getHeight in interface EWindow

getPoint

public int getPoint()
Overrides:
getPoint in interface EWindow

getReadyToShow

public void getReadyToShow(Composite parent,
                           int firstVisibleLine)

getWidth

public int getWidth()
Overrides:
getWidth in interface EWindow

handleCommand

public void handleCommand(Object command)
Overrides:
handleCommand in interface EWindow

handleKey

public void handleKey(int code)
Overrides:
handleKey in interface EWindow

keyPressed

public void keyPressed(KeyEvent e)

keyReleased

public void keyReleased(KeyEvent e)

mouseDoubleClick

public void mouseDoubleClick(MouseEvent e)

mouseDown

public void mouseDown(MouseEvent e)

mouseUp

public void mouseUp(MouseEvent e)

setBuffer

public void setBuffer(Buffer buffer)
Overrides:
setBuffer in interface EWindow

setDot

public void setDot(int offset)
Overrides:
setDot in interface EWindow

setSelected

public void setSelected()
Overrides:
setSelected in interface EWindow

show

public static void show(KeyEvent e)
Parameters:
e -

split

public EWindow split(Buffer buffer,
                     int lines,
                     boolean horizontal)
Split this window into two. Display Var>buffer in the new window.
Overrides:
split in interface EWindow
Returns:
the new window.

tooLong

public Object tooLong(int pendingLength)
Overrides:
tooLong in interface EWindow

unselect

public void unselect()
Overrides:
unselect in interface EWindow

updateModeline

public void updateModeline()

verifyKey

public void verifyKey(VerifyEvent event)