public class FileSpecification extends FileOrDirectorySpecification implements ModifiedInformer
fileName
dialog, fileChooseButton, fileFilter, ownerFrame
Constructor and Description |
---|
FileSpecification(java.awt.Frame ownerFrame) |
FileSpecification(java.awt.Frame ownerFrame,
int length) |
FileSpecification(java.awt.Frame ownerFrame,
java.lang.String defaultValue) |
FileSpecification(java.awt.Frame ownerFrame,
java.lang.String defaultValue,
int length) |
Modifier and Type | Method and Description |
---|---|
void |
addTo(AttributeList attributeList) |
java.lang.String |
getCharset() |
boolean |
isExisting()
Returns true if file is specified and existing.
|
boolean |
isInputAccepted()
Returns true if user input is accepted by application.
|
boolean |
isModified()
Indicates whether the component's value differs from its initial value.
|
void |
selectAll() |
void |
setEditable(boolean b) |
void |
setEnabled(boolean b)
Enables or disables the choose buttons.
|
void |
setFilePath(java.io.File file) |
void |
setFilePath(java.lang.String filePath) |
void |
setFilter(javax.swing.filechooser.FileFilter filter) |
void |
setFilter(java.lang.String[] filter) |
void |
setOnCharsetChoosing(java.lang.String[] charsetOptions) |
void |
setOnGraphicFileFilter() |
void |
setToolTipText(java.lang.String text) |
void |
setVisible(boolean b) |
addTo, getFile, getFileName, getTextField, getTranslation, requestFocusInWindow, setText, setTextAsEditBeginValue
public FileSpecification(java.awt.Frame ownerFrame)
public FileSpecification(java.awt.Frame ownerFrame, java.lang.String defaultValue)
public FileSpecification(java.awt.Frame ownerFrame, int length)
public FileSpecification(java.awt.Frame ownerFrame, java.lang.String defaultValue, int length)
public void setOnCharsetChoosing(java.lang.String[] charsetOptions)
public void setFilter(java.lang.String[] filter)
public void setOnGraphicFileFilter()
public void setFilter(javax.swing.filechooser.FileFilter filter)
public void setToolTipText(java.lang.String text)
public void setFilePath(java.io.File file)
public void setFilePath(java.lang.String filePath)
public void setVisible(boolean b)
public void setEditable(boolean b)
public void selectAll()
public boolean isModified()
ModifiedInformer
isModified
in interface ModifiedInformer
isModified
in class FileOrDirectorySpecification
public void addTo(AttributeList attributeList)
public void setEnabled(boolean b)
FileOrDirectorySpecification
setEnabled
in class FileOrDirectorySpecification
b
- whether or not this component is enabledpublic java.lang.String getCharset()
public boolean isExisting()
public boolean isInputAccepted()
InputController
isInputAccepted
in interface InputController
isInputAccepted
in class FileOrDirectorySpecification
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de