public class FixedInstantEditorLabelsRenderer extends AbstractInstantEditorLabelRenderer
Renderer assumes that there are parameters set in editor context that specifies expressions returning
true or false named according to convention: expression_NAME. If some
expression returns true then a value of setting label_NAME is returned as label (checking if it is a
localized label key).
| Modifier and Type | Class and Description |
|---|---|
protected class |
FixedInstantEditorLabelsRenderer.FixedLabelProvider |
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_EVENTINITIAL_EDIT_STRING| Constructor and Description |
|---|
FixedInstantEditorLabelsRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected InstantEditorLabelProvider |
createLabelProvider(EditorContext<Object> context) |
protected ExpressionResolverFactory |
getExpressionResolverFactory() |
protected String |
getFallbackLabel(EditorContext<Object> editorContext) |
protected String |
getLabel(EditorContext<Object> editorContext,
String labelName) |
protected String |
getLabel(WidgetInstanceManager wim,
String label) |
protected Optional<String> |
getMatchingLabelName(EditorContext<Object> editorContext,
Object value) |
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. |
void |
setExpressionResolverFactory(ExpressionResolverFactory expressionResolverFactory) |
createValueLabel, getLabelService, getPermissionFacade, setLabelService, setPermissionFacade, updateValueLabelcreateEditor, extractDecoratedEditorContent, extractDefinitions, getEditorTypeFromContext, prepareNestedContextextractEmbeddedEditor, 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 InstantEditorLabelProvider createLabelProvider(EditorContext<Object> context)
protected Optional<String> getMatchingLabelName(EditorContext<Object> editorContext, Object value)
protected String getLabel(EditorContext<Object> editorContext, String labelName)
protected String getLabel(WidgetInstanceManager wim, String label)
protected String getFallbackLabel(EditorContext<Object> editorContext)
protected ExpressionResolverFactory getExpressionResolverFactory()
public void setExpressionResolverFactory(ExpressionResolverFactory expressionResolverFactory)
Copyright © 2018. All rights reserved.