|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.mud.jta.Plugin
de.mud.jta.plugin.Terminal
public class Terminal
The terminal plugin represents the actual terminal where the data will be displayed and the gets the keyboard input to sent back to the remote host.
Maintainer: Matthias L. Jugel
Field Summary | |
---|---|
protected SoundRequest |
audioBeep
if we have a url to an audioclip use it as ping |
protected vt320 |
emulation
|
protected java.lang.String |
encoding
The default encoding is ISO 8859-1 (western). |
protected javax.swing.JMenu |
menu
holds the terminal menu |
protected FilterPlugin |
source
|
protected SwingTerminal |
terminal
holds the actual terminal emulation |
protected javax.swing.JPanel |
tPanel
the terminal panel that is displayed on-screen |
Fields inherited from class de.mud.jta.Plugin |
---|
bus, id |
Constructor Summary | |
---|---|
Terminal(PluginBus bus,
java.lang.String id)
Create a new terminal plugin and initialize the terminal emulation. |
Method Summary | |
---|---|
void |
copy(java.awt.datatransfer.Clipboard clipboard)
Copy currently selected text into the clipboard. |
FilterPlugin |
getFilterSource()
|
javax.swing.JMenu |
getPluginMenu()
Get the menu entry for this component. |
javax.swing.JComponent |
getPluginVisual()
Get the visible components from the plugin. |
void |
lostOwnership(java.awt.datatransfer.Clipboard clipboard,
java.awt.datatransfer.Transferable contents)
|
void |
paste(java.awt.datatransfer.Clipboard clipboard)
Paste text from clipboard to the plugin. |
int |
read(byte[] b)
Read a block of data from the back end. |
void |
run()
Continuously read from our back end and display the data on screen. |
void |
setFilterSource(FilterPlugin source)
Set the source plugin where we get our data from and where the data sink (write) is. |
void |
write(byte[] b)
Write a block of data to the back end. |
Methods inherited from class de.mud.jta.Plugin |
---|
error, getId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SwingTerminal terminal
protected vt320 emulation
protected java.lang.String encoding
protected SoundRequest audioBeep
protected javax.swing.JPanel tPanel
protected javax.swing.JMenu menu
protected FilterPlugin source
Constructor Detail |
---|
public Terminal(PluginBus bus, java.lang.String id)
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
public void setFilterSource(FilterPlugin source)
FilterPlugin
setFilterSource
in interface FilterPlugin
source
- the data sourcepublic FilterPlugin getFilterSource()
getFilterSource
in interface FilterPlugin
public int read(byte[] b) throws java.io.IOException
FilterPlugin
read
in interface FilterPlugin
b
- the buffer to read the data into
java.io.IOException
public void write(byte[] b) throws java.io.IOException
FilterPlugin
write
in interface FilterPlugin
b
- the buffer to be sent
java.io.IOException
public javax.swing.JComponent getPluginVisual()
VisualPlugin
getPluginVisual
in interface VisualPlugin
public javax.swing.JMenu getPluginMenu()
VisualPlugin
getPluginMenu
in interface VisualPlugin
public void copy(java.awt.datatransfer.Clipboard clipboard)
VisualTransferPlugin
copy
in interface VisualTransferPlugin
clipboard
- the clipboardpublic void paste(java.awt.datatransfer.Clipboard clipboard)
VisualTransferPlugin
paste
in interface VisualTransferPlugin
clipboard
- the clipboardpublic void lostOwnership(java.awt.datatransfer.Clipboard clipboard, java.awt.datatransfer.Transferable contents)
lostOwnership
in interface java.awt.datatransfer.ClipboardOwner
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |