|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lowagie.toolbox.arguments.AbstractArgument
com.lowagie.toolbox.arguments.FileArgument
public class FileArgument
FileArgument class if the argument is a java.io.File.
| Field Summary | |
|---|---|
protected FileFilter |
filter
a filter to put on the FileChooser. |
(package private) PdfInformationPanel |
label
the label |
protected boolean |
newFile
indicates if the argument has to point to a new or an existing file. |
| Fields inherited from class com.lowagie.toolbox.arguments.AbstractArgument |
|---|
description, name, pcs, tool, value |
| Constructor Summary | |
|---|---|
FileArgument()
|
|
FileArgument(AbstractTool tool,
String name,
String description,
boolean newFile)
Constructs a FileArgument. |
|
FileArgument(AbstractTool tool,
String name,
String description,
boolean newFile,
FileFilter filter)
Constructs a FileArgument. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
|
Object |
getArgument()
Gets the argument as an object. |
FileFilter |
getFilter()
|
PdfInformationPanel |
getLabel()
|
void |
setFilter(FileFilter filter)
|
void |
setLabel(PdfInformationPanel label)
|
| Methods inherited from class com.lowagie.toolbox.arguments.AbstractArgument |
|---|
addPropertyChangeListener, firePropertyChange, getDescription, getName, getTool, getUsage, getValue, propertyChange, removePropertyChangeListener, setDescription, setName, setTool, setValue, setValue, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected FileFilter filter
protected boolean newFile
PdfInformationPanel label
| Constructor Detail |
|---|
public FileArgument()
public FileArgument(AbstractTool tool,
String name,
String description,
boolean newFile,
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 - FileFilter
public FileArgument(AbstractTool tool,
String name,
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 Object getArgument()
throws InstantiationException
getArgument in class AbstractArgumentInstantiationExceptionpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListeneractionPerformed in class AbstractArgumente - ActionEventActionListener.actionPerformed(java.awt.event.ActionEvent)public FileFilter getFilter()
public void setFilter(FileFilter filter)
filter - The filter to set.public PdfInformationPanel getLabel()
public void setLabel(PdfInformationPanel label)
label - The label to set.
|
Hosted by Hostbasket | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||