Class DefaultCellRenderer<T>
- java.lang.Object
-
- com.hybris.cockpitng.editor.extendedmultireferenceeditor.renderer.DefaultCellRenderer<T>
-
- All Implemented Interfaces:
CellRenderer<T>
public class DefaultCellRenderer<T> extends java.lang.Object implements CellRenderer<T>
Renders an inline-editable cell of a row inDefaultExtendedMultiReferenceEditor.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringEDITABLE_PROPERTYprotected static java.lang.StringINLINE_CELL_DURING_EDITprotected static java.lang.StringON_CELL_UPDATE_EVENTprotected static java.lang.StringSCLASS_LIST_CELL
-
Constructor Summary
Constructors Constructor Description DefaultCellRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EditorcreateEditorInstance(CellContext<T> cellContext)protected org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>createEditorRenderingListener(org.zkoss.zul.Listcell cell, CellContext<T> cellContext)protected org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>createPopupRenderingListener(org.zkoss.zul.Listcell cell, CellContext<T> cellContext)InlineEditorRowHandlergetHandler()LabelServicegetLabelService()protected WidgetComponentRenderergetListCellRenderer(ListColumn column)ObjectValueServicegetObjectValueService()protected java.lang.ObjectgetPropertyInitialValue(CellContext<T> cellContext)TypeFacadegetTypeFacade()protected ValidationRenderergetValidationRenderer()protected booleanisAtomicAttribute(CellContext cellContext)protected booleanisCellEditable(CellContext<T> cellContext)protected booleanisCellOptional(CellContext<T> cellContext)protected booleanisCompletxAttribute(CellContext cellContext)protected booleanisEditFinished(org.zkoss.zk.ui.event.Event event)protected voidmarkCellIfEdited(org.zkoss.zul.Listcell cell, CellContext<T> cellContext)voidrender(CellContext<T> cellContext)protected voidrenderAsEditor(org.zkoss.zul.Listcell cell, CellContext<T> cellContext)protected voidrenderAsPopup(org.zkoss.zul.Listcell cell, CellContext<T> cellContext)protected voidrenderAsText(org.zkoss.zul.Listcell cell, CellContext<T> cellContext)protected java.lang.StringresolveEditorType(DataAttribute genericAttribute)voidsetLabelService(LabelService labelService)voidsetObjectValueService(ObjectValueService objectValueService)voidsetPermissionFacade(PermissionFacade permissionFacade)voidsetTypeFacade(TypeFacade typeFacade)voidsetValidationRenderer(ValidationRenderer validationRenderer)
-
-
-
Field Detail
-
SCLASS_LIST_CELL
protected static final java.lang.String SCLASS_LIST_CELL
- See Also:
- Constant Field Values
-
EDITABLE_PROPERTY
protected static final java.lang.String EDITABLE_PROPERTY
- See Also:
- Constant Field Values
-
INLINE_CELL_DURING_EDIT
protected static final java.lang.String INLINE_CELL_DURING_EDIT
- See Also:
- Constant Field Values
-
ON_CELL_UPDATE_EVENT
protected static final java.lang.String ON_CELL_UPDATE_EVENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
render
public void render(CellContext<T> cellContext)
- Specified by:
renderin interfaceCellRenderer<T>
-
renderAsText
protected void renderAsText(org.zkoss.zul.Listcell cell, CellContext<T> cellContext)
-
markCellIfEdited
protected void markCellIfEdited(org.zkoss.zul.Listcell cell, CellContext<T> cellContext)
-
getPropertyInitialValue
protected java.lang.Object getPropertyInitialValue(CellContext<T> cellContext)
-
renderAsPopup
protected void renderAsPopup(org.zkoss.zul.Listcell cell, CellContext<T> cellContext)
-
resolveEditorType
protected java.lang.String resolveEditorType(DataAttribute genericAttribute)
- Parameters:
genericAttribute- an attribute for which the editor type must be determined- Returns:
- resolved editor type
-
createEditorInstance
protected Editor createEditorInstance(CellContext<T> cellContext)
-
renderAsEditor
protected void renderAsEditor(org.zkoss.zul.Listcell cell, CellContext<T> cellContext)
-
isCellOptional
protected boolean isCellOptional(CellContext<T> cellContext)
-
isEditFinished
protected boolean isEditFinished(org.zkoss.zk.ui.event.Event event)
-
getListCellRenderer
protected WidgetComponentRenderer getListCellRenderer(ListColumn column)
-
createEditorRenderingListener
protected org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> createEditorRenderingListener(org.zkoss.zul.Listcell cell, CellContext<T> cellContext)
-
createPopupRenderingListener
protected org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> createPopupRenderingListener(org.zkoss.zul.Listcell cell, CellContext<T> cellContext)
-
isAtomicAttribute
protected boolean isAtomicAttribute(CellContext cellContext)
-
isCompletxAttribute
protected boolean isCompletxAttribute(CellContext cellContext)
-
isCellEditable
protected boolean isCellEditable(CellContext<T> cellContext)
-
getTypeFacade
public TypeFacade getTypeFacade()
-
setTypeFacade
public void setTypeFacade(TypeFacade typeFacade)
-
setObjectValueService
public void setObjectValueService(ObjectValueService objectValueService)
-
getObjectValueService
public ObjectValueService getObjectValueService()
-
setPermissionFacade
public void setPermissionFacade(PermissionFacade permissionFacade)
-
getValidationRenderer
protected ValidationRenderer getValidationRenderer()
-
setValidationRenderer
public void setValidationRenderer(ValidationRenderer validationRenderer)
-
getLabelService
public LabelService getLabelService()
-
setLabelService
public void setLabelService(LabelService labelService)
-
getHandler
public InlineEditorRowHandler getHandler()
-
-