net.sf.echobinding
Interface BoundControl

All Superinterfaces:
ComponentModel, java.util.EventListener, java.beans.PropertyChangeListener
All Known Implementing Classes:
Button, CheckBox, Label, RadioButton, SelectField, TextField

public interface BoundControl
extends ComponentModel, java.beans.PropertyChangeListener

The BoundControl interface defines the basic functions that controls must provide for data binding.


Method Summary
 nextapp.echo2.app.Border getBorder()
          Returns the widget's border.
 java.lang.Object getValue()
          Returns the value currently stored in the widget.
 boolean isDirty()
          Checks, if the widget's input was changed by the user.
 boolean isValid()
          Checks, if the widget's input is valid.
 void save()
          Commits the control's state to the modell.
 void setAdapterId(java.lang.String adapterId)
          Sets the adaper id for this widget.
 void setBindingConext(BindingContext context)
          Sets the binding context for this widget.
 void setBorder(nextapp.echo2.app.Border border)
          Sets the widget's border.
 void setValue(java.lang.Object value)
          Sets the value of the widget.
 void update()
          Loads the model's state into the control.
 void validateInput()
          Validates the widget's input and invokes the validation handler to report validation errors.
 
Methods inherited from interface net.sf.echobinding.model.ComponentModel
addActionListener, addPropertyChangeListener, isEnabled, isVisible, setEnabled, setVisible
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 

Method Detail

setBindingConext

void setBindingConext(BindingContext context)
Sets the binding context for this widget.

Parameters:
context - the context

setAdapterId

void setAdapterId(java.lang.String adapterId)
Sets the adaper id for this widget. The adapter id will be used to identify the PropertyAdapter which provides the access to the model.

Parameters:
adapterId - the adapter id

update

void update()
Loads the model's state into the control.


save

void save()
Commits the control's state to the modell.


isValid

boolean isValid()
Checks, if the widget's input is valid.

Returns:
true, if is valid

isDirty

boolean isDirty()
Checks, if the widget's input was changed by the user.

Returns:
true, if is dirty

validateInput

void validateInput()
Validates the widget's input and invokes the validation handler to report validation errors.


getValue

java.lang.Object getValue()
Returns the value currently stored in the widget.

Returns:

setValue

void setValue(java.lang.Object value)
Sets the value of the widget.

Parameters:
value -

getBorder

nextapp.echo2.app.Border getBorder()
Returns the widget's border.

Returns:

setBorder

void setBorder(nextapp.echo2.app.Border border)
Sets the widget's border.

Parameters:
border -


Copyright © 2007. All Rights Reserved.