public class InstantEditorRenderer extends AbstractEditorRendererWrapper
DECORATED_EDITORS_EMBEDDED_CONTENT, DECORATED_EDITORS_PATTERN
HEADER_LABEL_TOOLTIP, ON_ADD_EVENT, ON_DELETE_EVENT
INITIAL_EDIT_STRING
Constructor and Description |
---|
InstantEditorRenderer() |
Modifier and Type | Method and Description |
---|---|
protected org.zkoss.zul.Div |
createAttributeLabel(EditorContext<?> context) |
protected org.zkoss.zul.Button |
createButton(String sclass,
String iconSclass,
org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.MouseEvent> onClickListener) |
protected EditorListener<Object> |
createChangedValueSuppressingEditorListenerProxy(EditorListener<Object> listener) |
protected org.zkoss.zul.Div |
createEditorButtons(org.zkoss.zul.Div editorContainer,
Editor editor,
EditorListener<Object> listener,
org.zkoss.zk.ui.HtmlBasedComponent label,
Executable labelUpdate) |
protected org.zkoss.zul.Div |
createEditorButtons(org.zkoss.zul.Div editorContainer,
Editor editor,
EditorListener<Object> listener,
org.zkoss.zul.Label label,
InstantEditorLabelProvider labelProvider)
Deprecated.
since 6.6
|
protected org.zkoss.zul.Div |
createEditorContainer(Editor editor,
EditorListener<Object> listener,
org.zkoss.zk.ui.HtmlBasedComponent label,
Executable labelUpdate) |
protected org.zkoss.zul.Div |
createEditorContainer(Editor editor,
EditorListener<Object> listener,
org.zkoss.zul.Label label,
InstantEditorLabelProvider labelProvider)
Deprecated.
since 6.6
|
protected Editor |
createNestedEditor(EditorContext<Object> context,
EditorListener<Object> listener) |
protected IllegalStateException |
createNoLabelProviderFoundException(Editor editor,
String labelProviderBeanId)
Deprecated.
since 6.6
|
protected org.zkoss.zk.ui.HtmlBasedComponent |
createValueLabel(EditorContext<Object> context,
EditorListener<Object> listener,
CockpitEditorRenderer<Object> labelRenderer) |
protected String |
getEditorTypeFromContext(EditorContext<Object> context)
Deprecated.
since 6.6
|
protected List<InstantEditorLabelProvider> |
getInstantEditorLabelProviders()
Deprecated.
since 6.6
|
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(String editorType,
String labelProviderBeanId)
Deprecated.
since 6.6
|
protected CockpitEditorRenderer<Object> |
resolveLabelRenderer(EditorContext<Object> context) |
void |
setInstantEditorLabelProviders(List<InstantEditorLabelProvider> instantEditorLabelProviders)
Deprecated.
since 6.6
|
protected void |
updateValueLabel(org.zkoss.zk.ui.HtmlBasedComponent labelContainer,
EditorContext<Object> context,
EditorListener<Object> listener,
Object value,
CockpitEditorRenderer<Object> labelRenderer) |
protected void |
updateValueLabel(org.zkoss.zul.Label label,
Editor editor,
InstantEditorLabelProvider labelProvider)
Deprecated.
since 6.6
|
createEditor, extractDecoratedEditorContent, extractDefinitions, getEditorTypeFromContext, prepareNestedContext
extractEmbeddedEditor, extractEmbeddedType, findAncestorEditor, findEmbeddedEditors, getInitialEditString, getL10nDecorator
public static final String EDITOR_ID
public static final String PARAM_LABEL_RENDERER_BEAN
@Deprecated public static final String PARAM_LABEL_PROVIDER_BEAN
@Deprecated public static final String PARAM_LABEL_NO_VALUE_KEY
@Deprecated public static final String PARAM_LABEL_NO_VALUE_STYLE
@Deprecated public static final String LABEL_KEY_NO_VALUE
public static final String YE_INSTANT_EDITOR_COMPONENT_VISIBLE
public static final String YE_INSTANT_EDITOR_COMPONENT_HIDDEN
@Deprecated protected static final String YE_INSTANT_EDITOR_LABEL_NO_VALUE
protected static final String YE_INSTANT_EDITOR_LABEL_CONTAINER
protected static final String YE_INSTANT_EDITOR_LABEL_EDITABLE
protected static final String YE_INSTANT_EDITOR_LABEL_READONLY
protected static final String YE_INSTANT_EDITOR_EDITOR_CONTAINER
protected static final String YE_INSTANT_EDITOR_BUTTONS_CONTAINER
protected static final String YE_INSTANT_EDITOR_BUTTON_CANCEL
protected static final String YE_INSTANT_EDITOR_BUTTON_CONFIRM
protected static final String YE_INSTANT_EDITOR_ATTRIBUTE_LABEL_CONTAINER
protected static final String YE_INSTANT_EDITOR_ATTRIBUTE_LABEL
protected static final String YE_INSTANT_EDITOR_ATTRIBUTE_LABEL_MANDATORY
protected static final String ICONSCLASS_CANCEL_BUTTON
protected static final String ICONSCLASS_CONFIRM_BUTTON
public void render(org.zkoss.zk.ui.Component parent, EditorContext<Object> context, EditorListener<Object> listener)
CockpitEditorRenderer
Component
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 Editor createNestedEditor(EditorContext<Object> context, EditorListener<Object> listener)
@Deprecated protected String getEditorTypeFromContext(EditorContext<Object> context)
protected EditorListener<Object> createChangedValueSuppressingEditorListenerProxy(EditorListener<Object> listener)
protected CockpitEditorRenderer<Object> resolveLabelRenderer(EditorContext<Object> context)
@Deprecated protected Optional<InstantEditorLabelProvider> resolveLabelProvider(String editorType, String labelProviderBeanId)
@Deprecated protected IllegalStateException createNoLabelProviderFoundException(Editor editor, String labelProviderBeanId)
protected org.zkoss.zk.ui.HtmlBasedComponent createValueLabel(EditorContext<Object> context, EditorListener<Object> listener, CockpitEditorRenderer<Object> labelRenderer)
protected void updateValueLabel(org.zkoss.zk.ui.HtmlBasedComponent labelContainer, EditorContext<Object> context, EditorListener<Object> listener, Object value, CockpitEditorRenderer<Object> labelRenderer)
@Deprecated protected void updateValueLabel(org.zkoss.zul.Label label, Editor editor, InstantEditorLabelProvider labelProvider)
protected org.zkoss.zul.Div createEditorContainer(Editor editor, EditorListener<Object> listener, org.zkoss.zk.ui.HtmlBasedComponent label, Executable labelUpdate)
@Deprecated protected org.zkoss.zul.Div createEditorContainer(Editor editor, EditorListener<Object> listener, org.zkoss.zul.Label label, InstantEditorLabelProvider labelProvider)
protected org.zkoss.zul.Div createEditorButtons(org.zkoss.zul.Div editorContainer, Editor editor, EditorListener<Object> listener, org.zkoss.zk.ui.HtmlBasedComponent label, Executable labelUpdate)
@Deprecated protected org.zkoss.zul.Div createEditorButtons(org.zkoss.zul.Div editorContainer, Editor editor, EditorListener<Object> listener, org.zkoss.zul.Label label, InstantEditorLabelProvider labelProvider)
protected org.zkoss.zul.Button createButton(String sclass, String iconSclass, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.MouseEvent> onClickListener)
protected org.zkoss.zul.Div createAttributeLabel(EditorContext<?> context)
@Deprecated protected List<InstantEditorLabelProvider> getInstantEditorLabelProviders()
@Deprecated public void setInstantEditorLabelProviders(List<InstantEditorLabelProvider> instantEditorLabelProviders)
Copyright © 2018. All rights reserved.