public class DefaultEnumEditor extends AbstractCockpitEditorRenderer<Object>
| Modifier and Type | Field and Description |
|---|---|
protected EnumValueResolver |
enumValueResolver |
protected LabelService |
labelService |
protected static Pattern |
PATTERN_ENUM |
HEADER_LABEL_TOOLTIP, ON_ADD_EVENT, ON_DELETE_EVENTINITIAL_EDIT_STRING| Constructor and Description |
|---|
DefaultEnumEditor() |
| Modifier and Type | Method and Description |
|---|---|
protected List<Object> |
getAllValues(String valueType,
Object initialValue) |
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. |
extractEmbeddedEditor, extractEmbeddedType, findAncestorEditor, findEmbeddedEditors, getInitialEditString, getL10nDecoratorprotected static final Pattern PATTERN_ENUM
protected transient EnumValueResolver enumValueResolver
protected transient LabelService labelService
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 eventsCopyright © 2018. All rights reserved.