public abstract class AbstractCsWidgetRenderer<T extends Widget> extends java.lang.Object implements WidgetRenderer<T>
WidgetRenderers in the CS Cockpit application.
Creates standard caption and content containers to be used throughout the CS Cockpit application for UI consistency
purposes.| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractCsWidgetRenderer.ConfirmBeforeCompletingRequestEventListener |
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
CSS_WIDGET_CAPTION |
protected static java.lang.String |
CSS_WIDGET_CONTENT |
| Constructor and Description |
|---|
AbstractCsWidgetRenderer() |
| Modifier and Type | Method and Description |
|---|---|
HtmlBasedComponent |
createCaption(T widget)
Creates and returns the widget's caption component.
|
protected EventListener |
createConfirmBeforeCompletingRequestEventListener(T widget,
EventListener innerEvent) |
HtmlBasedComponent |
createContent(T widget)
Creates and returns the widget's (main) content component.
|
protected abstract HtmlBasedComponent |
createContentInternal(T widget,
HtmlBasedComponent rootContainer)
Responsible for creating the actual content.
|
protected TypeService |
getCockpitTypeService() |
protected LabelService |
getLabelService() |
protected PropertyEditorHelper |
getPropertyEditorHelper() |
protected PropertyRendererHelper |
getPropertyRendererHelper() |
protected SystemService |
getSystemService() |
protected void |
handleConfirmBeforeCompletingRequestEvent(T widget,
Event event,
EventListener innerEvent) |
void |
setCockpitTypeService(TypeService typeService) |
void |
setLabelService(LabelService labelService) |
void |
setPropertyEditorHelper(PropertyEditorHelper propertyEditorHelper) |
void |
setPropertyRendererHelper(PropertyRendererHelper propertyRendererHelper) |
void |
setSystemService(SystemService systemService) |
protected static final java.lang.String CSS_WIDGET_CAPTION
protected static final java.lang.String CSS_WIDGET_CONTENT
protected TypeService getCockpitTypeService()
public void setCockpitTypeService(TypeService typeService)
protected LabelService getLabelService()
public void setLabelService(LabelService labelService)
protected SystemService getSystemService()
public void setSystemService(SystemService systemService)
protected PropertyRendererHelper getPropertyRendererHelper()
public void setPropertyRendererHelper(PropertyRendererHelper propertyRendererHelper)
protected PropertyEditorHelper getPropertyEditorHelper()
public void setPropertyEditorHelper(PropertyEditorHelper propertyEditorHelper)
public HtmlBasedComponent createCaption(T widget)
WidgetRenderercreateCaption in interface WidgetRenderer<T extends Widget>widget - the widget componentpublic HtmlBasedComponent createContent(T widget)
WidgetRendererInputWidget) need to be able to access specific content components (e.g. input
component) for updating purposes etc, which means that the renderer needs to pass those components to the widget
directly. Please see InputWidget#setInputComponent(org.zkoss.zul.impl.api.InputElement) for an example.createContent in interface WidgetRenderer<T extends Widget>widget - the widget componentprotected abstract HtmlBasedComponent createContentInternal(T widget, HtmlBasedComponent rootContainer)
createContent(Widget)).widget - the widgetrootContainer - the root html component that will be set as the content of the widgetprotected EventListener createConfirmBeforeCompletingRequestEventListener(T widget, EventListener innerEvent)
protected void handleConfirmBeforeCompletingRequestEvent(T widget, Event event, EventListener innerEvent) throws java.lang.Exception
java.lang.ExceptionCopyright © 2018 SAP SE. All Rights Reserved.