public class FormFilePathField extends AbstractFormField<java.lang.String>
Copyright 2014 Partner Software, Inc.
gui| Constructor and Description |
|---|
FormFilePathField()
Creates a GUIField for entering a file name with
JFileChooser set to FILES_AND_DIRECTORIES as default |
FormFilePathField(boolean fileAndDir)
Creates GUIField for entering a file name
with
JFileChooser set to JFileChooser.FILES_AND_DIRECTORIES
when fileAndDir is true or JFileChooser.FILES_ONLY when false |
| Modifier and Type | Method and Description |
|---|---|
void |
choose() |
VfsDirectory |
getCurrentDirectory() |
javax.swing.JButton |
getJButton() |
javax.swing.JFileChooser |
getJFileChooser() |
javax.swing.JTextField |
getJTextField() |
java.lang.String |
getValue()
Returns the current value for this field.
|
void |
setCurrentDirectory(VfsDirectory newDirectory) |
void |
setValue(java.lang.String newValue)
Sets the current value for this field.
|
void |
setValueSafely(java.lang.Object newValue)
Sets the value safely, e.g.
|
addFieldListener, createPopup, doAction, fireActionRequested, fireValueChanged, getGui, getToolTipText, grabFocus, isDisabled, removeFieldListener, selectAll, selectNone, setDisabled, setToolTipText, toString, valueChangedpublic FormFilePathField()
JFileChooser set to FILES_AND_DIRECTORIES as defaultpublic FormFilePathField(boolean fileAndDir)
JFileChooser set to JFileChooser.FILES_AND_DIRECTORIES
when fileAndDir is true JFileChooser.FILES_ONLY when falsefileAndDir - - true for file and directories false for file onlypublic java.lang.String getValue()
public void setValue(java.lang.String newValue)
public void setValueSafely(java.lang.Object newValue)
FormFieldpublic void choose()
public VfsDirectory getCurrentDirectory()
public void setCurrentDirectory(VfsDirectory newDirectory)
public javax.swing.JTextField getJTextField()
public javax.swing.JFileChooser getJFileChooser()
public javax.swing.JButton getJButton()