de.mud.jta.plugin
Class URLFilter
- FilterPlugin, Runnable, VisualPlugin
Maintainer: Matthias L. Jugel
$Id: URLFilter.java 499 2005-09-29 08:24:54Z leo $- Matthias L. Jugel, Marcus Mei???ner
FilterPlugin | getFilterSource()
|
JMenu | getPluginMenu() - Get the menu entry for this component.
|
JComponent | getPluginVisual() - Get the visible components from the plugin.
|
int | read(byte[] b) - Read an array of bytes from the back end and send it to the
url parser to see if it matches.
|
void | run()
|
void | setFilterSource(FilterPlugin plugin) - Set the filter source where we can read data from and where to
write the script answer to.
|
protected void | showURL(String url) - Show a URL if the applet context is available.
|
void | write(byte[] b)
|
context
protected AppletContext context
pin
protected PipedInputStream pin
pout
protected PipedOutputStream pout
protocols
protected Vector protocols
source
protected FilterPlugin source
holds the data source for input and output
urlList
protected JList urlList
urlMenu
protected JMenu urlMenu
urlPanel
protected JPanel urlPanel
URLFilter
public URLFilter(PluginBus bus,
String id)
Create a new scripting plugin.
getPluginMenu
public JMenu getPluginMenu()
Get the menu entry for this component.
- getPluginMenu in interface VisualPlugin
- a menu that can be used to change the plugin state
getPluginVisual
public JComponent getPluginVisual()
Get the visible components from the plugin.
- getPluginVisual in interface VisualPlugin
- a component that represents the plugin
read
public int read(byte[] b)
throws IOException
Read an array of bytes from the back end and send it to the
url parser to see if it matches.
- read in interface FilterPlugin
b
- the array where to read the bytes in
- the amount of bytes actually read
setFilterSource
public void setFilterSource(FilterPlugin plugin)
Set the filter source where we can read data from and where to
write the script answer to.
- setFilterSource in interface FilterPlugin
plugin
- the filter plugin we use as source
showURL
protected void showURL(String url)
Show a URL if the applet context is available.
We may make it later able to run a web browser or use an HTML
component.