Package org.geotools.swing.wizard
Class JFileField
Object
ParamField
JFileField
Widget for File; provides a "Browse" button to open a file dialog.
- Author:
- Jody Garnett
-
Field Summary
Fields inherited from class ParamField
parameter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(JWizard.Controller controller) protected voidbrowse()doLayout()Called to build the widget, initialize it (setting defaults or whatever) and setup any listeners needed for validation of the widget value.getValue()Returns the current value of the widget.voidremoveListener(JWizard.Controller controller) voidSets the value of the widget.booleanvalidate()Validates the current value of the widget, returns false if not valid, true otherwiseMethods inherited from class ParamField
create
-
Constructor Details
-
JFileField
-
-
Method Details
-
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 classParamField- Returns:
- JComponent or null if error
-
browse
protected void browse() -
addListener
- Specified by:
addListenerin classParamField
-
removeListener
- Specified by:
removeListenerin classParamField
-
getValue
Description copied from class:ParamFieldReturns the current value of the widget.- Specified by:
getValuein classParamField- Returns:
- Object representing the current value of the widget
-
setValue
Description copied from class:ParamFieldSets the value of the widget.- Specified by:
setValuein classParamField- Parameters:
value- an object containing the value to set for the widget
-
validate
public boolean validate()Description copied from class:ParamFieldValidates the current value of the widget, returns false if not valid, true otherwise- Specified by:
validatein classParamField- Returns:
- boolean if validated
-