public abstract class FileOrDirectorySpecification extends FileOrDirectorySpecificationStd
Modifier and Type | Field and Description |
---|---|
protected MustTextField |
fileName |
dialog, fileChooseButton, fileFilter, ownerFrame
Constructor and Description |
---|
FileOrDirectorySpecification(java.awt.Frame ownerFrame,
java.lang.String defaultValue) |
FileOrDirectorySpecification(java.awt.Frame ownerFrame,
java.lang.String defaultValue,
int length) |
Modifier and Type | Method and Description |
---|---|
void |
addTo(AttributeList attributeList,
java.lang.String label)
Adds the component to an attribute list
|
MustFile |
getFile() |
java.lang.String |
getFileName() |
protected MustTextField |
getTextField() |
protected java.lang.String |
getTranslation(java.lang.String resourceKey)
Returns a text in the corresponding language according to the locale
specific resource bundle of the package.
|
boolean |
isInputAccepted()
Returns true if user input is accepted by application.
|
boolean |
isModified()
Indicates whether the component's value differs from its initial value.
|
boolean |
requestFocusInWindow() |
void |
setEnabled(boolean b)
Enables or disables the choose buttons.
|
void |
setText(java.lang.String text)
Sets the value of text field.
|
void |
setTextAsEditBeginValue(java.lang.String text)
Sets the text as edit begin value which causes isModified to return false
as long as user doesn't change the value.
|
protected MustTextField fileName
public FileOrDirectorySpecification(java.awt.Frame ownerFrame, java.lang.String defaultValue)
public FileOrDirectorySpecification(java.awt.Frame ownerFrame, java.lang.String defaultValue, int length)
public void setTextAsEditBeginValue(java.lang.String text)
text
- the new value of the text fieldpublic void setText(java.lang.String text)
text
- the new value of the text fieldprotected java.lang.String getTranslation(java.lang.String resourceKey)
getTranslation
in class FileOrDirectorySpecificationStd
resourceKey
- the key of the resource to retrievepublic void addTo(AttributeList attributeList, java.lang.String label)
attributeList
- the attribute list to be extendedlabel
- the label of the component's rowpublic void setEnabled(boolean b)
b
- whether or not this component is enabledpublic MustFile getFile()
public java.lang.String getFileName()
getFileName
in class FileOrDirectorySpecificationStd
public boolean requestFocusInWindow()
protected MustTextField getTextField()
public boolean isModified()
ModifiedInformer
isModified
in interface ModifiedInformer
isModified
in class FileOrDirectorySpecificationStd
public boolean isInputAccepted()
InputController
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de