Package org.zkoss.bind
Class DefaultBinder
java.lang.Object
org.zkoss.bind.impl.BinderImpl
org.zkoss.bind.DefaultBinder
- All Implemented Interfaces:
Serializable,Binder,BinderCtrl
ZK default Binder, use this class if you want to new a binder and control components though
After new a instance, you have to call
After all the add binding done, you have to call
Binder API. After new a instance, you have to call
init(Component, Object, Map) 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:
-
Field Summary
Fields inherited from class org.zkoss.bind.impl.BinderImpl
DISABLE_METHOD_CACHE, ZKFORMPROXYNOTIFIEDKEYFields inherited from interface org.zkoss.bind.Binder
ACCESS, COMMAND_FAIL_VALIDATE, COMMAND_SUCCESS, CONVERTER, LOAD_EVENT, LOAD_REPLACEMENT, LOAD_TYPE, RENDERER, SAVE_EVENT, SAVE_REPLACEMENT, VALIDATOR, ZKBINDFields inherited from interface org.zkoss.bind.sys.BinderCtrl
ACTIVATOR, BINDCTX, BINDER, BINDING, BINDRENDERING, CHILDREN_ATTR, CHILDREN_BINDING_MODEL, CHILDREN_BINDING_MODEL_LISTENER, CHILDREN_BINDING_RENDERED_COMPONENTS, CLIENT_INFO, CLIENT_UPLOAD_INFO, DEFAULT_QUEUE_NAME, DEFAULT_QUEUE_SCOPE, DEPENDS_ON_COMP, FORM_ID, IGNORE_REF_VALUE, IGNORE_TRACKER, INVALIDATE_REF_VALUE, IS_TEMPLATE_MODEL_ENABLED_ATTR, LOAD_FORM_COMPONENT, LOAD_FORM_EXPRESSION, MATCHMEDIAVALUE_PREFIX, MODEL, NOTIFYS, ON_BIND_CLEAN, ON_BIND_INIT, PHASE_LISTENER_CLASS_KEY, REMOVE_BINDINGS, RENDERER_INSTALLED, SAVE_BASE, SRCPATH, VALIDATES, VAR, VIEWMODELID_BINDER_MAP_KEY, VM -
Constructor Summary
ConstructorsConstructorDescriptionnew a binder with default event queue name and scopeDefaultBinder(String qname, String qscope) new a binder with event queue name and scope -
Method Summary
Methods inherited from class org.zkoss.bind.impl.BinderImpl
addChildrenInitBinding, addChildrenLoadBindings, addCommandBinding, addFormAssociatedSaveBinding, addFormInitBinding, addFormLoadBindings, addFormSaveBindings, addGlobalCommandBinding, addPhaseListener, addPropertyInitBinding, addPropertyLoadBindings, addPropertySaveBindings, addReferenceBinding, addSaveFormFieldName, addSaveFormFieldName, checkInit, createParamCall, destroy, doExecute, doLoadAfter, doLoadBefore, doSaveAfter, doSaveBefore, doValidate, fireNotifyChanges, getBindingAnnotationInfoChecker, getBindingExecutionInfoCollector, getBindings, getConverter, getDynamicAttrs, getEvaluatorX, getEventQueue, getForm, getFormAssociatedSaveBindings, getLoadPromptBindings, getMatchMediaValue, getPhaseListener, getPhaseListeners, getQueueName, getQueueScope, getRenderer, getSaveFormFieldNames, getTemplateResolver, getTracker, getValidationMessages, getValidator, getView, getViewModel, hasValidator, initActivator, initQueue, isActivating, loadComponent, loadComponent0, newCommandBinding, newInitChildrenBinding, newInitFormBinding, newInitPropertyBinding, newLoadChildrenBinding, newLoadFormBinding, newLoadPropertyBinding, newSaveFormBinding, newSavePropertyBinding, notifyChange, postCommand, removeBindings, removeBindings, removeBindings, removeSaveFormFieldNames, sendCommand, setDynamicAttrs, setPhaseListener, setTemplate, setValidationMessages, setViewModel, storeForm
-
Constructor Details
-
DefaultBinder
public DefaultBinder()new a binder with default event queue name and scope -
DefaultBinder
new a binder with event queue name and scope- Parameters:
qname- event queue nameqscope- event queue scope, seeEventQueues
-
-
Method Details
-
init
Description copied from interface:BinderInitializes the binder with a root component and viewModel object. You should never call this if you useAnnotateBinderand zk annotation- Specified by:
initin interfaceBinder- Overrides:
initin classBinderImpl- Parameters:
comp- root component of bindervm- viewModel objectinitArgs- args key-value pairs for initial, nullable
-