Class ComponentInjectorHelper
java.lang.Object
de.hybris.platform.cmscockpit.components.contentbrowser.ComponentInjectorHelper
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckVelocityParamsChanged(Object item, org.apache.velocity.VelocityContext lastVelocityCtx) static MessagecreateAnErrorMessage(Exception exception) static EditorListenercreateEditorListener(TypedObject item, ObjectValueContainer objectValueContainer, Map<String, ? extends Object> params, PropertyDescriptor propDescr, String editorCode, org.zkoss.zk.ui.HtmlBasedComponent parent, org.zkoss.zk.ui.HtmlBasedComponent rootComponent, boolean autoPersist) static org.zkoss.zul.PopupcreateLocalizedTooltip(String message, org.zkoss.zk.ui.Component parent, org.zkoss.zul.Label target) static org.apache.velocity.VelocityContextcreateVelocityContext(Object item) static List<PropertyDescriptor>getEditorPropertyDescriptors(TypedObject item, TypeService typeService, CMSAdminComponentService compService) static StringgetEditorWiths(Map<String, Object> configParams) static StringgetEditorWithsTooltip(Map<String, Object> configParams) protected static MessageRendererprotected static ObjectValueContainer.ObjectValueHoldergetObjectValueHolder(ObjectValueContainer valueContainer, PropertyDescriptor descr, String langIso) static StringgetParsedVelocityTemplateString(Object item, String velocityTemplate) static StringgetPropertyLabel(PropertyDescriptor propDescr) static booleanhasEditableProperties(TypedObject referenceValue) static org.zkoss.zk.ui.HtmlBasedComponentrenderEditorRow(org.zkoss.zk.ui.Component parent, Map<String, Object> editorParameters, boolean editable, String label, String description)
-
Field Details
-
COMPONENT_EDITOR_CONF
- See Also:
-
COMPONENT_EDITOR_GRP_SCLASS
- See Also:
-
COMPONENT_EDITOR_GRP_SCLASS_NOT_EXPANDABLE
- See Also:
-
LOAD_ON_DEMAND_FLAG
- See Also:
-
EDITOR_ENTRY
- See Also:
-
EDITOR_ENTRY_READ_ONLY
- See Also:
-
EDITOR_ENTRY_WIDTHS
- See Also:
-
EDITOR_ENTRY_WIDTHS_TOOLTIP
- See Also:
-
EMPTY_TEXT
- See Also:
-
CONTENT_EDITOR_ROW_ERROR
- See Also:
-
CONTENT_EDITOR_ROW
- See Also:
-
UPDATE_COMPONENT_KEY
- See Also:
-
-
Constructor Details
-
ComponentInjectorHelper
public ComponentInjectorHelper()
-
-
Method Details
-
renderEditorRow
-
createLocalizedTooltip
public static org.zkoss.zul.Popup createLocalizedTooltip(String message, org.zkoss.zk.ui.Component parent, org.zkoss.zul.Label target) -
getEditorWiths
-
getEditorWithsTooltip
-
getPropertyLabel
-
hasEditableProperties
-
getAllEditorRowConfigurations
public static Map<PropertyDescriptor,EditorRowConfiguration> getAllEditorRowConfigurations(EditorConfiguration config) -
getEditorPropertyDescriptors
public static List<PropertyDescriptor> getEditorPropertyDescriptors(TypedObject item, TypeService typeService, CMSAdminComponentService compService) -
createVelocityContext
-
checkVelocityParamsChanged
public static boolean checkVelocityParamsChanged(Object item, org.apache.velocity.VelocityContext lastVelocityCtx) -
getParsedVelocityTemplateString
-
getObjectValueHolder
protected static ObjectValueContainer.ObjectValueHolder getObjectValueHolder(ObjectValueContainer valueContainer, PropertyDescriptor descr, String langIso) -
createEditorListener
public static EditorListener createEditorListener(TypedObject item, ObjectValueContainer objectValueContainer, Map<String, ? extends Object> params, PropertyDescriptor propDescr, String editorCode, org.zkoss.zk.ui.HtmlBasedComponent parent, org.zkoss.zk.ui.HtmlBasedComponent rootComponent, boolean autoPersist) -
createAnErrorMessage
-
getMessageRenderer
-