Package org.geotools.swing.wizard
Class JField
Object
ParamField
JField
Field that uses the converter API to hack away at a text representation of the provided value.
-
Field Summary
Fields inherited from class ParamField
parameter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(JWizard.Controller controller) 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.void
removeListener
(JWizard.Controller controller) void
setSingleLine
(boolean single) void
Sets the value of the widget.boolean
validate()
Validates the current value of the widget, returns false if not valid, true otherwiseMethods inherited from class ParamField
create
-
Constructor Details
-
JField
-
-
Method Details
-
setSingleLine
public void setSingleLine(boolean single) -
doLayout
Description copied from class:ParamField
Called 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:
doLayout
in classParamField
- Returns:
- JComponent or null if error
-
getValue
Description copied from class:ParamField
Returns the current value of the widget.- Specified by:
getValue
in classParamField
- Returns:
- Object representing the current value of the widget
-
setValue
Description copied from class:ParamField
Sets the value of the widget.- Specified by:
setValue
in classParamField
- Parameters:
value
- an object containing the value to set for the widget
-
addListener
- Specified by:
addListener
in classParamField
-
removeListener
- Specified by:
removeListener
in classParamField
-
validate
public boolean validate()Description copied from class:ParamField
Validates the current value of the widget, returns false if not valid, true otherwise- Specified by:
validate
in classParamField
- Returns:
- boolean if validated
-