org.geotools.swt.control
Class JField

Object
  extended by ParamField
      extended by JField

public class JField
extends ParamField

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, parent
 
Constructor Summary
JField(Composite parent, Parameter<?> parameter)
           
 
Method Summary
 Control doLayout()
          Called to build the widget, initialize it (setting defaults or whatever) and setup any listeners needed for validation of the widget value.
 Object getValue()
          Returns the current value of the widget.
 void setSingleLine(boolean single)
           
 void setValue(Object value)
          Sets the value of the widget.
 boolean validate()
          Validates the current value of the widget, returns false if not valid, true otherwise
 
Methods inherited from class ParamField
create
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JField

public JField(Composite parent,
              Parameter<?> parameter)
Method Detail

setSingleLine

public void setSingleLine(boolean single)

doLayout

public Control 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 class ParamField
Returns:
JComponent or null if error

getValue

public Object getValue()
Description copied from class: ParamField
Returns the current value of the widget.

Specified by:
getValue in class ParamField
Returns:
Object representing the current value of the widget

setValue

public void setValue(Object value)
Description copied from class: ParamField
Sets the value of the widget.

Specified by:
setValue in class ParamField

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 class ParamField
Returns:
boolean if validated


Copyright © 1996-2014 Geotools. All Rights Reserved.