public class FwkFileDialogPaneValue extends FwkDialogPaneValue implements java.lang.Cloneable
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected static int |
CREATE_DIRECTORY |
protected static int |
CREATE_FILE |
protected java.io.File |
dir |
protected FwkFileFilter |
fileFilter |
protected java.lang.String[] |
names |
protected int |
operation |
protected static int |
READ_DIRECTORY |
protected static int |
READ_FILE |
static java.lang.String |
version |
getHt, ident, propertyChange, setHt
Constructor and Description |
---|
FwkFileDialogPaneValue() |
FwkFileDialogPaneValue(java.io.File file)
Constructors.
|
FwkFileDialogPaneValue(java.lang.String ident)
Constructors.
|
FwkFileDialogPaneValue(java.lang.String ident,
java.io.File file)
Constructors.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
The clone method.
|
boolean |
getCreateDirectory()
Retrieve the flag that indicates the creation of a directory.
|
boolean |
getCreateFile()
Retrieve the flag that indicates the creation of a file.
|
FwkFileFilter |
getFileFilter()
Get the file filter of this chooser.
|
java.lang.String[] |
getFilenames()
Get the name of the selected file.
|
java.io.File[] |
getFiles()
Get the file object of this value.
|
java.lang.String |
getPath()
Get the current chooser directory as String.
|
java.io.File |
getPathFile()
Get the current chooser directory as String.
|
boolean |
getReadDirectory()
Retrieve the flag that indicates the reading of a directory.
|
boolean |
getReadFile()
Retrieve the flag that indicates the read of a file.
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
static void |
main(java.lang.String[] args)
The Main body to test the class.
|
void |
setCreateDirectory(boolean flag)
Set the flag that indicates the creation of a directory.
|
void |
setCreateFile(boolean flag)
Set the flag that indicates the creation of a file.
|
void |
setFileFilter(FwkFileFilter fileFilter)
Set the file filter.
|
void |
setFilename(java.lang.String selectedFile)
Set the selected file.
|
void |
setFilenames(java.lang.String[] selectedFile)
Set the selected file.
|
void |
setPath(java.lang.String dirName)
Set the current chooser directory.
|
void |
setReadDirectory(boolean flag)
Set the flag that indicates the reading of a directory.
|
void |
setReadFile(boolean flag)
Set the flag that indicates the reading of a file.
|
java.lang.String |
toString()
The string presentation of teh object.
|
addPropertyChangeListener, addPropertyChangeListener, entrySet, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getIdent, getProperties, getProperty, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, release, removePropertyChangeListener, removePropertyChangeListener, setIdent, setProperties, setProperty, setSource, suspendPropertyChangeEvents
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
public static final java.lang.String version
protected static final int READ_FILE
protected static final int READ_DIRECTORY
protected static final int CREATE_DIRECTORY
protected static final int CREATE_FILE
protected java.io.File dir
protected FwkFileFilter fileFilter
protected int operation
protected java.lang.String[] names
public FwkFileDialogPaneValue()
public FwkFileDialogPaneValue(java.lang.String ident)
ident
- the ident string of this value.public FwkFileDialogPaneValue(java.io.File file)
file
- the initial value.public FwkFileDialogPaneValue(java.lang.String ident, java.io.File file)
ident
- the ident string of this value.file
- the initial value.public java.lang.String getVersion()
FwkInterface
getVersion
in interface FwkInterface
getVersion
in class FwkDialogPaneValue
public boolean getCreateDirectory()
if
- true a directory should be created.public void setCreateDirectory(boolean flag)
flag
- if true a directory should be created.public boolean getCreateFile()
if
- true a file should be created.public void setCreateFile(boolean flag)
flag
- if true a file should be created.public boolean getReadDirectory()
if
- true a directory should be read.public void setReadDirectory(boolean flag)
flag
- if true a directory should be read.public boolean getReadFile()
if
- true a file should be read.public void setReadFile(boolean flag)
flag
- if true a file should be read.public java.lang.String getPath()
public java.io.File getPathFile()
public java.lang.String[] getFilenames()
public FwkFileFilter getFileFilter()
public void setPath(java.lang.String dirName)
dirName
- The directory name.public void setFileFilter(FwkFileFilter fileFilter)
fileFilter
- The file filter.public void setFilename(java.lang.String selectedFile)
selected
- The selected file filter.public void setFilenames(java.lang.String[] selectedFile)
selected
- The selected file filter.public java.io.File[] getFiles()
public java.lang.String toString()
toString
in class FwkDialogPaneValue
public java.lang.Object clone()
clone
in class java.util.AbstractMap
public static void main(java.lang.String[] args)