|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.jxta.impl.shell.ShellConsole
Constructor Summary | |
ShellConsole(int rows,
int cols)
Creates a new terminal window with rows row and cols columns to display. |
|
ShellConsole(java.lang.String useName,
int rows,
int cols)
Creates a new terminal window with rows row and cols columns to display. |
Method Summary | |
void |
clear()
|
void |
destroy()
Terminates the current terminal window. |
java.lang.String |
getConsoleName()
|
java.lang.String |
getCursorDownName()
Returns the command this console send if the cursor down key was pressed. |
java.lang.String |
getCursorUpName()
Returns the command this console send if the cursor up key was pressed. |
void |
handling(int val,
char ch,
int modifiers)
Handles the editing of the command line. |
void |
keyPressed(java.awt.event.KeyEvent e)
Handles KeyEvent events.s |
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent e)
|
void |
mouseClicked(java.awt.event.MouseEvent e)
Invoked when the mouse has been clicked on a component. |
void |
mouseEntered(java.awt.event.MouseEvent e)
Invoked when the mouse has entered the component. |
void |
mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse has exited component. |
void |
mousePressed(java.awt.event.MouseEvent e)
Invoked when the mouse has been pressed on a component. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Invoked when the mouse has been released on a component. |
void |
print(java.lang.String s)
|
void |
println(java.lang.String s)
|
java.lang.String |
read()
|
void |
run()
|
void |
setCommandLine(java.lang.String prompt,
java.lang.String cmd)
Replaces the current command line with the command indicated |
void |
write(java.lang.String msg)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ShellConsole(int rows, int cols)
rows
- the number of rows displayedcols
- the number of columns displayedpublic ShellConsole(java.lang.String useName, int rows, int cols)
useName
- the name of the consolerows
- the number of rows displayedcols
- the number of columns displayedMethod Detail |
public java.lang.String getConsoleName()
public void destroy()
public void keyPressed(java.awt.event.KeyEvent e)
The events currrently handled are:
e
- the triggering KeyEvent objectpublic void handling(int val, char ch, int modifiers)
val
- the KeyCode value of the key pressedch
- the character associated with the key pressedmodifiers
- any modifiers that might have been pressedpublic void setCommandLine(java.lang.String prompt, java.lang.String cmd)
prompt
- if not null, this is set as the new promptcmd
- the command replacing the typed commandpublic void print(java.lang.String s)
public void println(java.lang.String s)
public void run()
public java.lang.String read()
public void write(java.lang.String msg)
public void keyTyped(java.awt.event.KeyEvent e)
public void keyReleased(java.awt.event.KeyEvent e)
public void clear()
public void mouseClicked(java.awt.event.MouseEvent e)
e
- triggering mouse eventpublic void mouseEntered(java.awt.event.MouseEvent e)
e
- triggering mouse eventpublic void mouseExited(java.awt.event.MouseEvent e)
e
- triggering mouse eventpublic void mousePressed(java.awt.event.MouseEvent e)
e
- triggering mouse eventpublic void mouseReleased(java.awt.event.MouseEvent e)
e
- triggering mouse eventpublic java.lang.String getCursorUpName()
public java.lang.String getCursorDownName()
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |