de.mud.jta.plugin
public class Capture extends Plugin implements FilterPlugin, VisualPlugin, java.awt.event.ActionListener
Parametrize the plugin carefully:
Capture.url should contain a unique URL can may have
parameters for identifying the upload.
Example: http://mg.mud.de/servlet/UpladServlet?id=12345
The actually captured data will be appended as the parameter content.
Maintainer: Matthias L. Jugel
Modifier and Type | Field and Description |
---|---|
protected boolean |
captureEnabled
Whether the capture is currently enabled or not
|
protected javax.swing.JDialog |
doneDialog |
protected javax.swing.JDialog |
errorDialog |
protected javax.swing.JDialog |
fileDialog |
protected javax.swing.JMenu |
menu
The plugin menu
|
protected java.util.Hashtable |
remoteUrlList
The remote storage URL
|
protected FilterPlugin |
source |
Constructor and Description |
---|
Capture(PluginBus bus,
java.lang.String id)
Initialize the Capture plugin.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
FilterPlugin |
getFilterSource() |
javax.swing.JMenu |
getPluginMenu()
The Capture menu for the menu bar as configured in the constructor.
|
javax.swing.JComponent |
getPluginVisual()
The Capture plugin has no visual component that is embedded in
the JTA main frame, so this returns null.
|
int |
read(byte[] b)
Read data from the left side plugin, capture the content and
pass it on to the next plugin which called this method.
|
void |
setFilterSource(FilterPlugin source)
The filter source is the plugin where Capture is connected to.
|
void |
write(byte[] b)
Write data to the backend but also append it to the capture buffer.
|
protected java.util.Hashtable remoteUrlList
protected javax.swing.JMenu menu
protected javax.swing.JDialog errorDialog
protected javax.swing.JDialog fileDialog
protected javax.swing.JDialog doneDialog
protected boolean captureEnabled
protected FilterPlugin source
public Capture(PluginBus bus, java.lang.String id)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void setFilterSource(FilterPlugin source)
setFilterSource
in interface FilterPlugin
source
- the next pluginpublic FilterPlugin getFilterSource()
getFilterSource
in interface FilterPlugin
public int read(byte[] b) throws java.io.IOException
read
in interface FilterPlugin
b
- the buffer to store data intojava.io.IOException
public void write(byte[] b) throws java.io.IOException
write
in interface FilterPlugin
b
- the buffer with data to writejava.io.IOException
public javax.swing.JComponent getPluginVisual()
getPluginVisual
in interface VisualPlugin
public javax.swing.JMenu getPluginMenu()
getPluginMenu
in interface VisualPlugin