com.lowagie.toolbox
public abstract class AbstractTool extends Object implements ActionListener
Since: 2.1.1 (imported from itexttoolbox project)
Version: $Id: AbstractTool.java 3276 2008-04-19 00:32:58Z xlv $
| Field Summary | |
|---|---|
| protected ArrayList<AbstractArgument> | arguments The list of arguments needed by the tool. |
| Desktop | awtdesktop
awtdesktop |
| protected JInternalFrame | internalFrame The internal frame of the tool. |
| JMenuBar | menubar |
| protected int | menuoptions Execute menu options |
| static int | MENU_EXECUTE a menu option |
| static int | MENU_EXECUTE_PRINT a menu option |
| static int | MENU_EXECUTE_PRINT_SILENT a menu option |
| static int | MENU_EXECUTE_SHOW a menu option |
| static ArrayList<String> | versionsarray An array with the plugin_versions of the tool. |
| Constructor Summary | |
|---|---|
| AbstractTool()
AbstractTool | |
| Method Summary | |
|---|---|
| void | actionPerformed(ActionEvent evt) |
| protected static void | addVersion(String version)
Add the version of the plugin to the plugin_versions array. |
| protected abstract void | createFrame()
Creates the internal frame. |
| abstract void | execute()
Executes the tool (in most cases this generates a PDF file). |
| String | getArgs()
Gets the current arguments of the tool. |
| ArrayList<AbstractArgument> | getArguments()
Gets the arguments. |
| protected abstract File | getDestPathPDF()
Gets the PDF file that should be generated (or null if the output isn't a PDF file). |
| JInternalFrame | getInternalFrame()
Returns the internal frame. |
| JMenuBar | getMenubar()
Gets the menubar. |
| String | getUsage()
Gets the usage of the tool. |
| Object | getValue(String name)
Gets the value of a given argument.
|
| void | setArguments(ArrayList<AbstractArgument> arguments)
Sets the arguments. |
| void | setInternalFrame(JInternalFrame internalFrame)
Sets the internal frame. |
| void | setMainArguments(String[] args)
Sets the arguments. |
| void | setMenubar(JMenuBar menubar) |
| abstract void | valueHasChanged(AbstractArgument arg)
Indicates that the value of an argument has changed. |
Parameters: evt ActionEvent
See Also: java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
Parameters: version the version to add.
Returns: a String with the list of arguments and their values.
Returns: Returns the arguments.
Returns: the PDF file that should be generated
Throws: InstantiationException
Returns: Returns the internalFrame.
Returns: a menubar for this tool
Returns: a String describing how to use the tool.
Parameters: name the name of the argument
Returns: the value of an argument as an Object.
Throws: InstantiationException
Parameters: arguments The arguments to set.
Parameters: internalFrame The internalFrame to set.
Parameters: args the arguments as String-array.
Parameters: arg the argument that has changed