Class ContextAreaReferenceCollectionUIEditor
java.lang.Object
de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
de.hybris.platform.cockpit.model.referenceeditor.impl.AbstractReferenceUIEditor
de.hybris.platform.cockpit.model.referenceeditor.impl.DefaultReferenceCollectionUIEditor
de.hybris.platform.cockpit.model.referenceeditor.impl.ContextAreaReferenceCollectionUIEditor
- All Implemented Interfaces:
ReferenceUIEditor,UIEditor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassNested classes/interfaces inherited from class de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
AbstractUIEditor.CancelButtonContainer, AbstractUIEditor.CancelListener, AbstractUIEditor.ErrorDiv -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringstatic final Stringprotected static final Stringprotected static final Stringprotected static final Stringstatic final Stringprotected Stringprotected TypedObjectThe object to which we are collecting references.protected org.zkoss.zul.ToolbarbuttonFields inherited from class de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
ATTRIBUTE_QUALIFIER_PARAM, CANCEL_BTN, EVENT_SOURCE, inEditMode, initialEditValue, initialInputString, PROPERTY_DESCRIPTOR_PARAM, SEARCH_MODE_PARAMFields inherited from interface de.hybris.platform.cockpit.model.editor.ReferenceUIEditor
ALLOW_CREATE_PARAM_KEYFields inherited from interface de.hybris.platform.cockpit.model.editor.UIEditor
INITIAL_EDIT_STRING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.zkoss.zk.ui.HtmlBasedComponentcreateViewComponent(Object initialValue, Map<String, ? extends Object> parameters, EditorListener listener) Creates a new editor component and attaches it to the specifiedPagepage.voidcreateViewElement(org.zkoss.zul.Div div) Renders a Listbox inside the div with referenced elements.protected StringgetCollapsedCombinedLabel(Collection items, int maxEntries) protected intprotected intprotected intprotected StringgetSingleLabel(Object value) voidsetFocus(org.zkoss.zk.ui.HtmlBasedComponent rootEditorComponent, boolean selectAll) Sets the focus on the given input component which can be the rootEditorComponent or a child of itMethods inherited from class de.hybris.platform.cockpit.model.referenceeditor.impl.DefaultReferenceCollectionUIEditor
getModel, getRootSearchType, getRootType, getValue, isInline, setRootSearchType, setRootType, setValueMethods inherited from class de.hybris.platform.cockpit.model.referenceeditor.impl.AbstractReferenceUIEditor
findMaxAutocompleteSearchResults, getBooleanParameter, getEditorType, isAllowCreate, setAllowCreateMethods inherited from class de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
applyReferenceRelatedAttributes, createEditor, createEditor, createEditor, createEditor, filterValues, fireValueChanged, getRootSearchType, getUIEditor, isEditable, isEditable, isOptional, isSearchMode, parseInitialInputString, parseTemplateCodes, persistValues, persistValues, setEditable, setOptionalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.cockpit.model.editor.UIEditor
isEditable, isOptional, setEditable, setOptional
-
Field Details
-
MAX_ENTRIES
- See Also:
-
NAME
- See Also:
-
componentShortLabel
-
MIN_VISIBLE_ROWS
- See Also:
-
MAX_VISIBLE_ROWS
- See Also:
-
MAX_ROWS_IN_LIST
- See Also:
-
showMoreButton
protected org.zkoss.zul.Toolbarbutton showMoreButton -
rootObject
The object to which we are collecting references. -
propertyInfo
-
-
Constructor Details
-
ContextAreaReferenceCollectionUIEditor
public ContextAreaReferenceCollectionUIEditor()
-
-
Method Details
-
getSingleLabel
-
getCollapsedCombinedLabel
-
createViewComponent
public org.zkoss.zk.ui.HtmlBasedComponent createViewComponent(Object initialValue, Map<String, ? extends Object> parameters, EditorListener listener) Description copied from interface:UIEditorCreates a new editor component and attaches it to the specifiedPagepage.- Specified by:
createViewComponentin interfaceUIEditor- Overrides:
createViewComponentin classDefaultReferenceCollectionUIEditor- Parameters:
initialValue- editor's initial valueparameters- parameters passed via configuration for particular editorlistener- theEditorListenerthat will receive events when the editor's value is changed- Returns:
- the editor component
-
createViewElement
public void createViewElement(org.zkoss.zul.Div div) Renders a Listbox inside the div with referenced elements.- Parameters:
div- the parent div inside which listbox will be rendered
-
setFocus
public void setFocus(org.zkoss.zk.ui.HtmlBasedComponent rootEditorComponent, boolean selectAll) Description copied from interface:UIEditorSets the focus on the given input component which can be the rootEditorComponent or a child of it- Specified by:
setFocusin interfaceUIEditor- Overrides:
setFocusin classDefaultReferenceCollectionUIEditor- Parameters:
rootEditorComponent- the rootEditorComponent which is returned on method createViewComponentselectAll- if true, select the whole input field after focus. It is not guaranteed that the editor supports selection.
-
getMinVisibleRowsNumber
protected int getMinVisibleRowsNumber() -
getMaxVisibleRowsNumber
protected int getMaxVisibleRowsNumber() -
getMaxRowsInList
protected int getMaxRowsInList()
-