Package org.geotools.swing.wizard
Class ParamField
Object
ParamField
- Direct Known Subclasses:
JDoubleField,JField,JFileField,JGeometryField,JURLField
Super class that provides additional helper methods useful when implementing your own ParamWidget.
- Author:
- gdavis
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddListener(JWizard.Controller controller) static ParamFieldFactory method creating the appropriate ParamField for the supplied Param.abstract JComponentdoLayout()Called to build the widget, initialize it (setting defaults or whatever) and setup any listeners needed for validation of the widget value.abstract ObjectgetValue()Returns the current value of the widget.abstract voidremoveListener(JWizard.Controller controller) abstract voidSets the value of the widget.abstract booleanvalidate()Validates the current value of the widget, returns false if not valid, true otherwise
-
Field Details
-
parameter
-
-
Method Details
-
doLayout
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.- Returns:
- JComponent or null if error
-
validate
public abstract boolean validate()Validates the current value of the widget, returns false if not valid, true otherwise- Returns:
- boolean if validated
-
setValue
Sets the value of the widget.- Parameters:
value- an object containing the value to set for the widget
-
addListener
-
removeListener
-
getValue
Returns the current value of the widget.- Returns:
- Object representing the current value of the widget
-
create
Factory method creating the appropriate ParamField for the supplied Param.
-