Package org.opencms.acacia.client
Class CmsRenderer
java.lang.Object
org.opencms.acacia.client.CmsRenderer
- All Implemented Interfaces:
I_CmsEntityRenderer
Renders the widgets for an in-line form.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classCalls resize on tab selection on the tabs child hierarchy.protected classHandles the size of a tabbed panel.protected classThe widget value change handler. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCmsRenderer(I_CmsEntityBackend entityBackEnd, I_CmsWidgetService widgetService) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns a copy of this renderer which has been configured with the given configuration string.protected org.opencms.acacia.shared.CmsEntityAttributecreateEmptyAttribute(org.opencms.acacia.shared.CmsEntity parentEntity, String attributeName, CmsAttributeHandler handler, int minOccurrence) Creates an empty attribute.static List<CmsChoiceMenuEntryBean> getChoiceEntries(org.opencms.acacia.shared.CmsType attributeType, boolean startingAtChoiceAttribute) Gets the paths of nested choice attributes starting from a given type.getName()Gets the name of the renderer (should be unique for each renderer class).voidrenderAttributeValue(org.opencms.acacia.shared.CmsEntity parentEntity, CmsAttributeHandler attributeHandler, int attributeIndex, com.google.gwt.user.client.ui.Panel context) Renders a single attribute value.voidrenderForm(org.opencms.acacia.shared.CmsEntity entity, com.google.gwt.user.client.ui.Panel context, I_CmsAttributeHandler parentHandler, int attributeIndex) Renders the given entity into a form.CmsTabbedPanel<com.google.gwt.user.client.ui.FlowPanel> renderForm(org.opencms.acacia.shared.CmsEntity entity, List<org.opencms.acacia.shared.CmsTabInfo> tabInfos, com.google.gwt.user.client.ui.Panel context, I_CmsAttributeHandler parentHandler, int attributeIndex) Renders the given entity into a form with tabs.voidrenderInline(org.opencms.acacia.shared.CmsEntity parentEntity, String attributeName, I_CmsInlineFormParent formParent, I_CmsInlineHtmlUpdateHandler updateHandler, I_CmsAttributeHandler parentHandler, int attributeIndex, int minOccurrence, int maxOccurrence) Injects editing widgets into the given DOM context to enable editing of the given entity attribute.voidrenderInline(org.opencms.acacia.shared.CmsEntity entity, I_CmsInlineFormParent formParent, I_CmsInlineHtmlUpdateHandler updateHandler, I_CmsAttributeHandler parentHandler, int attributeIndex) Injects editing widgets into the given DOM context to enable editing of the given entity.static voidsetAttributeChoice(I_CmsWidgetService widgetService, CmsAttributeValueView valueWidget, org.opencms.acacia.shared.CmsType attributeType) Sets the attribute choices if present.
-
Field Details
-
ENTITY_CLASS
The entity CSS class. -
LABEL_CLASS
The attribute label CSS class. -
RENDERER_NAME
The renderer name.- See Also:
-
WIDGET_HOLDER_CLASS
The widget holder CSS class.
-
-
Constructor Details
-
CmsRenderer
Constructor.- Parameters:
entityBackEnd- the entity back end instancewidgetService- the widget service
-
-
Method Details
-
configure
Description copied from interface:I_CmsEntityRendererReturns a copy of this renderer which has been configured with the given configuration string.- Specified by:
configurein interfaceI_CmsEntityRenderer- Parameters:
configuration- the configuration string- Returns:
- the configured copy of the renderer
- See Also:
-
getName
Description copied from interface:I_CmsEntityRendererGets the name of the renderer (should be unique for each renderer class).- Specified by:
getNamein interfaceI_CmsEntityRenderer- Returns:
- the renderer name
- See Also: