Package org.geotools.swing.wizard
Class ParamField
- Object
- 
- ParamField
 
- 
- Direct Known Subclasses:
- JDoubleField,- JField,- JFileField,- JGeometryField,- JURLField
 
 public abstract class ParamField extends Object Super class that provides additional helper methods useful when implementing your own ParamWidget.- Author:
- gdavis
 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidaddListener(JWizard.Controller controller)static ParamFieldcreate(Parameter<?> parameter)Factory 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 voidsetValue(Object value)Sets the value of the widget.abstract booleanvalidate()Validates the current value of the widget, returns false if not valid, true otherwise
 
- 
- 
- 
Field Detail- 
parameterprotected final Parameter<?> parameter 
 
- 
 - 
Method Detail- 
doLayoutpublic abstract JComponent 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
 
 - 
validatepublic abstract boolean validate() Validates the current value of the widget, returns false if not valid, true otherwise- Returns:
- boolean if validated
 
 - 
setValuepublic abstract void setValue(Object value) Sets the value of the widget.- Parameters:
- value- an object containing the value to set for the widget
 
 - 
addListenerpublic abstract void addListener(JWizard.Controller controller) 
 - 
removeListenerpublic abstract void removeListener(JWizard.Controller controller) 
 - 
getValuepublic abstract Object getValue() Returns the current value of the widget.- Returns:
- Object representing the current value of the widget
 
 - 
createpublic static ParamField create(Parameter<?> parameter) Factory method creating the appropriate ParamField for the supplied Param.
 
- 
 
-