public class FileSpecification2 extends FileOrDirectorySpecification2 implements ModifiedInformer
fileNameBox
dialog, fileChooseButton, fileFilter, ownerFrame
Constructor and Description |
---|
FileSpecification2(java.awt.Frame ownerFrame) |
FileSpecification2(java.awt.Frame ownerFrame,
int length) |
FileSpecification2(java.awt.Frame ownerFrame,
java.lang.String defaultValue) |
FileSpecification2(java.awt.Frame ownerFrame,
java.lang.String defaultValue,
int length) |
Modifier and Type | Method and Description |
---|---|
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 |
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, getComboBox, getEndValues, getFileName, getSelectedFileName, requestFocusInWindow, setFileName, setFilePath, setFilePaths, setPrototypeDisplayValue, setTextAsEditBeginValue
getTranslation
public FileSpecification2(java.awt.Frame ownerFrame)
public FileSpecification2(java.awt.Frame ownerFrame, java.lang.String defaultValue)
public FileSpecification2(java.awt.Frame ownerFrame, int length)
public FileSpecification2(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 setVisible(boolean b)
public void setEditable(boolean b)
public void selectAll()
public boolean isModified()
ModifiedInformer
isModified
in interface ModifiedInformer
isModified
in class FileOrDirectorySpecification2
public void setEnabled(boolean b)
FileOrDirectorySpecification2
setEnabled
in class FileOrDirectorySpecification2
b
- whether or not this component is enabledpublic java.lang.String getCharset()
public boolean isExisting()
public boolean isInputAccepted()
InputController
isInputAccepted
in interface InputController
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de