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
Modifier and TypeClassDescriptionprotected class
Calls resize on tab selection on the tabs child hierarchy.protected class
Handles the size of a tabbed panel.protected class
The widget value change handler. -
Field Summary
-
Constructor Summary
ConstructorDescriptionCmsRenderer
(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.CmsEntityAttribute
createEmptyAttribute
(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).void
renderAttributeValue
(org.opencms.acacia.shared.CmsEntity parentEntity, CmsAttributeHandler attributeHandler, int attributeIndex, com.google.gwt.user.client.ui.Panel context) Renders a single attribute value.void
renderForm
(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.void
renderInline
(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.void
renderInline
(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 void
setAttributeChoice
(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_CmsEntityRenderer
Returns a copy of this renderer which has been configured with the given configuration string.- Specified by:
configure
in interfaceI_CmsEntityRenderer
- Parameters:
configuration
- the configuration string- Returns:
- the configured copy of the renderer
- See Also:
-
getName
Description copied from interface:I_CmsEntityRenderer
Gets the name of the renderer (should be unique for each renderer class).- Specified by:
getName
in interfaceI_CmsEntityRenderer
- Returns:
- the renderer name
- See Also: