All Packages Class Hierarchy This Package Previous Next Index
Class mootcan.CommandTextField
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----mootcan.CommandTextField
- public class CommandTextField
- extends Panel
a textfield to enter commands has support for history. sends the
'commands' into a pipe. for now it only sends strings, but it can probably
be expanded to send other types.
it may seem like overkill to add a new panel just for the TextArea here. the
reason I did this was to make it possible to try to add a java-1.1 TextArea
which is superior to the java-1.0 one. (we are allowed to construct it
without scrollbars). if the java-1.1 TextArea is not found, we fall back to
the java-1.0 one.
- Author:
- Sindre Sørensen
-
ancientAWT
-
-
caretPosition
-
-
commandArea
-
-
currentMode
-
-
history
-
-
histSize
-
-
inputStream
-
-
issuedCommand
-
-
modes
-
-
out
-
-
outputArea
-
-
outputStream
-
-
PGDNonKeyDown
-
-
CommandTextField(Font, int, Vector)
-
-
clean()
-
-
cycleDown()
-
-
cycleUp()
-
-
getInputStream()
-
-
getIssuedCommand()
-
-
getMode()
-
-
issueCommand()
-
-
keyDown(Event, int)
-
-
keyUp(Event, int)
-
-
requestFocus()
-
-
sendIssuedCommand(String)
-
-
setMode(Mode)
-
-
setMode(String)
-
histSize
private int histSize
caretPosition
private int caretPosition
outputArea
private UserOutputArea outputArea
history
HistoryList history
issuedCommand
String issuedCommand
PGDNonKeyDown
boolean PGDNonKeyDown
ancientAWT
boolean ancientAWT
outputStream
PipedOutputStream outputStream
inputStream
PipedInputStream inputStream
out
DataOutputStream out
commandArea
TextComponent commandArea
modes
Vector modes
currentMode
Mode currentMode
CommandTextField
CommandTextField(Font font,
int histSize,
Vector modes)
requestFocus
public void requestFocus()
- Overrides:
- requestFocus in class Component
getInputStream
public PipedInputStream getInputStream()
sendIssuedCommand
private void sendIssuedCommand(String s)
getIssuedCommand
public String getIssuedCommand()
clean
public void clean()
cycleUp
private void cycleUp()
cycleDown
private void cycleDown()
issueCommand
private void issueCommand()
keyUp
public boolean keyUp(Event event,
int keycode)
- Overrides:
- keyUp in class Component
keyDown
public boolean keyDown(Event event,
int keycode)
- Overrides:
- keyDown in class Component
setMode
public void setMode(Mode mode)
setMode
public void setMode(String smode)
getMode
public Mode getMode()
All Packages Class Hierarchy This Package Previous Next Index