public class CollectionLabelRenderer extends AbstractCockpitEditorRenderer<Object>
HEADER_LABEL_TOOLTIP, ON_ADD_EVENT, ON_DELETE_EVENTINITIAL_EDIT_STRING| Constructor and Description |
|---|
CollectionLabelRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected org.zkoss.zul.Label |
createEmptyCollectionLabel(EditorContext<Object> context) |
protected Collection<Object> |
getCollection(EditorContext<Object> context) |
protected DataType |
getElementType(DataType collectionType,
EditorContext<Object> context,
Object value) |
CockpitEditorRenderer<Object> |
getValueRenderer() |
void |
render(org.zkoss.zk.ui.Component parent,
EditorContext<Object> context,
EditorListener<Object> listener)
Creates a new editor component and attaches it to the specified
Component component. |
protected void |
renderElement(org.zkoss.zk.ui.Component parent,
EditorContext<Object> context,
EditorListener<Object> listener,
Object value) |
protected void |
renderElement(org.zkoss.zk.ui.Component parent,
EditorContext<Object> context,
EditorListener<Object> listener,
Object value,
DataType elementType) |
protected void |
renderValues(org.zkoss.zk.ui.Component parent,
EditorContext<Object> context,
EditorListener<Object> listener,
Collection<Object> collection) |
void |
setValueRenderer(CockpitEditorRenderer<Object> valueRenderer) |
extractEmbeddedEditor, extractEmbeddedType, findAncestorEditor, findEmbeddedEditors, getInitialEditString, getL10nDecoratorpublic void render(org.zkoss.zk.ui.Component parent,
EditorContext<Object> context,
EditorListener<Object> listener)
CockpitEditorRendererComponent component.parent - parent component the editor should be attached tocontext - the context for the editor creationlistener - the listener to notify the rest of the world about value changes and other eventsprotected void renderValues(org.zkoss.zk.ui.Component parent,
EditorContext<Object> context,
EditorListener<Object> listener,
Collection<Object> collection)
protected Collection<Object> getCollection(EditorContext<Object> context)
protected org.zkoss.zul.Label createEmptyCollectionLabel(EditorContext<Object> context)
protected void renderElement(org.zkoss.zk.ui.Component parent,
EditorContext<Object> context,
EditorListener<Object> listener,
Object value)
protected void renderElement(org.zkoss.zk.ui.Component parent,
EditorContext<Object> context,
EditorListener<Object> listener,
Object value,
DataType elementType)
protected DataType getElementType(DataType collectionType, EditorContext<Object> context, Object value)
public CockpitEditorRenderer<Object> getValueRenderer()
public void setValueRenderer(CockpitEditorRenderer<Object> valueRenderer)
Copyright © 2018. All rights reserved.