public class LocalizedEditor extends AbstractLocalizedEditor
| Modifier and Type | Field and Description |
|---|---|
protected org.zkoss.zul.Label |
defaultLocaleLabel |
protected org.zkoss.zul.Div |
dynamicContent |
static String |
EDITOR_PARAM_ATTRIBUTE_DESCRIPTION |
protected boolean |
expanded |
protected String |
expandedPropertyKey |
protected org.zkoss.zul.Div |
fixedContent |
static String |
ID |
protected org.zkoss.zul.Div |
wrapperContainer |
static String |
Y_ICON |
static String |
YW_DYNAMIC_CONTENT |
static String |
YW_LOCEDITOR_DISABLED |
LOCALIZED_EDITOR_LOCALE, SCLASS_CELL_LABEL, SCLASS_MANDATORY_ATTRIBUTE_LABEL, YW_LOCEDITOR_CAPTIONHEADER_LABEL_TOOLTIP, ON_ADD_EVENT, ON_DELETE_EVENTINITIAL_EDIT_STRING| Constructor and Description |
|---|
LocalizedEditor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addValidationChangeListener(org.zkoss.zk.ui.Component parent,
EditorContext editorContext) |
protected void |
applyRowsValidation(EditorContext editorContext) |
protected void |
applyValidationCss(org.zkoss.zul.Div wrapperCaption) |
protected EditorListener<Object> |
decorateEditorListener(Locale locale,
Map<Locale,Object> values,
EditorListener editorListener) |
AttributeDescriptionIconRenderer |
getAttributeDescriptionIconRenderer() |
protected String |
getEditorParamAttributeDescription(EditorContext editorContext) |
ValidationRenderer |
getValidationRenderer() |
protected boolean |
isExpanded() |
void |
render(org.zkoss.zk.ui.Component parent,
EditorContext editorContext,
EditorListener editorListener)
Creates a new editor component and attaches it to the specified
Component component. |
protected void |
renderLabels(org.zkoss.zul.Div content,
org.zkoss.zul.Div row,
org.zkoss.zul.Label label,
Locale locale) |
void |
setAttributeDescriptionIconRenderer(AttributeDescriptionIconRenderer attributeDescriptionIconRenderer) |
void |
setValidationRenderer(ValidationRenderer validationRenderer) |
createEditorLabel, getActiveLocales, getCockpitLocaleService, getCockpitUserService, getComponentDefinitionService, getEditorRegistry, getLabelService, getWidgetInstanceManager, prepareSubEditor, prepareSubEditor, setCockpitLocaleService, setCockpitUserService, setComponentDefinitionService, setEditorRegistry, setLabelService, setWidgetInstanceManagerextractEmbeddedEditor, extractEmbeddedType, findAncestorEditor, findEmbeddedEditors, getInitialEditString, getL10nDecoratorpublic static final String ID
public static final String EDITOR_PARAM_ATTRIBUTE_DESCRIPTION
public static final String YW_DYNAMIC_CONTENT
public static final String Y_ICON
public static final String YW_LOCEDITOR_DISABLED
protected boolean expanded
protected String expandedPropertyKey
protected org.zkoss.zul.Div dynamicContent
protected org.zkoss.zul.Div wrapperContainer
protected org.zkoss.zul.Label defaultLocaleLabel
protected org.zkoss.zul.Div fixedContent
public void render(org.zkoss.zk.ui.Component parent,
EditorContext editorContext,
EditorListener editorListener)
CockpitEditorRendererComponent component.parent - parent component the editor should be attached toeditorContext - the context for the editor creationeditorListener - the listener to notify the rest of the world about value changes and other eventsprotected void addValidationChangeListener(org.zkoss.zk.ui.Component parent,
EditorContext editorContext)
protected void applyRowsValidation(EditorContext editorContext)
protected void applyValidationCss(org.zkoss.zul.Div wrapperCaption)
protected EditorListener<Object> decorateEditorListener(Locale locale, Map<Locale,Object> values, EditorListener editorListener)
protected void renderLabels(org.zkoss.zul.Div content,
org.zkoss.zul.Div row,
org.zkoss.zul.Label label,
Locale locale)
protected String getEditorParamAttributeDescription(EditorContext editorContext)
public ValidationRenderer getValidationRenderer()
public void setValidationRenderer(ValidationRenderer validationRenderer)
public AttributeDescriptionIconRenderer getAttributeDescriptionIconRenderer()
public void setAttributeDescriptionIconRenderer(AttributeDescriptionIconRenderer attributeDescriptionIconRenderer)
protected boolean isExpanded()
Copyright © 2018. All rights reserved.