public interface BinderCtrl
Binder
that is used for implementation or tools. | Modifier and Type | Method and Description |
|---|---|
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 |
addPhaseListener(PhaseListener listener)
Add the
PhaseListener |
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.
|
BindingAnnotationInfoChecker |
getBindingAnnotationInfoChecker()
get binding annotation info checker
|
BindingExecutionInfoCollector |
getBindingExecutionInfoCollector()
get binding execution info collector
|
Form |
getForm(org.zkoss.zk.ui.Component comp,
String id)
Get the form of the component
|
Set<SaveBinding> |
getFormAssociatedSaveBindings(org.zkoss.zk.ui.Component formComp)
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()
Deprecated.
As of release ZK 8.0.0, please use
getPhaseListeners() instead. |
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
|
Set<String> |
getSaveFormFieldNames(Form self)
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 |
boolean |
hasValidator(org.zkoss.zk.ui.Component comp,
String attr)
is there a validator on the attribute of component
|
boolean |
isActivating()
check if binder is in activating state
|
Set<String> |
removeSaveFormFieldNames(Form self)
Remove all field names for saving with the given Form.
|
void |
setPhaseListener(PhaseListener listener)
Deprecated.
As of release ZK 8.0.0, please use
addPhaseListener(PhaseListener) instead. |
void |
setValidationMessages(ValidationMessages messages)
Set the
ValidationMessages |
void |
storeForm(org.zkoss.zk.ui.Component comp,
String id,
Form form)
Store the form in the component with id
|
static final String DEFAULT_QUEUE_NAME
static final String DEFAULT_QUEUE_SCOPE
static final String PHASE_LISTENER_CLASS_KEY
static final String VIEWMODELID_BINDER_MAP_KEY
static final String BINDING
static final String BINDER
static final String BINDCTX
static final String VAR
static final String VM
static final String NOTIFYS
static final String VALIDATES
static final String SRCPATH
static final String DEPENDS_ON_COMP
static final String RENDERER_INSTALLED
static final String REMOVE_BINDINGS
static final String IS_TEMPLATE_MODEL_ENABLED_ATTR
static final String LOAD_FORM_EXPRESSION
static final String LOAD_FORM_COMPONENT
static final String IGNORE_TRACKER
static final String IGNORE_REF_VALUE
static final String INVALIDATE_REF_VALUE
static final String SAVE_BASE
static final String ON_BIND_INIT
static final String ON_BIND_CLEAN
static final String MODEL
static final String FORM_ID
static final String CHILDREN_ATTR
static final String ACTIVATOR
static final String BINDRENDERING
static final String CHILDREN_BINDING_RENDERED_COMPONENTS
static final String CHILDREN_BINDING_MODEL
static final String CHILDREN_BINDING_MODEL_LISTENER
static final String CLIENT_INFO
static final String MATCHMEDIAVALUE_PREFIX
static final String CLIENT_UPLOAD_INFO
void addFormAssociatedSaveBinding(org.zkoss.zk.ui.Component associatedComp,
String formId,
SaveBinding saveBinding,
String fieldName)
associatedComp - 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 bindingSet<SaveBinding> getFormAssociatedSaveBindings(org.zkoss.zk.ui.Component formComp)
formComp - the component that contains the formvoid storeForm(org.zkoss.zk.ui.Component comp,
String id,
Form form)
comp - the component to store the formid - the form idform - the form instanceForm getForm(org.zkoss.zk.ui.Component comp, String id)
comp - the component has the formid - the form idTracker getTracker()
ValidationMessages getValidationMessages()
ValidationMessagessetValidationMessages(ValidationMessages)void setValidationMessages(ValidationMessages messages)
ValidationMessagesmessages - the ValidationMessagesboolean hasValidator(org.zkoss.zk.ui.Component comp,
String attr)
comp - the component to checkattr - the attribute to checkTemplateResolver getTemplateResolver(org.zkoss.zk.ui.Component comp, String attr)
Binder.setTemplate(Component, String, String, java.util.Map)comp - the component has resolversattr - the attribute to get the resolverList<Binding> getLoadPromptBindings(org.zkoss.zk.ui.Component comp, String attr)
comp - the component is relative to the bindingsattr - the attribute is relative to the bindingsPhaseListener getPhaseListener()
getPhaseListeners() instead.PhaseListenerPhaseListenerList<PhaseListener> getPhaseListeners()
PhaseListenerPhaseListenervoid setPhaseListener(PhaseListener listener)
addPhaseListener(PhaseListener) instead.PhaseListenerlistener - the PhaseListenervoid addPhaseListener(PhaseListener listener)
PhaseListenerlistener - boolean isActivating()
BindingExecutionInfoCollector getBindingExecutionInfoCollector()
BindingAnnotationInfoChecker getBindingAnnotationInfoChecker()
String getQueueName()
String getQueueScope()
void addSaveFormFieldName(Form form, String fieldName)
fieldName - field name to be saved into.void addSaveFormFieldName(Form form, Set<String> fieldNames)
fieldNames - field name to be saved into.Set<String> getSaveFormFieldNames(Form self)
Set<String> removeSaveFormFieldNames(Form self)
Copyright © 2020. All rights reserved.