Package org.zkoss.bind.sys
Interface BinderCtrl
- All Known Implementing Classes:
AnnotateBinder,BinderImpl,DefaultBinder
public interface BinderCtrl
An addition interface to
Application developers rarely need to access methods in this interface.
Binder
that is used for implementation or tools. Application developers rarely need to access methods in this interface.
- Since:
- 6.0.0
- Author:
- dennis, jumperchen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringDefault queue name of a binder to share the bean notification and global commandsstatic final StringDefault queue scope of a binder to share the bean notification and global commandsstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringPhaseListener keystatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringKey of the relation from viewmodel id to binderstatic final String -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFormAssociatedSaveBinding(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 componentsvoidaddPhaseListener(PhaseListener listener) Add thePhaseListenervoidaddSaveFormFieldName(Form form, String fieldName) Adds a field name for saving with the given Form.voidaddSaveFormFieldName(Form form, Set<String> fieldNames) Adds all field names for saving with the given Form.get binding annotation info checkerget binding execution info collectorGet the form of the componentgetFormAssociatedSaveBindings(org.zkoss.zk.ui.Component formComp) Get associated save bindings of a form in a componentgetLoadPromptBindings(org.zkoss.zk.ui.Component comp, String attr) get all load prompt binding of the component and attributeReturns an unmodifiable Map containing all the MatchMedia annotation values of this binder.get the firstPhaseListenerReturns the queue name of this binderReturns the queue scope of this bindergetSaveFormFieldNames(Form self) Returns all field names for saving with the given Form.getTemplateResolver(org.zkoss.zk.ui.Component comp, String attr) get the template resolver that sets byBinder.setTemplate(Component, String, String, java.util.Map)Returns associated dependency tracker of this binder.Get theValidationMessagesbooleanhasValidator(org.zkoss.zk.ui.Component comp, String attr) is there a validator on the attribute of componentvoidInternal use only.voidInternal use only.booleancheck if binder is in activating stateremoveSaveFormFieldNames(Form self) Remove all field names for saving with the given Form.voidsetValidationMessages(ValidationMessages messages) Set theValidationMessagesvoidStore the form in the component with id
-
Field Details
-
DEFAULT_QUEUE_NAME
Default queue name of a binder to share the bean notification and global commands- See Also:
-
DEFAULT_QUEUE_SCOPE
Default queue scope of a binder to share the bean notification and global commands- See Also:
-
PHASE_LISTENER_CLASS_KEY
PhaseListener key- See Also:
-
VIEWMODELID_BINDER_MAP_KEY
Key of the relation from viewmodel id to binder- See Also:
-
BINDING
- See Also:
-
BINDER
- See Also:
-
BINDCTX
- See Also:
-
VAR
- See Also:
-
VM
- See Also:
-
NOTIFYS
- See Also:
-
VALIDATES
- See Also:
-
SRCPATH
- See Also:
-
DEPENDS_ON_COMP
- See Also:
-
RENDERER_INSTALLED
- See Also:
-
REMOVE_BINDINGS
- See Also:
-
IS_TEMPLATE_MODEL_ENABLED_ATTR
- See Also:
-
LOAD_FORM_EXPRESSION
- See Also:
-
LOAD_FORM_COMPONENT
- See Also:
-
IGNORE_TRACKER
- See Also:
-
IGNORE_REF_VALUE
- See Also:
-
INVALIDATE_REF_VALUE
- See Also:
-
SAVE_BASE
- See Also:
-
ON_BIND_INIT
- See Also:
-
ON_BIND_CLEAN
- See Also:
-
MODEL
- See Also:
-
FORM_ID
- See Also:
-
CHILDREN_ATTR
- See Also:
-
ACTIVATOR
- See Also:
-
BINDRENDERING
- See Also:
-
CHILDREN_BINDING_RENDERED_COMPONENTS
- See Also:
-
CHILDREN_BINDING_MODEL
- See Also:
-
CHILDREN_BINDING_MODEL_LISTENER
- See Also:
-
CLIENT_INFO
- See Also:
-
MATCHMEDIAVALUE_PREFIX
- See Also:
-
CLIENT_UPLOAD_INFO
- See Also:
-
-
Method Details
-
addFormAssociatedSaveBinding
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- Parameters:
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 binding- Since:
- 6.0.1
-
getFormAssociatedSaveBindings
Get associated save bindings of a form in a component- Parameters:
formComp- the component that contains the form- Returns:
- all associated save binding in the form
-
storeForm
Store the form in the component with id- Parameters:
comp- the component to store the formid- the form idform- the form instance
-
getForm
Get the form of the component- Parameters:
comp- the component has the formid- the form id- Returns:
- the form if there is a form inside the component with the id
-
getTracker
Tracker getTracker()Returns associated dependency tracker of this binder.- Returns:
- associated dependency tracker of this binder.
-
getValidationMessages
ValidationMessages getValidationMessages()Get theValidationMessages- Returns:
- null if no one set the instance by
setValidationMessages(ValidationMessages)
-
setValidationMessages
Set theValidationMessages- Parameters:
messages- theValidationMessages
-
hasValidator
is there a validator on the attribute of component- Parameters:
comp- the component to checkattr- the attribute to check- Returns:
- true if there is a validator
-
getTemplateResolver
get the template resolver that sets byBinder.setTemplate(Component, String, String, java.util.Map)- Parameters:
comp- the component has resolversattr- the attribute to get the resolver- Returns:
- the resolver, null if not existed.
-
getLoadPromptBindings
get all load prompt binding of the component and attribute- Parameters:
comp- the component is relative to the bindingsattr- the attribute is relative to the bindings- Returns:
- the prompt-load-bindings
-
getPhaseListeners
List<PhaseListener> getPhaseListeners()get the firstPhaseListener- Returns:
- the
PhaseListener
-
addPhaseListener
Add thePhaseListener- Parameters:
listener-- Since:
- 8.0.0
-
isActivating
boolean isActivating()check if binder is in activating state- Returns:
- true if binder is currently in activating state
- Since:
- 6.0.1
-
initQueue
void initQueue()Internal use only. Check and init queue- Since:
- 10.0.0
-
initActivator
void initActivator()Internal use only. Check and init Activator- Since:
- 10.0.0
-
getBindingExecutionInfoCollector
BindingExecutionInfoCollector getBindingExecutionInfoCollector()get binding execution info collector- Returns:
- the collector instance or null if no collector is existed
- Since:
- 6.5.2
-
getBindingAnnotationInfoChecker
BindingAnnotationInfoChecker getBindingAnnotationInfoChecker()get binding annotation info checker- Returns:
- the collector instance or null if no collector is existed
- Since:
- 6.5.2
-
getQueueName
String getQueueName()Returns the queue name of this binder- Since:
- 8.0.0
-
getQueueScope
String getQueueScope()Returns the queue scope of this binder- Since:
- 8.0.0
-
addSaveFormFieldName
Adds a field name for saving with the given Form.- Parameters:
fieldName- field name to be saved into.- Since:
- 8.0.0
-
addSaveFormFieldName
Adds all field names for saving with the given Form.- Parameters:
fieldNames- field name to be saved into.- Since:
- 8.0.0
-
getSaveFormFieldNames
Returns all field names for saving with the given Form.- Since:
- 8.0.0
-
removeSaveFormFieldNames
Remove all field names for saving with the given Form.- Since:
- 8.0.0
-
getMatchMediaValue
Returns an unmodifiable Map containing all the MatchMedia annotation values of this binder. If there's no MatchMedia annotation, it returns an empty Map.- Since:
- 8.0.2
-