|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.toolbox.AbstractTool
public abstract class AbstractTool
Every iText tool has to extend this abstract class.
Field Summary | |
---|---|
protected ArrayList<AbstractArgument> |
arguments
The list of arguments needed by the tool. |
private Desktop |
awtdesktop
awtdesktop |
protected JInternalFrame |
internalFrame
The internal frame of the tool. |
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 |
private JMenuBar |
menubar
|
protected int |
menuoptions
Execute menu options |
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). |
private 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static ArrayList<String> versionsarray
protected JInternalFrame internalFrame
protected ArrayList<AbstractArgument> arguments
protected int menuoptions
public static final int MENU_EXECUTE
public static final int MENU_EXECUTE_SHOW
public static final int MENU_EXECUTE_PRINT
public static final int MENU_EXECUTE_PRINT_SILENT
private Desktop awtdesktop
private JMenuBar menubar
Constructor Detail |
---|
public AbstractTool()
Method Detail |
---|
public void setArguments(ArrayList<AbstractArgument> arguments)
arguments
- The arguments to set.public void setMainArguments(String[] args)
args
- the arguments as String-array.public ArrayList<AbstractArgument> getArguments()
public Object getValue(String name) throws InstantiationException
name
- the name of the argument
InstantiationException
public void setInternalFrame(JInternalFrame internalFrame)
internalFrame
- The internalFrame to set.public void setMenubar(JMenuBar menubar)
public JInternalFrame getInternalFrame()
public JMenuBar getMenubar()
public String getUsage()
private String getArgs()
public void actionPerformed(ActionEvent evt)
actionPerformed
in interface ActionListener
evt
- ActionEventActionListener.actionPerformed(java.awt.event.ActionEvent)
protected abstract File getDestPathPDF() throws InstantiationException
InstantiationException
protected abstract void createFrame()
public abstract void execute()
public abstract void valueHasChanged(AbstractArgument arg)
arg
- the argument that has changedprotected static void addVersion(String version)
version
- the version to add.
|
Hosted by Hostbasket | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |