All Packages Class Hierarchy This Package Previous Next Index
Interface com.cometway.jerminal.JerminalKeyListener
- public interface JerminalKeyListener
This interface defines the KeyListener which will read the keyboard input
from a JerminalWindow. The JerminalKeyistener ensures that the text is
displayed correctly in the window and the commands typed are sent to the Jerminal
associated with the JerminalWindow.
-
getBufferIndex()
- This method returns the cursor index of the input buffer.
-
getInputBuffer()
- This method returns what is currently in the input buffer.
-
getInsert()
- This method returns the state of the INSERT flag.
-
getInterpret()
- This method returns the state of the INTERPRET flag.
-
getJerminalWindow()
- This method returns the JerminalWindow which this key listener is reading from.
-
getKillBuffer()
- This method returns the copy/paste buffer.
-
setBufferIndex(int)
- This method sets the cursor index of the input buffer.
-
setInputBuffer(String)
- This method sets the input buffer of the key listener.
-
setInsert(boolean)
- This sets the INSERT flag of the key listener.
-
setInterpret(boolean)
- This sets the INTERPRET flag of the key listener.
-
setJerminalWindow(JerminalWindow)
- This method sets the JerminalWindow which this key listener should be reading
keyboard input from.
-
setKillBuffer(String)
- This sets the copy/paste buffer of the key listener.
setInsert
public abstract void setInsert(boolean insert)
- This sets the INSERT flag of the key listener. If set to true, it is expected
that keystrokes read from the JerminalWindow are INSERTed at the cursor.
getInsert
public abstract boolean getInsert()
- This method returns the state of the INSERT flag.
setInterpret
public abstract void setInterpret(boolean interpret)
- This sets the INTERPRET flag of the key listener. If set to false, the key
listener is expected not to interpret the input.
getInterpret
public abstract boolean getInterpret()
- This method returns the state of the INTERPRET flag.
setKillBuffer
public abstract void setKillBuffer(String buffer)
- This sets the copy/paste buffer of the key listener.
getKillBuffer
public abstract String getKillBuffer()
- This method returns the copy/paste buffer.
setInputBuffer
public abstract void setInputBuffer(String buffer)
- This method sets the input buffer of the key listener. This is the buffer that
will be sent as a command to the jerminal.
getInputBuffer
public abstract String getInputBuffer()
- This method returns what is currently in the input buffer.
setBufferIndex
public abstract void setBufferIndex(int index)
- This method sets the cursor index of the input buffer.
getBufferIndex
public abstract int getBufferIndex()
- This method returns the cursor index of the input buffer.
setJerminalWindow
public abstract void setJerminalWindow(JerminalWindow window)
- This method sets the JerminalWindow which this key listener should be reading
keyboard input from.
getJerminalWindow
public abstract JerminalWindow getJerminalWindow()
- This method returns the JerminalWindow which this key listener is reading from.
All Packages Class Hierarchy This Package Previous Next Index