|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lowagie.tools.arguments.ToolArgument
com.lowagie.tools.arguments.FileArgument
public class FileArgument
ToolArgument class if the argument is a java.io.File.
| Field Summary | |
|---|---|
private javax.swing.filechooser.FileFilter |
filter
a filter to put on the FileChooser. |
(package private) LabelAccessory |
label
the label |
private boolean |
newFile
indicates if the argument has to point to a new or an existing file. |
(package private) static java.lang.String |
PROPERTYFILENAME
|
| Fields inherited from class com.lowagie.tools.arguments.ToolArgument |
|---|
classname, description, name, propertyChangeListeners, tool, value |
| Constructor Summary | |
|---|---|
FileArgument(AbstractTool tool,
java.lang.String name,
java.lang.String description,
boolean newFile)
Constructs a FileArgument. |
|
FileArgument(AbstractTool tool,
java.lang.String name,
java.lang.String description,
boolean newFile,
javax.swing.filechooser.FileFilter filter)
Constructs a FileArgument. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
java.lang.Object |
getArgument()
Gets the argument as an object. |
javax.swing.filechooser.FileFilter |
getFilter()
|
LabelAccessory |
getLabel()
|
void |
setFilter(javax.swing.filechooser.FileFilter filter)
|
void |
setLabel(LabelAccessory label)
|
| Methods inherited from class com.lowagie.tools.arguments.ToolArgument |
|---|
addPropertyChangeListener, firePropertyChange, getClassname, getDescription, getName, getUsage, getValue, propertyChange, removePropertyChangeListener, setClassname, setDescription, setName, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private javax.swing.filechooser.FileFilter filter
private boolean newFile
LabelAccessory label
static final java.lang.String PROPERTYFILENAME
| Constructor Detail |
|---|
public FileArgument(AbstractTool tool,
java.lang.String name,
java.lang.String description,
boolean newFile,
javax.swing.filechooser.FileFilter filter)
tool - the tool that needs this argumentname - the name of the argumentdescription - the description of the argumentnewFile - makes the difference between an Open or Save dialogfilter -
public FileArgument(AbstractTool tool,
java.lang.String name,
java.lang.String description,
boolean newFile)
tool - the tool that needs this argumentname - the name of the argumentdescription - the description of the argumentnewFile - makes the difference between an Open or Save dialog| Method Detail |
|---|
public java.lang.Object getArgument()
throws java.lang.InstantiationException
getArgument in class ToolArgumentjava.lang.InstantiationExceptionpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class ToolArgumentActionListener.actionPerformed(java.awt.event.ActionEvent)public javax.swing.filechooser.FileFilter getFilter()
public void setFilter(javax.swing.filechooser.FileFilter filter)
filter - The filter to set.public LabelAccessory getLabel()
public void setLabel(LabelAccessory label)
label - The label to set.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||