public class FileSpecificationForUpload extends java.lang.Object implements ClientAcceptanceCheck, ModifiedInformer
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JFileChooser |
dialog |
protected MustButton |
fileChooseButton |
protected javax.swing.filechooser.FileFilter |
fileFilter |
protected MustTextField |
fileStreamTextField |
protected FrontendResources |
frontendResources |
Constructor and Description |
---|
FileSpecificationForUpload(FrontendResources frontendResources) |
FileSpecificationForUpload(FrontendResources frontendResources,
int length) |
Modifier and Type | Method and Description |
---|---|
void |
addTo(AttributeList attributeList) |
java.lang.String |
getCharset() |
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(MessageReceiver messageReceiver)
Returns true if user input is accepted - override this method to check user input.
|
boolean |
isModified()
Indicates whether the component's value differs from its initial value.
|
boolean |
requestFocusInWindow() |
void |
selectAll() |
void |
setEditable(boolean value) |
void |
setEditBeginValue(java.lang.String text) |
void |
setEnabled(boolean value) |
void |
setFilter(javax.swing.filechooser.FileFilter filter) |
void |
setOnCharsetChoosing(java.lang.String[] charsetOptions) |
void |
setOnGraphicFileFilter() |
void |
setVisible(boolean value) |
protected FrontendResources frontendResources
protected MustTextField fileStreamTextField
protected MustButton fileChooseButton
protected javax.swing.JFileChooser dialog
protected javax.swing.filechooser.FileFilter fileFilter
public FileSpecificationForUpload(FrontendResources frontendResources)
public FileSpecificationForUpload(FrontendResources frontendResources, int length)
public void setOnCharsetChoosing(java.lang.String[] charsetOptions)
public java.lang.String getCharset()
public void setOnGraphicFileFilter()
public void setFilter(javax.swing.filechooser.FileFilter filter)
public void setEditBeginValue(java.lang.String text)
public void addTo(AttributeList attributeList)
public void selectAll()
public boolean requestFocusInWindow()
public void setVisible(boolean value)
public void setEnabled(boolean value)
public void setEditable(boolean value)
public boolean isModified()
ModifiedInformer
isModified
in interface ModifiedInformer
public boolean isInputAccepted(MessageReceiver messageReceiver)
ClientAcceptanceCheck
isInputAccepted
in interface ClientAcceptanceCheck
messageReceiver
- the receiver of messages why input is not acceptedprotected java.lang.String getTranslation(java.lang.String resourceKey)
resourceKey
- the key of the resource to retrieveCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de