Class DefaultInstantEditorLabelRenderer

    • Field Detail

      • PARAM_LABEL_PROVIDER_BEAN

        public static final java.lang.String PARAM_LABEL_PROVIDER_BEAN
        editor-parameter which can be used to force usage of given Spring bean as a label provider
        See Also:
        Constant Field Values
      • PARAM_LABEL_PROVIDERS_LIST

        public static final java.lang.String PARAM_LABEL_PROVIDERS_LIST
        editor-parameter which can be used to change list of label providers to be used
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultInstantEditorLabelRenderer

        public DefaultInstantEditorLabelRenderer()
    • Method Detail

      • render

        public void render​(org.zkoss.zk.ui.Component parent,
                           EditorContext<java.lang.Object> context,
                           EditorListener<java.lang.Object> listener)
        Description copied from interface: CockpitEditorRenderer
        Creates a new editor component and attaches it to the specified Component component.
        Parameters:
        parent - parent component the editor should be attached to
        context - the context for the editor creation
        listener - the listener to notify the rest of the world about value changes and other events
      • getEditorType

        protected java.lang.String getEditorType​(EditorContext<java.lang.Object> context)
      • resolveLabelProvidersList

        protected java.util.List<InstantEditorLabelProvider> resolveLabelProvidersList​(java.lang.String labelProvidersBeanId)
      • createNoLabelProviderFoundException

        protected java.lang.IllegalStateException createNoLabelProviderFoundException​(java.lang.String editorType,
                                                                                      java.lang.String labelProviderBeanId)
      • setInstantEditorLabelProviders

        public void setInstantEditorLabelProviders​(java.util.List<InstantEditorLabelProvider> instantEditorLabelProviders)