Package org.geotools.swing.wizard
Class JFileField
- Object
- 
- ParamField
- 
- JFileField
 
 
- 
 public class JFileField extends ParamField Widget for File; provides a "Browse" button to open a file dialog.- Author:
- Jody Garnett
 
- 
- 
Field Summary- 
Fields inherited from class ParamFieldparameter
 
- 
 - 
Constructor SummaryConstructors Constructor Description JFileField(Parameter<?> parameter)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(JWizard.Controller controller)protected voidbrowse()JComponentdoLayout()Called to build the widget, initialize it (setting defaults or whatever) and setup any listeners needed for validation of the widget value.FilegetValue()Returns the current value of the widget.voidremoveListener(JWizard.Controller controller)voidsetValue(Object value)Sets the value of the widget.booleanvalidate()Validates the current value of the widget, returns false if not valid, true otherwise- 
Methods inherited from class ParamFieldcreate
 
- 
 
- 
- 
- 
Constructor Detail- 
JFileFieldpublic JFileField(Parameter<?> parameter) 
 
- 
 - 
Method Detail- 
doLayoutpublic JComponent doLayout() Description copied from class:ParamFieldCalled to build the widget, initialize it (setting defaults or whatever) and setup any listeners needed for validation of the widget value. The returned JComponent will contain the widget for editing.- Specified by:
- doLayoutin class- ParamField
- Returns:
- JComponent or null if error
 
 - 
browseprotected void browse() 
 - 
addListenerpublic void addListener(JWizard.Controller controller) - Specified by:
- addListenerin class- ParamField
 
 - 
removeListenerpublic void removeListener(JWizard.Controller controller) - Specified by:
- removeListenerin class- ParamField
 
 - 
getValuepublic File getValue() Description copied from class:ParamFieldReturns the current value of the widget.- Specified by:
- getValuein class- ParamField
- Returns:
- Object representing the current value of the widget
 
 - 
setValuepublic void setValue(Object value) Description copied from class:ParamFieldSets the value of the widget.- Specified by:
- setValuein class- ParamField
- Parameters:
- value- an object containing the value to set for the widget
 
 - 
validatepublic boolean validate() Description copied from class:ParamFieldValidates the current value of the widget, returns false if not valid, true otherwise- Specified by:
- validatein class- ParamField
- Returns:
- boolean if validated
 
 
- 
 
-