public class BinderImpl extends Object implements Binder, BinderCtrl, Serializable
ACCESS, COMMAND_FAIL_VALIDATE, COMMAND_SUCCESS, CONVERTER, LOAD_EVENT, LOAD_REPLACEMENT, LOAD_TYPE, RENDERER, SAVE_EVENT, SAVE_REPLACEMENT, VALIDATOR, ZKBINDACTIVATOR, 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 and Description |
|---|
BinderImpl() |
BinderImpl(String qname,
String qscope) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChildrenInitBinding(org.zkoss.zk.ui.Component comp,
String initExpr,
Map<String,Object> initArgs)
Deprecated.
|
void |
addChildrenInitBinding(org.zkoss.zk.ui.Component comp,
String initExpr,
Map<String,Object> initArgs,
String converterExpr,
Map<String,Object> converterArgs)
init children of a component by an expression, it only execute once
|
void |
addChildrenLoadBindings(org.zkoss.zk.ui.Component comp,
String loadExpr,
String[] beforeCmds,
String[] afterCmds,
Map<String,Object> bindingArgs)
Deprecated.
|
void |
addChildrenLoadBindings(org.zkoss.zk.ui.Component comp,
String loadExpr,
String[] beforeCmds,
String[] afterCmds,
Map<String,Object> bindingArgs,
String converterExpr,
Map<String,Object> converterArgs)
Add new children-load-bindings.
|
void |
addCommandBinding(org.zkoss.zk.ui.Component comp,
String evtnm,
String commandExpr,
Map<String,Object> args)
Add a new command binding.
|
void |
addFormAssociatedSaveBinding(org.zkoss.zk.ui.Component associatedComp,
String formId,
SaveBinding saveBinding,
String fieldName)
Add a association between formId and a associated save binding(save binding inside a form), the form has to exist in the parent components
|
void |
addFormInitBinding(org.zkoss.zk.ui.Component comp,
String id,
String initExpr,
Map<String,Object> initArgs)
init a component form by expression, it only execute once
|
void |
addFormLoadBindings(org.zkoss.zk.ui.Component comp,
String id,
String loadExpr,
String[] beforeCmds,
String[] afterCmds,
Map<String,Object> bindingArgs)
Add new form-load-bindings.
|
void |
addFormSaveBindings(org.zkoss.zk.ui.Component comp,
String id,
String saveExpr,
String[] beforeCmds,
String[] afterCmds,
Map<String,Object> bindingArgs,
String validatorExpr,
Map<String,Object> validatorArgs)
Add new form-save-bindings.
|
void |
addGlobalCommandBinding(org.zkoss.zk.ui.Component comp,
String evtnm,
String commandExpr,
Map<String,Object> args)
Add a new global-command binding.
|
void |
addPhaseListener(PhaseListener listener)
Add the
PhaseListener |
void |
addPropertyInitBinding(org.zkoss.zk.ui.Component comp,
String attr,
String initExpr,
Map<String,Object> initArgs,
String converterExpr,
Map<String,Object> converterArgs)
init a component property by a expression, it only execute once
|
void |
addPropertyLoadBindings(org.zkoss.zk.ui.Component comp,
String attr,
String loadExpr,
String[] beforeCmds,
String[] afterCmds,
Map<String,Object> bindingArgs,
String converterExpr,
Map<String,Object> converterArgs)
Add new property-load-bindings.
|
void |
addPropertySaveBindings(org.zkoss.zk.ui.Component comp,
String attr,
String saveExpr,
String[] beforeCmds,
String[] afterCmds,
Map<String,Object> bindingArgs,
String converterExpr,
Map<String,Object> converterArgs,
String validatorExpr,
Map<String,Object> validatorArgs)
Add new property-save-bindings.
|
void |
addReferenceBinding(org.zkoss.zk.ui.Component comp,
String attr,
String loadExpr,
Map<String,Object> bindingArgs)
Add a new reference-binding.
|
void |
addSaveFormFieldName(Form form,
Set<String> fieldNames)
Adds all field names for saving with the given Form.
|
void |
addSaveFormFieldName(Form form,
String fieldName)
Adds a field name for saving with the given Form.
|
protected void |
checkInit() |
protected ParamCall |
createParamCall(BindContext ctx) |
void |
destroy(org.zkoss.zk.ui.Component comp,
Object viewModel)
Destroys the binder with a root component and viewModel object.
|
protected void |
doExecute(org.zkoss.zk.ui.Component comp,
String command,
Map<String,Object> commandArgs,
BindContext ctx,
Set<Property> notifys) |
protected void |
doLoadAfter(org.zkoss.zk.ui.Component comp,
String command,
BindContext ctx) |
protected void |
doLoadBefore(org.zkoss.zk.ui.Component comp,
String command,
BindContext ctx) |
protected void |
doSaveAfter(org.zkoss.zk.ui.Component comp,
String command,
org.zkoss.zk.ui.event.Event evt,
BindContext ctx,
Set<Property> notifys) |
protected void |
doSaveBefore(org.zkoss.zk.ui.Component comp,
String command,
org.zkoss.zk.ui.event.Event evt,
BindContext ctx,
Set<Property> notifys) |
protected boolean |
doValidate(org.zkoss.zk.ui.Component comp,
String command,
org.zkoss.zk.ui.event.Event evt,
BindContext ctx,
Set<Property> notifys) |
protected void |
fireNotifyChanges(Set<Property> notifys) |
BindingAnnotationInfoChecker |
getBindingAnnotationInfoChecker()
get binding annotation info checker
|
BindingExecutionInfoCollector |
getBindingExecutionInfoCollector()
get binding execution info collector
|
Map<String,List<Binding>> |
getBindings(org.zkoss.zk.ui.Component comp) |
Converter |
getConverter(String name)
Returns the _converter of the given _converter name.
|
Map<String,Object> |
getDynamicAttrs()
Internal use only.
|
BindEvaluatorX |
getEvaluatorX()
Returns the
BindEvaluatorX used by this Binder. |
protected org.zkoss.zk.ui.event.EventQueue<org.zkoss.zk.ui.event.Event> |
getEventQueue() |
Form |
getForm(org.zkoss.zk.ui.Component comp,
String id)
Get the form of the component
|
Set<SaveBinding> |
getFormAssociatedSaveBindings(org.zkoss.zk.ui.Component comp)
Get associated save bindings of a form in a component
|
List<Binding> |
getLoadPromptBindings(org.zkoss.zk.ui.Component comp,
String attr)
get all load prompt binding of the component and attribute
|
Map<String,Method> |
getMatchMediaValue()
Returns an unmodifiable Map containing all the MatchMedia annotation values of this binder.
|
PhaseListener |
getPhaseListener()
get the first
PhaseListener |
List<PhaseListener> |
getPhaseListeners()
get the first
PhaseListener |
String |
getQueueName()
Returns the queue name of this binder
|
String |
getQueueScope()
Returns the queue scope of this binder
|
protected Object |
getRenderer(String name) |
Set<String> |
getSaveFormFieldNames(Form form)
Returns all field names for saving with the given Form.
|
TemplateResolver |
getTemplateResolver(org.zkoss.zk.ui.Component comp,
String attr)
get the template resolver that sets by
Binder.setTemplate(Component, String, String, java.util.Map) |
Tracker |
getTracker()
Returns associated dependency tracker of this binder.
|
ValidationMessages |
getValidationMessages()
Get the
ValidationMessages |
Validator |
getValidator(String name)
Returns the _validator of the given _validator name.
|
org.zkoss.zk.ui.Component |
getView()
Returns associated root component of this binder.
|
Object |
getViewModel()
Returns associated ViewModel of this binder.
|
boolean |
hasValidator(org.zkoss.zk.ui.Component comp,
String attr)
is there a validator on the attribute of component
|
void |
init(org.zkoss.zk.ui.Component comp,
Object viewModel)
Deprecated.
use
init(Component, Object, Map) instead |
void |
init(org.zkoss.zk.ui.Component comp,
Object viewModel,
Map<String,Object> initArgs)
Initializes the binder with a root component and viewModel object.
|
void |
initActivator()
Internal use only.
|
void |
initQueue()
Internal use only.
|
boolean |
isActivating()
check if binder is in activating state
|
void |
loadComponent(org.zkoss.zk.ui.Component comp,
boolean loadinit)
Internal Use only.
|
protected void |
loadComponent0(org.zkoss.zk.ui.Component comp,
boolean loadinit) |
protected CommandBinding |
newCommandBinding(org.zkoss.zk.ui.Component comp,
String evtnm,
String cmdScript,
Map<String,Object> args)
Make this extenable.
|
protected InitChildrenBinding |
newInitChildrenBinding(org.zkoss.zk.ui.Component comp,
String initExpr,
Map<String,Object> bindingArgs,
String converterExpr,
Map<String,Object> converterArgs)
Make this extenable.
|
protected InitFormBinding |
newInitFormBinding(org.zkoss.zk.ui.Component comp,
String formId,
String initExpr,
Map<String,Object> bindingArgs)
Make this extenable.
|
protected InitPropertyBinding |
newInitPropertyBinding(org.zkoss.zk.ui.Component comp,
String attr,
String loadAttr,
Class<?> attrType,
String initExpr,
Map<String,Object> bindingArgs,
String converterExpr,
Map<String,Object> converterArgs)
Make this extenable.
|
protected LoadChildrenBinding |
newLoadChildrenBinding(org.zkoss.zk.ui.Component comp,
String loadExpr,
ConditionType conditionType,
String command,
Map<String,Object> bindingArgs,
String converterExpr,
Map<String,Object> converterArgs)
Make this extenable.
|
protected LoadFormBinding |
newLoadFormBinding(org.zkoss.zk.ui.Component comp,
String formId,
String loadExpr,
ConditionType conditionType,
String command,
Map<String,Object> bindingArgs)
Make this extenable.
|
protected LoadPropertyBinding |
newLoadPropertyBinding(org.zkoss.zk.ui.Component comp,
String attr,
String loadAttr,
Class<?> attrType,
String loadExpr,
ConditionType conditionType,
String command,
Map<String,Object> bindingArgs,
String converterExpr,
Map<String,Object> converterArgs)
Make this extenable.
|
protected SaveFormBinding |
newSaveFormBinding(org.zkoss.zk.ui.Component comp,
String formId,
String saveExpr,
ConditionType conditionType,
String command,
Map<String,Object> bindingArgs,
String validatorExpr,
Map<String,Object> validatorArgs)
Make this extenable.
|
protected SavePropertyBinding |
newSavePropertyBinding(org.zkoss.zk.ui.Component comp,
String attr,
String saveAttr,
String saveExpr,
ConditionType conditionType,
String command,
Map<String,Object> bindingArgs,
String converterExpr,
Map<String,Object> converterArgs,
String validatorExpr,
Map<String,Object> validatorArgs)
Make this extenable.
|
void |
notifyChange(Object base,
String attr)
Notify change of the property.
|
void |
postCommand(String command,
Map<String,Object> args)
post command this binder, binder will queue the command, and fired later.
|
void |
removeBindings(org.zkoss.zk.ui.Component comp)
Remove all bindings that associated with the specified component.
|
void |
removeBindings(org.zkoss.zk.ui.Component comp,
String key)
Remove all bindings that associated with the specified component and key (_fieldExpr|evtnm|formid).
|
void |
removeBindings(Set<org.zkoss.zk.ui.Component> comps)
Remove all managed bindings that associated with the specified components.
|
Set<String> |
removeSaveFormFieldNames(Form self)
Remove all field names for saving with the given Form.
|
int |
sendCommand(String command,
Map<String,Object> args)
send command fired to this binder and process the command immediately
|
void |
setDynamicAttrs(String command,
Object value)
Internal use only.
|
void |
setPhaseListener(PhaseListener listener)
Sets the associated phase listener to intervene the binding life cycle.
|
void |
setTemplate(org.zkoss.zk.ui.Component comp,
String attr,
String templateExpr,
Map<String,Object> templateArgs)
set template to a component property by an expression
|
void |
setValidationMessages(ValidationMessages messages)
Set the
ValidationMessages |
void |
setViewModel(Object vm)
Sets associated ViewModel of this binder.
|
void |
storeForm(org.zkoss.zk.ui.Component comp,
String id,
Form form)
Store the form in the component with id
|
public void init(org.zkoss.zk.ui.Component comp,
Object viewModel)
init(Component, Object, Map) insteadBinderAnnotateBinder and zk annotationpublic void init(org.zkoss.zk.ui.Component comp,
Object viewModel,
Map<String,Object> initArgs)
BinderAnnotateBinder and zk annotationpublic void destroy(org.zkoss.zk.ui.Component comp,
Object viewModel)
BinderAnnotateBinder and zk annotationprotected void checkInit()
public void setViewModel(Object vm)
BindersetViewModel in interface Bindervm - the associated view model of this binder.public Object getViewModel()
BindergetViewModel in interface Binderpublic Converter getConverter(String name)
BindergetConverter in interface Bindername - _converter namepublic Validator getValidator(String name)
BindergetValidator in interface Bindername - _validator namepublic BindEvaluatorX getEvaluatorX()
BinderBindEvaluatorX used by this Binder.getEvaluatorX in interface Binderpublic void storeForm(org.zkoss.zk.ui.Component comp,
String id,
Form form)
BinderCtrlstoreForm in interface BinderCtrlcomp - the component to store the formid - the form idform - the form instancepublic Form getForm(org.zkoss.zk.ui.Component comp, String id)
BinderCtrlgetForm in interface BinderCtrlcomp - the component has the formid - the form idpublic void addFormInitBinding(org.zkoss.zk.ui.Component comp,
String id,
String initExpr,
Map<String,Object> initArgs)
BinderaddFormInitBinding in interface Bindercomp - the associated component, must not nullid - the form id, must not nullinitExpr - init expression, nullableinitArgs - args key-value pairs for this init, nullablepublic void addFormLoadBindings(org.zkoss.zk.ui.Component comp,
String id,
String loadExpr,
String[] beforeCmds,
String[] afterCmds,
Map<String,Object> bindingArgs)
BinderaddFormLoadBindings in interface Bindercomp - the associated component, must not nullid - the form id, must not nullloadExpr - load expression, nullablebeforeCmds - load before these commands, the command here is not a EL expression. nullableafterCmds - load after these commands, the command here is not a EL expression. nullablebindingArgs - args key-value pairs for this binding, nullablepublic void addFormSaveBindings(org.zkoss.zk.ui.Component comp,
String id,
String saveExpr,
String[] beforeCmds,
String[] afterCmds,
Map<String,Object> bindingArgs,
String validatorExpr,
Map<String,Object> validatorArgs)
BinderaddFormSaveBindings in interface Bindercomp - the associated component, must not nullid - the form id, must not nullsaveExpr - save expression, nullablebeforeCmds - save before these commands, the command here is not a EL expression. nullableafterCmds - save after these commands, the command here is not a EL expression. nullablebindingArgs - args key-value pairs for this binding, nullablevalidatorExpr - the converter expression, nullablevalidatorArgs - args key-value pairs for validator, nullablepublic void addPropertyInitBinding(org.zkoss.zk.ui.Component comp,
String attr,
String initExpr,
Map<String,Object> initArgs,
String converterExpr,
Map<String,Object> converterArgs)
BinderaddPropertyInitBinding in interface Bindercomp - the associated component, must not nullattr - the associated attribute of the component; ex label, style, must not nullinitExpr - init expression, must not nullinitArgs - args key-value pairs for initial, nullableconverterExpr - the converter expression, nullableconverterArgs - args key-value pairs for converter, nullablepublic void addPropertyLoadBindings(org.zkoss.zk.ui.Component comp,
String attr,
String loadExpr,
String[] beforeCmds,
String[] afterCmds,
Map<String,Object> bindingArgs,
String converterExpr,
Map<String,Object> converterArgs)
BinderaddPropertyLoadBindings in interface Bindercomp - the associated component, must not nullattr - the associated attribute of the component; ex label, style, must not nullloadExpr - load expression, must not nullbeforeCmds - load before these commands, the command here is not a EL expression. nullableafterCmds - load after these commands, the command here is not a EL expression. nullablebindingArgs - args key-value pairs for this binding, nullableconverterExpr - the converter expression, nullableconverterArgs - args key-value pairs for converter, nullablepublic void addPropertySaveBindings(org.zkoss.zk.ui.Component comp,
String attr,
String saveExpr,
String[] beforeCmds,
String[] afterCmds,
Map<String,Object> bindingArgs,
String converterExpr,
Map<String,Object> converterArgs,
String validatorExpr,
Map<String,Object> validatorArgs)
BinderaddPropertySaveBindings in interface Bindercomp - the associated component, must not nullattr - the associated attribute of the component; ex value, check, must not nullsaveExpr - save expression, nullablebeforeCmds - save before these commands, the command here is not a EL expression. nullableafterCmds - save after these commands, the command here is not a EL expression. nullablebindingArgs - args key-value pairs for this binding, nullableconverterExpr - the converter expression, nullableconverterArgs - args key-value pairs for converter, nullablevalidatorExpr - the converter expression, nullablevalidatorArgs - args key-value pairs for validator, nullableprotected LoadPropertyBinding newLoadPropertyBinding(org.zkoss.zk.ui.Component comp, String attr, String loadAttr, Class<?> attrType, String loadExpr, ConditionType conditionType, String command, Map<String,Object> bindingArgs, String converterExpr, Map<String,Object> converterArgs)
protected SavePropertyBinding newSavePropertyBinding(org.zkoss.zk.ui.Component comp, String attr, String saveAttr, String saveExpr, ConditionType conditionType, String command, Map<String,Object> bindingArgs, String converterExpr, Map<String,Object> converterArgs, String validatorExpr, Map<String,Object> validatorArgs)
protected InitPropertyBinding newInitPropertyBinding(org.zkoss.zk.ui.Component comp, String attr, String loadAttr, Class<?> attrType, String initExpr, Map<String,Object> bindingArgs, String converterExpr, Map<String,Object> converterArgs)
protected InitChildrenBinding newInitChildrenBinding(org.zkoss.zk.ui.Component comp, String initExpr, Map<String,Object> bindingArgs, String converterExpr, Map<String,Object> converterArgs)
protected LoadChildrenBinding newLoadChildrenBinding(org.zkoss.zk.ui.Component comp, String loadExpr, ConditionType conditionType, String command, Map<String,Object> bindingArgs, String converterExpr, Map<String,Object> converterArgs)
protected CommandBinding newCommandBinding(org.zkoss.zk.ui.Component comp, String evtnm, String cmdScript, Map<String,Object> args)
protected InitFormBinding newInitFormBinding(org.zkoss.zk.ui.Component comp, String formId, String initExpr, Map<String,Object> bindingArgs)
protected LoadFormBinding newLoadFormBinding(org.zkoss.zk.ui.Component comp, String formId, String loadExpr, ConditionType conditionType, String command, Map<String,Object> bindingArgs)
protected SaveFormBinding newSaveFormBinding(org.zkoss.zk.ui.Component comp, String formId, String saveExpr, ConditionType conditionType, String command, Map<String,Object> bindingArgs, String validatorExpr, Map<String,Object> validatorArgs)
@Deprecated public void addChildrenInitBinding(org.zkoss.zk.ui.Component comp, String initExpr, Map<String,Object> initArgs)
BinderaddChildrenInitBinding in interface Bindercomp - the associated component, must not nullinitExpr - init expression, must not nullinitArgs - args key-value pairs for initial, nullablepublic void addChildrenInitBinding(org.zkoss.zk.ui.Component comp,
String initExpr,
Map<String,Object> initArgs,
String converterExpr,
Map<String,Object> converterArgs)
BinderaddChildrenInitBinding in interface Bindercomp - the associated component, must not nullinitExpr - init expression, must not nullinitArgs - args key-value pairs for initial, nullableconverterExpr - the converter expression, nullableconverterArgs - args key-value pairs for converter, nullable@Deprecated public void addChildrenLoadBindings(org.zkoss.zk.ui.Component comp, String loadExpr, String[] beforeCmds, String[] afterCmds, Map<String,Object> bindingArgs)
BinderaddChildrenLoadBindings in interface Bindercomp - the associated component, must not nullloadExpr - load expression, must not nullbeforeCmds - load before these commands, the command here is not a EL expression. nullableafterCmds - load after these commands, the command here is not a EL expression. nullablebindingArgs - args key-value pairs for this binding, nullablepublic void addChildrenLoadBindings(org.zkoss.zk.ui.Component comp,
String loadExpr,
String[] beforeCmds,
String[] afterCmds,
Map<String,Object> bindingArgs,
String converterExpr,
Map<String,Object> converterArgs)
BinderaddChildrenLoadBindings in interface Bindercomp - the associated component, must not nullloadExpr - load expression, must not nullbeforeCmds - load before these commands, the command here is not a EL expression. nullableafterCmds - load after these commands, the command here is not a EL expression. nullablebindingArgs - args key-value pairs for this binding, nullableconverterExpr - the converter expression, nullableconverterArgs - args key-value pairs for converter, nullablepublic void addReferenceBinding(org.zkoss.zk.ui.Component comp,
String attr,
String loadExpr,
Map<String,Object> bindingArgs)
BinderaddReferenceBinding in interface Bindercomp - the associated component, must not nullattr - the name of reference that stored in the component; ex myval, must not nullloadExpr - load expression, must not nullbindingArgs - args key-value pairs for this binding, nullablepublic void addCommandBinding(org.zkoss.zk.ui.Component comp,
String evtnm,
String commandExpr,
Map<String,Object> args)
BinderaddCommandBinding in interface Bindercomp - the associated componentevtnm - the associated component event namecommandExpr - the command expressionargs - other key-value pairs pairs for commandpublic void addGlobalCommandBinding(org.zkoss.zk.ui.Component comp,
String evtnm,
String commandExpr,
Map<String,Object> args)
BinderaddGlobalCommandBinding in interface Bindercomp - the associated componentevtnm - the associated component event namecommandExpr - the command expressionargs - other key-value pairs pairs for commandpublic boolean isActivating()
BinderCtrlisActivating in interface BinderCtrlpublic int sendCommand(String command, Map<String,Object> args)
BindersendCommand in interface Bindercommand - command nameargs - , arguments when notifying this command, it will be passed as a arguments of execution method of vmpublic void postCommand(String command, Map<String,Object> args)
BinderpostCommand in interface Bindercommand - command nameargs - , arguments when notifying this command, it will be passed as a arguments of execution method of vmprotected boolean doValidate(org.zkoss.zk.ui.Component comp,
String command,
org.zkoss.zk.ui.event.Event evt,
BindContext ctx,
Set<Property> notifys)
protected ParamCall createParamCall(BindContext ctx)
protected void doExecute(org.zkoss.zk.ui.Component comp,
String command,
Map<String,Object> commandArgs,
BindContext ctx,
Set<Property> notifys)
protected void doSaveBefore(org.zkoss.zk.ui.Component comp,
String command,
org.zkoss.zk.ui.event.Event evt,
BindContext ctx,
Set<Property> notifys)
protected void doSaveAfter(org.zkoss.zk.ui.Component comp,
String command,
org.zkoss.zk.ui.event.Event evt,
BindContext ctx,
Set<Property> notifys)
protected void doLoadBefore(org.zkoss.zk.ui.Component comp,
String command,
BindContext ctx)
protected void doLoadAfter(org.zkoss.zk.ui.Component comp,
String command,
BindContext ctx)
public void removeBindings(Set<org.zkoss.zk.ui.Component> comps)
BinderremoveBindings in interface Binderpublic void removeBindings(org.zkoss.zk.ui.Component comp)
removeBindings in interface Bindercomp - the componentpublic void removeBindings(org.zkoss.zk.ui.Component comp,
String key)
removeBindings in interface Bindercomp - the componentkey - can be component attribute, event name, or form idpublic List<Binding> getLoadPromptBindings(org.zkoss.zk.ui.Component comp, String attr)
BinderCtrlgetLoadPromptBindings in interface BinderCtrlcomp - the component is relative to the bindingsattr - the attribute is relative to the bindingspublic void setTemplate(org.zkoss.zk.ui.Component comp,
String attr,
String templateExpr,
Map<String,Object> templateArgs)
BindersetTemplate in interface Bindercomp - the associated component, must not nullattr - the associated attribute of the component; ex label, style, must not nulltemplateExpr - template expression, must not nulltemplateArgs - args key-value pairs for template, nullablepublic TemplateResolver getTemplateResolver(org.zkoss.zk.ui.Component comp, String attr)
BinderCtrlBinder.setTemplate(Component, String, String, java.util.Map)getTemplateResolver in interface BinderCtrlcomp - the component has resolversattr - the attribute to get the resolverpublic Tracker getTracker()
BinderCtrlgetTracker in interface BinderCtrlpublic void loadComponent(org.zkoss.zk.ui.Component comp,
boolean loadinit)
loadComponent in interface Bindercomp - the component to reloadloadinit - true if should also load the init-bindingpublic void setDynamicAttrs(String command, Object value)
protected void loadComponent0(org.zkoss.zk.ui.Component comp,
boolean loadinit)
public void notifyChange(Object base, String attr)
BindernotifyChange in interface Binderbase - the backing bean object.attr - the property of the bean that change the valuepublic void setPhaseListener(PhaseListener listener)
BindersetPhaseListener in interface BindersetPhaseListener in interface BinderCtrllistener - the associated phase listener.public void addPhaseListener(PhaseListener listener)
BinderCtrlPhaseListeneraddPhaseListener in interface BinderCtrlpublic PhaseListener getPhaseListener()
BinderCtrlPhaseListenergetPhaseListener in interface BinderCtrlPhaseListenerpublic List<PhaseListener> getPhaseListeners()
BinderCtrlPhaseListenergetPhaseListeners in interface BinderCtrlPhaseListenerprotected org.zkoss.zk.ui.event.EventQueue<org.zkoss.zk.ui.event.Event> getEventQueue()
public void addFormAssociatedSaveBinding(org.zkoss.zk.ui.Component associatedComp,
String formId,
SaveBinding saveBinding,
String fieldName)
BinderCtrladdFormAssociatedSaveBinding in interface BinderCtrlassociatedComp - associated component inside a form bindingformId - the form idsaveBinding - the nested save binding in side a form bindingfieldName - the associated form fieldName for the associated save bindingpublic Set<SaveBinding> getFormAssociatedSaveBindings(org.zkoss.zk.ui.Component comp)
BinderCtrlgetFormAssociatedSaveBindings in interface BinderCtrlcomp - the component that contains the formpublic boolean hasValidator(org.zkoss.zk.ui.Component comp,
String attr)
BinderCtrlhasValidator in interface BinderCtrlcomp - the component to checkattr - the attribute to checkpublic org.zkoss.zk.ui.Component getView()
Binderpublic ValidationMessages getValidationMessages()
BinderCtrlValidationMessagesgetValidationMessages in interface BinderCtrlBinderCtrl.setValidationMessages(ValidationMessages)public void setValidationMessages(ValidationMessages messages)
BinderCtrlValidationMessagessetValidationMessages in interface BinderCtrlmessages - the ValidationMessagespublic BindingExecutionInfoCollector getBindingExecutionInfoCollector()
BinderCtrlgetBindingExecutionInfoCollector in interface BinderCtrlpublic BindingAnnotationInfoChecker getBindingAnnotationInfoChecker()
BinderCtrlgetBindingAnnotationInfoChecker in interface BinderCtrlpublic String getQueueName()
BinderCtrlgetQueueName in interface BinderCtrlpublic String getQueueScope()
BinderCtrlgetQueueScope in interface BinderCtrlpublic Map<String,Method> getMatchMediaValue()
BinderCtrlgetMatchMediaValue in interface BinderCtrlpublic void addSaveFormFieldName(Form form, String fieldName)
BinderCtrladdSaveFormFieldName in interface BinderCtrlfieldName - field name to be saved into.public void addSaveFormFieldName(Form form, Set<String> fieldNames)
BinderCtrladdSaveFormFieldName in interface BinderCtrlfieldNames - field name to be saved into.public Set<String> removeSaveFormFieldNames(Form self)
BinderCtrlremoveSaveFormFieldNames in interface BinderCtrlpublic Set<String> getSaveFormFieldNames(Form form)
BinderCtrlgetSaveFormFieldNames in interface BinderCtrlpublic void initQueue()
public void initActivator()
Copyright © 2020. All rights reserved.