Class CockpitEditorContainer

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.zkoss.zk.ui.Component, org.zkoss.zk.ui.ext.Scope, org.zkoss.zk.ui.sys.ComponentCtrl

    public class CockpitEditorContainer
    extends org.zkoss.zul.Div
    ZK-Component class which allows to include cockpit editors into zul-files.

    Example:

    <div id="pageEditor" visible="false" action="onshow:anima.appear(#{self});" style="margin: 30px;" >
         <div use="de.hybris.platform.cockpit.components.editor.CockpitEditorContainer" valueTypeCode="AbstractPage" editorCode="single"
                 onValueChange='setAttr("restrictedItem",self.getEditorValue())'>
             <custom-attributes allowCreate="false"/>
         </div>
    </div>


    The following attributes can be set:
  • propertyQualifier: You can specify a property qualifier, e.g. "Item.pk". The editor will be set correctly according to the editor factory
  • valueContainer: If you specify a value container, the changes within the editor will be stored there. If you don't set this attribute, a value container will be created internally.
  • editorCode: You can set a particular editor code (like in editorArea UI component configuration)
  • valueTypeCode: If you want to select or create an item without regard to an attribute, just set this property to an existing ComposedType code and don't set the propertyQualifier and valueContainer attributes
  • onValueChange: Add your event callback EL here

  • the custom-attributes tag is used similar to the parameter tag in editorArea UI component configuration, i.e. all attributes are added to the parameters map passed to UIEditor.createViewComponent(Object, Map, EditorListener)
See Also:
Serialized Form