public class DefaultInstantEditorLabelRenderer extends AbstractInstantEditorLabelRenderer
| Modifier and Type | Field and Description |
|---|---|
static String |
PARAM_LABEL_PROVIDER_BEAN
editor-parameter which can be used to force usage of given Spring bean as a label provider
|
static String |
PARAM_LABEL_PROVIDERS_LIST
editor-parameter which can be used to change list of label providers to be used
|
LABEL_KEY_NO_VALUE, PARAM_LABEL_NO_VALUE_KEY, PARAM_LABEL_NO_VALUE_STYLE, SCLASS_ACCESS_DENIED, SCLASS_NO_VALUEDECORATED_EDITORS_EMBEDDED_CONTENT, DECORATED_EDITORS_PATTERNHEADER_LABEL_TOOLTIP, ON_ADD_EVENT, ON_DELETE_EVENT, YW_EDITOR_AREA_LABEL_CONTAINERINITIAL_EDIT_STRING| Constructor and Description |
|---|
DefaultInstantEditorLabelRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected IllegalStateException |
createNoLabelProviderFoundException(String editorType,
String labelProviderBeanId) |
protected String |
getEditorType(EditorContext<Object> context) |
protected List<InstantEditorLabelProvider> |
getInstantEditorLabelProviders() |
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 Optional<InstantEditorLabelProvider> |
resolveLabelProvider(List<InstantEditorLabelProvider> providers,
String editorType,
String labelProviderBeanId) |
protected List<InstantEditorLabelProvider> |
resolveLabelProvidersList(String labelProvidersBeanId) |
void |
setInstantEditorLabelProviders(List<InstantEditorLabelProvider> instantEditorLabelProviders) |
createValueLabel, getLabelService, getPermissionFacade, setLabelService, setPermissionFacade, updateValueLabelcreateEditor, extractDecoratedEditorContent, extractDefinitions, getEditorTypeFromContext, prepareNestedContextextractEmbeddedEditor, extractEmbeddedType, findAncestorEditor, findEmbeddedEditors, getInitialEditString, getL10nDecoratorpublic static final String PARAM_LABEL_PROVIDER_BEAN
public static final String PARAM_LABEL_PROVIDERS_LIST
public 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 String getEditorType(EditorContext<Object> context)
protected List<InstantEditorLabelProvider> resolveLabelProvidersList(String labelProvidersBeanId)
protected Optional<InstantEditorLabelProvider> resolveLabelProvider(List<InstantEditorLabelProvider> providers, String editorType, String labelProviderBeanId)
protected IllegalStateException createNoLabelProviderFoundException(String editorType, String labelProviderBeanId)
protected List<InstantEditorLabelProvider> getInstantEditorLabelProviders()
public void setInstantEditorLabelProviders(List<InstantEditorLabelProvider> instantEditorLabelProviders)
Copyright © 2018. All rights reserved.