org.zkoss.bind
Class AnnotateBinder

java.lang.Object
  extended by org.zkoss.bind.impl.BinderImpl
      extended by org.zkoss.bind.AnnotateBinder
All Implemented Interfaces:
java.io.Serializable, Binder, BinderCtrl

public class AnnotateBinder
extends BinderImpl

ZK Annotated Binder, it parse the component annotation and handles the binding of components and view model.

Since:
6.0.0
Author:
henrichen, dennischen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.zkoss.bind.impl.BinderImpl
BINDCTX, BINDER, BINDING, DEPENDS_ON_COMP, IGNORE_TRACKER, MODEL, NOTIFYS, ON_BIND_INIT, RENDERER_INSTALLED, SAVE_BASE, SRCPATH, VALIDATES, VAR, VM
 
Fields inherited from interface org.zkoss.bind.Binder
ACCESS, CONVERTER, LOAD_EVENT, LOAD_REPLACEMENT, LOAD_TYPE, RENDERER, SAVE_EVENT, SAVE_REPLACEMENT, VALIDATOR, ZKBIND
 
Fields inherited from interface org.zkoss.bind.sys.BinderCtrl
DEFAULT_QUEUE_NAME, DEFAULT_QUEUE_SCOPE
 
Constructor Summary
AnnotateBinder()
          new a annotate binder with default event queue name and scope
AnnotateBinder(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)
          Initializes the binder with a root component and viewModel object.
 
Methods inherited from class org.zkoss.bind.impl.BinderImpl
addChildrenInitBinding, addChildrenLoadBindings, addCommandBinding, addFormAssociatedSaveBinding, addFormInitBinding, addFormLoadBindings, addFormSaveBindings, addGlobalCommandBinding, addPropertyInitBinding, addPropertyLoadBindings, addPropertySaveBindings, getConverter, getEvaluatorX, getEventQueue, getForm, getFormAssociatedSaveBindings, getLoadPromptBindings, getRenderer, getTemplateResolver, getTracker, getValidationMessages, getValidator, getView, getViewModel, hasValidator, 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
 

Constructor Detail

AnnotateBinder

public AnnotateBinder()
new a annotate binder with default event queue name and scope


AnnotateBinder

public AnnotateBinder(java.lang.String qname,
                      java.lang.String qscope)
new a binder with event queue name and scope

Parameters:
qname - event queue name
qscope - event queue scope, see EventQueues
Method Detail

init

public void init(Component comp,
                 java.lang.Object vm)
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 binder
vm - viewModel object


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo