public class JDynFormFieldFile extends AbstractJDynFormField implements JDynFormField, java.awt.event.FocusListener
AbstractJDynFormField.IllegalFieldValueJDynFormField.JDynFormFieldListener| Modifier and Type | Field and Description |
|---|---|
protected java.io.File |
assignedValue |
protected java.io.File |
currentValue |
protected javax.swing.JButton |
jbutton |
protected javax.swing.JTextField |
jtext |
protected boolean |
readonly |
contents, emptyToNull, logger, parameters| Constructor and Description |
|---|
JDynFormFieldFile(DynObject parameters,
ServiceManager serviceManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
focusGained(java.awt.event.FocusEvent arg0) |
void |
focusLost(java.awt.event.FocusEvent arg0) |
java.lang.Object |
getAssignedValue() |
java.lang.Object |
getValue()
Get the value of field from the form.
|
boolean |
hasValidValue() |
void |
initComponent() |
void |
onClickBrowse() |
void |
setReadOnly(boolean readonly) |
void |
setValue(java.lang.Object value) |
java.io.File[] |
showChooserDialog(java.lang.String title,
int type,
int selectionMode,
boolean multiselection,
java.io.File initialPath,
javax.swing.filechooser.FileFilter filter,
boolean fileHidingEnabled) |
java.io.File[] |
showOpenFileDialog(java.lang.String title,
java.io.File initialPath,
javax.swing.filechooser.FileFilter filter) |
addActionToPopupMenu, addListener, addSeparatorToPopupMenu, asJComponent, fetch, fireFieldChangedEvent, fireFieldEnterEvent, fireFieldExitEvent, fireMessageEvent, getDefinition, getForm, getJLabel, getLabel, getManager, getName, getParameterValue, getServiceManager, getTagValueAsBoolean, getTagValueAsBoolean, getTagValueAsInt, getTagValueAsInt, getTagValueAsString, getTagValueAsString, isModified, isReadOnly, loadDefaultValuesFromTags, problemIndicator, removeListener, setForm, setTranslateEmptyToNull, toString, translateEmptyToNullclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddActionToPopupMenu, addListener, addSeparatorToPopupMenu, fetch, fireMessageEvent, getDefinition, getForm, getJLabel, getLabel, getName, isModified, isReadOnly, removeListenerasJComponentgetManagerprotected java.io.File assignedValue
protected java.io.File currentValue
protected javax.swing.JTextField jtext
protected javax.swing.JButton jbutton
protected boolean readonly
public JDynFormFieldFile(DynObject parameters, ServiceManager serviceManager)
public void setReadOnly(boolean readonly)
setReadOnly in interface JDynFormFieldsetReadOnly in class AbstractJDynFormFieldpublic java.lang.Object getAssignedValue()
getAssignedValue in class AbstractJDynFormFieldpublic void initComponent()
initComponent in class AbstractJDynFormFieldpublic void onClickBrowse()
public void setValue(java.lang.Object value)
setValue in interface JDynFormFieldpublic java.lang.Object getValue()
JDynFormFieldgetValue in interface JDynFormFieldpublic boolean hasValidValue()
hasValidValue in interface JDynFormFieldpublic java.io.File[] showOpenFileDialog(java.lang.String title,
java.io.File initialPath,
javax.swing.filechooser.FileFilter filter)
public java.io.File[] showChooserDialog(java.lang.String title,
int type,
int selectionMode,
boolean multiselection,
java.io.File initialPath,
javax.swing.filechooser.FileFilter filter,
boolean fileHidingEnabled)
public void focusGained(java.awt.event.FocusEvent arg0)
focusGained in interface java.awt.event.FocusListenerpublic void focusLost(java.awt.event.FocusEvent arg0)
focusLost in interface java.awt.event.FocusListenerpublic void clear()
clear in interface JDynFormFieldclear in class AbstractJDynFormField