info.joseluismartin.gui.bind
Interface PropertyBinder

All Superinterfaces:
Binder<Object>, ModelHolder<Object>
All Known Implementing Classes:
AbstractBinder, CollectionPersistentServiceBinder, ComboBinder, ControlBinder, LabelBinder, ListBinder, SelectorBinder, TextComponentBinder, ToggleButtonBinder, ViewBinder

public interface PropertyBinder
extends Binder<Object>

Bind a component to a model property

Author:
Jose Luis Martin - (jlm@joseluismartin.info)

Method Summary
 void bind(Object component, String propertyName, Object model)
          Bind changes on component to a model property
 void bind(Object component, String propertyName, Object model, boolean readOnly)
          Bind changes on component to a model property
 Object getComponent()
           
 String getPropertyName()
          return property name
 
Methods inherited from interface info.joseluismartin.gui.Binder
getBindingResult, refresh, update
 
Methods inherited from interface info.joseluismartin.gui.ModelHolder
getModel, setModel
 

Method Detail

bind

void bind(Object component,
          String propertyName,
          Object model)
Bind changes on component to a model property

Parameters:
component - component to bind
propertyName - the property name to bind
model - model to bind.

bind

void bind(Object component,
          String propertyName,
          Object model,
          boolean readOnly)
Bind changes on component to a model property

Parameters:
component - component to bind
propertyName - the property name to bind
model - model to bind.
readOnly - if true, the binding is readOnly, ie from model to control.

getComponent

Object getComponent()
Returns:
component

getPropertyName

String getPropertyName()
return property name

Returns:
the property name


Copyright © 2013 JDAL. All Rights Reserved.