org.zkoss.bind
Class DefaultBinder
java.lang.Object
org.zkoss.bind.impl.BinderImpl
org.zkoss.bind.DefaultBinder
- All Implemented Interfaces:
- java.io.Serializable, Binder, BinderCtrl
public class DefaultBinder
- extends BinderImpl
ZK default Binder, use this class if you want to new a binder and control components though Binder
API.
After new a instance, you have to call BinderImpl.init(Component, Object)
first, then call
BinderImpl.addCommandBinding(Component, String, String, java.util.Map)
, BinderImpl.addPropertyLoadBindings(Component, String, String, String[], String[], java.util.Map, String, java.util.Map)
...etc to assign the binding.
After all the add binding done, you have to call BinderImpl.loadComponent(Component, boolean)
to trigger first loading of the binding.
- Since:
- 6.0.0
- Author:
- dennischen
- See Also:
- Serialized Form
Fields inherited from class org.zkoss.bind.impl.BinderImpl |
BINDCTX, BINDER, BINDING, DEPENDS_ON_COMP, IGNORE_REF_VALUE, IGNORE_TRACKER, LOAD_FORM_COMPONENT, LOAD_FORM_EXPRESSION, MODEL, NOTIFYS, ON_BIND_INIT, RENDERER_INSTALLED, SAVE_BASE, SRCPATH, VALIDATES, VAR, VM |
Constructor Summary |
DefaultBinder()
new a binder with default event queue name and scope |
DefaultBinder(java.lang.String qname,
java.lang.String qscope)
new a binder with event queue name and scope |
Method Summary |
void |
init(Component comp,
java.lang.Object vm,
java.util.Map<java.lang.String,java.lang.Object> initArgs)
Initializes the binder with a root component and viewModel object. |
Methods inherited from class org.zkoss.bind.impl.BinderImpl |
addChildrenInitBinding, addChildrenInitBinding, addChildrenLoadBindings, addChildrenLoadBindings, addCommandBinding, addFormAssociatedSaveBinding, addFormInitBinding, addFormLoadBindings, addFormSaveBindings, addGlobalCommandBinding, addPropertyInitBinding, addPropertyLoadBindings, addPropertySaveBindings, addReferenceBinding, checkInit, getConverter, getEvaluatorX, getEventQueue, getForm, getFormAssociatedSaveBindings, getLoadPromptBindings, getPhaseListener, getRenderer, getTemplateResolver, getTracker, getValidationMessages, getValidator, getView, getViewModel, hasValidator, init, isActivating, loadComponent, notifyChange, postCommand, removeBindings, removeBindings, sendCommand, setPhaseListener, setTemplate, setValidationMessages, setViewModel, storeForm |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultBinder
public DefaultBinder()
- new a binder with default event queue name and scope
DefaultBinder
public DefaultBinder(java.lang.String qname,
java.lang.String qscope)
- new a binder with event queue name and scope
- Parameters:
qname
- event queue nameqscope
- event queue scope, see EventQueues
init
public void init(Component comp,
java.lang.Object vm,
java.util.Map<java.lang.String,java.lang.Object> initArgs)
- Description copied from interface:
Binder
- Initializes the binder with a root component and viewModel object.
You should never call this if you use
AnnotateBinder
and zk annotation
- Specified by:
init
in interface Binder
- Overrides:
init
in class BinderImpl
- Parameters:
comp
- root component of bindervm
- viewModel objectinitArgs
- args key-value pairs for initial, nullable
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.