public class JDynFormFieldFile extends AbstractJDynFormField implements JDynFormField, FocusListener
AbstractJDynFormField.IllegalFieldValue
JDynFormField.JDynFormFieldListener
Modifier and Type | Field and Description |
---|---|
protected File |
assignedValue |
protected File |
currentValue |
protected JButton |
jbutton |
protected 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(FocusEvent arg0) |
void |
focusLost(FocusEvent arg0) |
Object |
getAssignedValue() |
Object |
getValue()
Get the value of field from the form.
|
boolean |
hasValidValue() |
void |
initComponent() |
void |
onClickBrowse() |
void |
setReadOnly(boolean readonly) |
void |
setValue(Object value) |
File[] |
showChooserDialog(String title,
int type,
int selectionMode,
boolean multiselection,
File initialPath,
FileFilter filter,
boolean fileHidingEnabled) |
File[] |
showOpenFileDialog(String title,
File initialPath,
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, translateEmptyToNull
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addActionToPopupMenu, addListener, addSeparatorToPopupMenu, fetch, fireMessageEvent, getDefinition, getForm, getJLabel, getLabel, getName, isModified, isReadOnly, removeListener
asJComponent
getManager
protected File assignedValue
protected File currentValue
protected JTextField jtext
protected JButton jbutton
protected boolean readonly
public JDynFormFieldFile(DynObject parameters, ServiceManager serviceManager)
public void setReadOnly(boolean readonly)
setReadOnly
in interface JDynFormField
setReadOnly
in class AbstractJDynFormField
public Object getAssignedValue()
getAssignedValue
in class AbstractJDynFormField
public void initComponent()
initComponent
in class AbstractJDynFormField
public void onClickBrowse()
public void setValue(Object value)
setValue
in interface JDynFormField
public Object getValue()
JDynFormField
getValue
in interface JDynFormField
public boolean hasValidValue()
hasValidValue
in interface JDynFormField
public File[] showOpenFileDialog(String title, File initialPath, FileFilter filter)
public File[] showChooserDialog(String title, int type, int selectionMode, boolean multiselection, File initialPath, FileFilter filter, boolean fileHidingEnabled)
public void focusGained(FocusEvent arg0)
focusGained
in interface FocusListener
public void focusLost(FocusEvent arg0)
focusLost
in interface FocusListener
public void clear()
clear
in interface JDynFormField
clear
in class AbstractJDynFormField