public class DefaultCompareViewAttributeRenderer extends AbstractWidgetComponentRenderer<TableRow,Attribute,PartialRendererData<Collection>>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DefaultCompareViewAttributeRenderer.AttributeValueCache |
protected static interface |
DefaultCompareViewAttributeRenderer.IncorrectValueLabelProvider |
| Constructor and Description |
|---|
DefaultCompareViewAttributeRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
attributeNameRendered(TableCell component,
Attribute configuration,
PartialRendererData<Collection> data,
DataType dataType,
WidgetInstanceManager widgetInstanceManager) |
protected void |
attributeValueRendered(TableCell attributeValue,
Attribute configuration,
PartialRendererData<Collection> data,
Object item,
DataType dataType,
WidgetInstanceManager widgetInstanceManager) |
protected Editor |
buildEditor(EditorBuilder editorBuilder,
Attribute configuration,
PartialRendererData<Collection> data,
Object item,
DataAttribute dataAttribute,
WidgetInstanceManager widgetInstanceManager) |
protected org.zkoss.zk.ui.HtmlBasedComponent |
createAccessDeniedLabel(Attribute configuration,
PartialRendererData<Collection> data,
Object item,
DataType dataType,
WidgetInstanceManager widgetInstanceManager) |
protected Editor |
createAttributeEditor(Attribute configuration,
PartialRendererData<Collection> data,
Object item,
DataAttribute dataAttribute,
WidgetInstanceManager widgetInstanceManager) |
protected org.zkoss.zk.ui.Component |
createAttributeNameContents(Attribute configuration,
PartialRendererData<Collection> data,
DataType dataType,
WidgetInstanceManager widgetInstanceManager)
Deprecated.
|
protected org.zkoss.zk.ui.Component |
createAttributeNameContents(TableRow row,
TableCell parent,
Attribute configuration,
PartialRendererData<Collection> data,
DataType dataType,
WidgetInstanceManager widgetInstanceManager) |
protected org.zkoss.zk.ui.Component |
createAttributeNameLabel(org.zkoss.zk.ui.Component parent,
Attribute configuration,
PartialRendererData<Collection> data,
DataType dataType,
WidgetInstanceManager widgetInstanceManager) |
protected org.zkoss.zk.ui.HtmlBasedComponent |
createAttributeNotExistingLabel(Attribute configuration,
PartialRendererData<Collection> data,
Object item,
DataType dataType,
WidgetInstanceManager widgetInstanceManager) |
protected org.zkoss.zk.ui.HtmlBasedComponent |
createDisabledForLanguageLabel(Attribute configuration,
PartialRendererData<Collection> data,
Object item,
DataType dataType,
WidgetInstanceManager widgetInstanceManager) |
protected org.zkoss.zk.ui.HtmlBasedComponent |
createLocalizationDifferentiator(Locale locale,
TableRow row,
TableCell parent,
Attribute configuration,
PartialRendererData<Collection> data,
DataType dataType,
WidgetInstanceManager widgetInstanceManager) |
protected org.zkoss.zk.ui.Component |
createLocalizedAttributeNameLabel(TableRow row,
TableCell parent,
Attribute configuration,
PartialRendererData<Collection> data,
DataType dataType,
WidgetInstanceManager widgetInstanceManager) |
protected String |
getAttributeName(Attribute configuration,
PartialRendererData<Collection> data,
DataType dataType,
WidgetInstanceManager widgetInstanceManager) |
protected Object |
getAttributeValueCache(Attribute configuration,
PartialRendererData<Collection> data,
Object item,
DataType dataType,
WidgetInstanceManager widgetInstanceManager) |
CockpitLocaleService |
getCockpitLocaleService() |
protected Locale |
getCurrentLocale() |
protected EditorWrappingUtils |
getEditorWrappingUtils() |
protected LabelService |
getLabelService() |
protected Optional<Locale> |
getLocaleForAttribute(Attribute configuration) |
protected String |
getLocalizationDifferentiator(String languageDescriptor) |
protected ObjectValueService |
getObjectValueService() |
protected PermissionFacade |
getPermissionFacade() |
protected org.zkoss.zul.Div |
getValueContainer(TableCell cell) |
protected Object |
getValueOfAttribute(Attribute configuration,
Object item) |
protected WidgetRenderingUtils |
getWidgetRenderingUtils() |
protected void |
handleIncorrectAttributeValue(org.zkoss.zk.ui.HtmlBasedComponent parent,
Attribute configuration,
PartialRendererData<Collection> data,
Object item,
DataType dataType,
WidgetInstanceManager widgetInstanceManager,
DefaultCompareViewAttributeRenderer.IncorrectValueLabelProvider incorrectValueLabelProvider) |
protected boolean |
isFittingEditor(Editor editor,
Attribute configuration,
PartialRendererData<Collection> data,
Object item,
DataAttribute dataAttribute,
WidgetInstanceManager widgetInstanceManager) |
protected boolean |
isLocaleAvailableForItemInstance(Attribute configuration,
Object item) |
protected boolean |
isNotEqual(ComparisonResult result,
CompareAttributeDescriptor attributeDescriptor)
Checks if there is any difference for an attribute
attributeDescriptor. |
protected boolean |
isNotEqual(ComparisonResult result,
CompareAttributeDescriptor attributeDescriptor,
Object compareObject)
Checks if there is any difference for a
compareObject and attribute attributeDescriptor in
comparing with reference object. |
protected void |
modifyYatfTestIdForAttributeName(TableCell attributeName,
Attribute configuration) |
protected void |
modifyYatfTestIdForAttributeValue(TableCell attributeValue,
Attribute configuration,
int index) |
void |
render(TableRow parent,
Attribute configuration,
PartialRendererData<Collection> data,
DataType dataType,
WidgetInstanceManager widgetInstanceManager)
Renders a component inside parent, representing given data and complying to given ui
configuration.
|
protected void |
renderAttributeEditor(org.zkoss.zk.ui.HtmlBasedComponent container,
Attribute configuration,
PartialRendererData<Collection> data,
Object item,
DataAttribute dataAttribute,
WidgetInstanceManager widgetInstanceManager) |
protected void |
renderAttributeName(TableCell attributeName,
Attribute configuration,
PartialRendererData<Collection> data,
DataType dataType,
WidgetInstanceManager widgetInstanceManager)
Deprecated.
|
protected void |
renderAttributeName(TableRow parent,
TableCell attributeName,
Attribute configuration,
PartialRendererData<Collection> data,
DataType dataType,
WidgetInstanceManager widgetInstanceManager) |
protected void |
renderAttributeValue(TableCell attributeValue,
Attribute configuration,
PartialRendererData<Collection> data,
Object item,
DataType dataType,
WidgetInstanceManager widgetInstanceManager) |
protected void |
renderAttributeValueContents(org.zkoss.zk.ui.HtmlBasedComponent parent,
Attribute configuration,
PartialRendererData<Collection> data,
Object item,
DataType dataType,
WidgetInstanceManager widgetInstanceManager) |
protected boolean |
requiresAttributeNameRendering(TableCell attributeNameCell,
Attribute configuration,
PartialRendererData<Collection> data,
DataType dataType,
WidgetInstanceManager widgetInstanceManager) |
protected boolean |
requiresAttributeValueRendering(TableCell attributeValue,
Attribute configuration,
PartialRendererData<Collection> data,
Object item,
DataType dataType,
WidgetInstanceManager widgetInstanceManager) |
void |
setCockpitLocaleService(CockpitLocaleService cockpitLocaleService) |
void |
setEditorWrappingUtils(EditorWrappingUtils editorWrappingUtils) |
void |
setLabelService(LabelService labelService) |
void |
setObjectValueService(ObjectValueService objectValueService) |
void |
setPermissionFacade(PermissionFacade permissionFacade) |
void |
setWidgetRenderingUtils(WidgetRenderingUtils widgetRenderingUtils) |
protected void |
updateAttributeValueDifferentMark(Attribute configuration,
Object item,
PartialRendererData<Collection> data,
TableCell attributeValue) |
protected void |
updateLocalizationDifferentiatorDifferentMark(Locale locale,
Attribute configuration,
org.zkoss.zk.ui.HtmlBasedComponent component,
PartialRendererData<Collection> data) |
addRendererListener, fireComponentRendered, fireComponentRendered, fireComponentRendered, removeRendererListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrenderpublic void render(TableRow parent, Attribute configuration, PartialRendererData<Collection> data, DataType dataType, WidgetInstanceManager widgetInstanceManager)
WidgetComponentRendererparent - parent component on which to renderconfiguration - configuration of rendererdata - data to be rendereddataType - meta information about type of data providedwidgetInstanceManager - widget manager in scope of which renderer is usedprotected boolean requiresAttributeNameRendering(TableCell attributeNameCell, Attribute configuration, PartialRendererData<Collection> data, DataType dataType, WidgetInstanceManager widgetInstanceManager)
@Deprecated protected void renderAttributeName(TableCell attributeName, Attribute configuration, PartialRendererData<Collection> data, DataType dataType, WidgetInstanceManager widgetInstanceManager)
renderAttributeName(TableRow, TableCell, Attribute, PartialRendererData, DataType, WidgetInstanceManager)protected void renderAttributeName(TableRow parent, TableCell attributeName, Attribute configuration, PartialRendererData<Collection> data, DataType dataType, WidgetInstanceManager widgetInstanceManager)
@Deprecated protected org.zkoss.zk.ui.Component createAttributeNameContents(Attribute configuration, PartialRendererData<Collection> data, DataType dataType, WidgetInstanceManager widgetInstanceManager)
createAttributeNameContents(TableRow, TableCell, Attribute, PartialRendererData, DataType, WidgetInstanceManager)
)}protected org.zkoss.zk.ui.Component createAttributeNameContents(TableRow row, TableCell parent, Attribute configuration, PartialRendererData<Collection> data, DataType dataType, WidgetInstanceManager widgetInstanceManager)
protected org.zkoss.zk.ui.Component createAttributeNameLabel(org.zkoss.zk.ui.Component parent,
Attribute configuration,
PartialRendererData<Collection> data,
DataType dataType,
WidgetInstanceManager widgetInstanceManager)
protected org.zkoss.zk.ui.Component createLocalizedAttributeNameLabel(TableRow row, TableCell parent, Attribute configuration, PartialRendererData<Collection> data, DataType dataType, WidgetInstanceManager widgetInstanceManager)
protected String getAttributeName(Attribute configuration, PartialRendererData<Collection> data, DataType dataType, WidgetInstanceManager widgetInstanceManager)
protected org.zkoss.zk.ui.HtmlBasedComponent createLocalizationDifferentiator(Locale locale, TableRow row, TableCell parent, Attribute configuration, PartialRendererData<Collection> data, DataType dataType, WidgetInstanceManager widgetInstanceManager)
protected String getLocalizationDifferentiator(String languageDescriptor)
protected Object getAttributeValueCache(Attribute configuration, PartialRendererData<Collection> data, Object item, DataType dataType, WidgetInstanceManager widgetInstanceManager)
protected Locale getCurrentLocale()
protected void attributeNameRendered(TableCell component, Attribute configuration, PartialRendererData<Collection> data, DataType dataType, WidgetInstanceManager widgetInstanceManager)
protected void updateLocalizationDifferentiatorDifferentMark(Locale locale, Attribute configuration, org.zkoss.zk.ui.HtmlBasedComponent component, PartialRendererData<Collection> data)
protected void renderAttributeValue(TableCell attributeValue, Attribute configuration, PartialRendererData<Collection> data, Object item, DataType dataType, WidgetInstanceManager widgetInstanceManager)
protected org.zkoss.zul.Div getValueContainer(TableCell cell)
protected boolean requiresAttributeValueRendering(TableCell attributeValue, Attribute configuration, PartialRendererData<Collection> data, Object item, DataType dataType, WidgetInstanceManager widgetInstanceManager)
protected void renderAttributeValueContents(org.zkoss.zk.ui.HtmlBasedComponent parent,
Attribute configuration,
PartialRendererData<Collection> data,
Object item,
DataType dataType,
WidgetInstanceManager widgetInstanceManager)
protected void handleIncorrectAttributeValue(org.zkoss.zk.ui.HtmlBasedComponent parent,
Attribute configuration,
PartialRendererData<Collection> data,
Object item,
DataType dataType,
WidgetInstanceManager widgetInstanceManager,
DefaultCompareViewAttributeRenderer.IncorrectValueLabelProvider incorrectValueLabelProvider)
protected boolean isLocaleAvailableForItemInstance(Attribute configuration, Object item)
protected org.zkoss.zk.ui.HtmlBasedComponent createAttributeNotExistingLabel(Attribute configuration, PartialRendererData<Collection> data, Object item, DataType dataType, WidgetInstanceManager widgetInstanceManager)
protected org.zkoss.zk.ui.HtmlBasedComponent createAccessDeniedLabel(Attribute configuration, PartialRendererData<Collection> data, Object item, DataType dataType, WidgetInstanceManager widgetInstanceManager)
protected org.zkoss.zk.ui.HtmlBasedComponent createDisabledForLanguageLabel(Attribute configuration, PartialRendererData<Collection> data, Object item, DataType dataType, WidgetInstanceManager widgetInstanceManager)
protected void renderAttributeEditor(org.zkoss.zk.ui.HtmlBasedComponent container,
Attribute configuration,
PartialRendererData<Collection> data,
Object item,
DataAttribute dataAttribute,
WidgetInstanceManager widgetInstanceManager)
protected boolean isFittingEditor(Editor editor, Attribute configuration, PartialRendererData<Collection> data, Object item, DataAttribute dataAttribute, WidgetInstanceManager widgetInstanceManager)
protected Editor createAttributeEditor(Attribute configuration, PartialRendererData<Collection> data, Object item, DataAttribute dataAttribute, WidgetInstanceManager widgetInstanceManager)
protected Editor buildEditor(EditorBuilder editorBuilder, Attribute configuration, PartialRendererData<Collection> data, Object item, DataAttribute dataAttribute, WidgetInstanceManager widgetInstanceManager)
protected void attributeValueRendered(TableCell attributeValue, Attribute configuration, PartialRendererData<Collection> data, Object item, DataType dataType, WidgetInstanceManager widgetInstanceManager)
protected void modifyYatfTestIdForAttributeValue(TableCell attributeValue, Attribute configuration, int index)
protected void modifyYatfTestIdForAttributeName(TableCell attributeName, Attribute configuration)
protected void updateAttributeValueDifferentMark(Attribute configuration, Object item, PartialRendererData<Collection> data, TableCell attributeValue)
protected boolean isNotEqual(ComparisonResult result, CompareAttributeDescriptor attributeDescriptor)
attributeDescriptor.result - ComparisonResult loaded from engine
DefaultItemComparisonFacade.getCompareViewResult(Object, Collection, Collection)attributeDescriptor - object's attribute descriptorprotected boolean isNotEqual(ComparisonResult result, CompareAttributeDescriptor attributeDescriptor, Object compareObject)
compareObject and attribute attributeDescriptor in
comparing with reference object.result - ComparisonResult loaded from engine
DefaultItemComparisonFacade.getCompareViewResult(Object, Collection, Collection)attributeDescriptor - attribute's descriptor to compare between referenceObject and * compareObjectcompareObject - object compares with a referenceObject ComparisonResult.getReferenceObject()true if compareObject is different than reference objectpublic CockpitLocaleService getCockpitLocaleService()
public void setCockpitLocaleService(CockpitLocaleService cockpitLocaleService)
protected PermissionFacade getPermissionFacade()
public void setPermissionFacade(PermissionFacade permissionFacade)
protected LabelService getLabelService()
public void setLabelService(LabelService labelService)
protected ObjectValueService getObjectValueService()
public void setObjectValueService(ObjectValueService objectValueService)
protected EditorWrappingUtils getEditorWrappingUtils()
public void setEditorWrappingUtils(EditorWrappingUtils editorWrappingUtils)
protected WidgetRenderingUtils getWidgetRenderingUtils()
public void setWidgetRenderingUtils(WidgetRenderingUtils widgetRenderingUtils)
Copyright © 2018. All rights reserved.