public abstract class FileOrDirectorySpecification2 extends FileOrDirectorySpecificationStd
Modifier and Type | Field and Description |
---|---|
protected MustComboBox2 |
fileNameBox |
dialog, fileChooseButton, fileFilter, ownerFrame
Constructor and Description |
---|
FileOrDirectorySpecification2(java.awt.Frame ownerFrame,
java.lang.String defaultValue) |
FileOrDirectorySpecification2(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
|
protected MustComboBox2 |
getComboBox() |
java.lang.String |
getEndValues() |
java.lang.String |
getFileName() |
java.lang.String |
getSelectedFileName() |
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 |
setFileName(java.lang.String fileName) |
void |
setFilePath(java.lang.String fileName) |
void |
setFilePaths(java.lang.String filePaths)
Sets choosable file paths.
|
void |
setPrototypeDisplayValue(java.lang.String prototypeDisplayValue)
Sets the prototype display value used to calculate the size of the display
for the UI portion.
|
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.
|
getTranslation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isInputAccepted
protected MustComboBox2 fileNameBox
public FileOrDirectorySpecification2(java.awt.Frame ownerFrame, java.lang.String defaultValue)
public FileOrDirectorySpecification2(java.awt.Frame ownerFrame, java.lang.String defaultValue, int length)
public void setPrototypeDisplayValue(java.lang.String prototypeDisplayValue)
prototypeDisplayValue
- JComboBox.getPrototypeDisplayValue()
public void setTextAsEditBeginValue(java.lang.String text)
text
- the new value of the text fieldpublic void setFilePaths(java.lang.String filePaths)
filePaths
- choosable file pathspublic void setFilePath(java.lang.String fileName)
public void setFileName(java.lang.String fileName)
public 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 java.lang.String getSelectedFileName()
public java.lang.String getFileName()
getFileName
in class FileOrDirectorySpecificationStd
public java.lang.String getEndValues()
public boolean requestFocusInWindow()
protected MustComboBox2 getComboBox()
public boolean isModified()
ModifiedInformer
isModified
in interface ModifiedInformer
isModified
in class FileOrDirectorySpecificationStd
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de