info.joseluismartin.gui.bind
Class ControlBinder

java.lang.Object
  extended by info.joseluismartin.gui.bind.AbstractBinder
      extended by info.joseluismartin.gui.bind.ControlBinder
All Implemented Interfaces:
PropertyBinder, Binder<Object>, ModelHolder<Object>

public class ControlBinder
extends AbstractBinder

Generic Binder that use a ControlAccessorFactory to get/set control values. Handle NumberFormat and PeriodFormat annotations when binding string values to text components.

Since:
1.1
Author:
Jose Luis Martin - (jlm@joseluismartin.info)
See Also:
Binder, AbstractBinder

Field Summary
 
Fields inherited from class info.joseluismartin.gui.bind.AbstractBinder
component, oldValue, propertyName, readOnly
 
Constructor Summary
ControlBinder()
           
ControlBinder(ControlAccessorFactory controlAccessorFactory)
           
 
Method Summary
 void doBind()
          Hook method to do bind via Component Listeners By default, do nothing
protected  void doRefresh()
          
protected  void doUpdate()
          
 ControlAccessorFactory getControlAccessorFactory()
           
protected  org.springframework.format.Parser<?> getParser()
           
protected  org.springframework.format.Printer<Object> getPrinter()
           
 void setControlAccessorFactory(ControlAccessorFactory controlAccessorFactory)
           
 
Methods inherited from class info.joseluismartin.gui.bind.AbstractBinder
bind, bind, createBindingResult, getBindingResult, getComponent, getModel, getOldValue, getPropertyName, getValue, refresh, setComponent, setModel, setOldValue, setPropertyName, setValue, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControlBinder

public ControlBinder()

ControlBinder

public ControlBinder(ControlAccessorFactory controlAccessorFactory)
Method Detail

doBind

public void doBind()
Hook method to do bind via Component Listeners By default, do nothing

Overrides:
doBind in class AbstractBinder

doRefresh

protected void doRefresh()

Specified by:
doRefresh in class AbstractBinder

doUpdate

protected void doUpdate()

Specified by:
doUpdate in class AbstractBinder

getPrinter

protected org.springframework.format.Printer<Object> getPrinter()

getParser

protected org.springframework.format.Parser<?> getParser()

getControlAccessorFactory

public ControlAccessorFactory getControlAccessorFactory()
Returns:
the controlAccessorFactory

setControlAccessorFactory

public void setControlAccessorFactory(ControlAccessorFactory controlAccessorFactory)
Parameters:
controlAccessorFactory - the controlAccessorFactory to set


Copyright © 2013 JDAL. All Rights Reserved.