info.joseluismartin.gui.bind
Class ControlBinder
java.lang.Object
info.joseluismartin.gui.bind.AbstractBinder
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
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 |
ControlBinder
public ControlBinder()
ControlBinder
public ControlBinder(ControlAccessorFactory controlAccessorFactory)
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.