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
public class ContextAreaReferenceCollectionUIEditor extends DefaultReferenceCollectionUIEditor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classContextAreaReferenceCollectionUIEditor.NewReferenceItemActionEventListener-
Nested classes/interfaces inherited from class de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
AbstractUIEditor.CancelButtonContainer, AbstractUIEditor.CancelListener, AbstractUIEditor.ErrorDiv
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringcomponentShortLabelstatic java.lang.StringMAX_ENTRIESprotected static java.lang.StringMAX_ROWS_IN_LISTprotected static java.lang.StringMAX_VISIBLE_ROWSprotected static java.lang.StringMIN_VISIBLE_ROWSstatic java.lang.StringNAMEprotected java.lang.StringpropertyInfoprotected TypedObjectrootObjectThe object to which we are collecting references.protected org.zkoss.zul.ToolbarbuttonshowMoreButton-
Fields 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_PARAM
-
Fields inherited from interface de.hybris.platform.cockpit.model.editor.ReferenceUIEditor
ALLOW_CREATE_PARAM_KEY
-
Fields inherited from interface de.hybris.platform.cockpit.model.editor.UIEditor
INITIAL_EDIT_STRING
-
-
Constructor Summary
Constructors Constructor Description ContextAreaReferenceCollectionUIEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.zkoss.zk.ui.HtmlBasedComponentcreateViewComponent(java.lang.Object initialValue, java.util.Map<java.lang.String,? extends java.lang.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 java.lang.StringgetCollapsedCombinedLabel(java.util.Collection items, int maxEntries)protected intgetMaxRowsInList()protected intgetMaxVisibleRowsNumber()protected intgetMinVisibleRowsNumber()protected java.lang.StringgetSingleLabel(java.lang.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 it-
Methods inherited from class de.hybris.platform.cockpit.model.referenceeditor.impl.DefaultReferenceCollectionUIEditor
getModel, getRootSearchType, getRootType, getValue, isInline, setRootSearchType, setRootType, setValue
-
Methods inherited from class de.hybris.platform.cockpit.model.referenceeditor.impl.AbstractReferenceUIEditor
findMaxAutocompleteSearchResults, getBooleanParameter, getEditorType, isAllowCreate, setAllowCreate
-
Methods 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, setOptional
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.cockpit.model.editor.UIEditor
isEditable, isOptional, setEditable, setOptional
-
-
-
-
Field Detail
-
MAX_ENTRIES
public static final java.lang.String MAX_ENTRIES
- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
componentShortLabel
protected java.lang.String componentShortLabel
-
MIN_VISIBLE_ROWS
protected static final java.lang.String MIN_VISIBLE_ROWS
- See Also:
- Constant Field Values
-
MAX_VISIBLE_ROWS
protected static final java.lang.String MAX_VISIBLE_ROWS
- See Also:
- Constant Field Values
-
MAX_ROWS_IN_LIST
protected static final java.lang.String MAX_ROWS_IN_LIST
- See Also:
- Constant Field Values
-
showMoreButton
protected org.zkoss.zul.Toolbarbutton showMoreButton
-
rootObject
protected TypedObject rootObject
The object to which we are collecting references.
-
propertyInfo
protected java.lang.String propertyInfo
-
-
Method Detail
-
getSingleLabel
protected java.lang.String getSingleLabel(java.lang.Object value)
-
getCollapsedCombinedLabel
protected java.lang.String getCollapsedCombinedLabel(java.util.Collection items, int maxEntries)
-
createViewComponent
public org.zkoss.zk.ui.HtmlBasedComponent createViewComponent(java.lang.Object initialValue, java.util.Map<java.lang.String,? extends java.lang.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()
-
-