Class DefaultReferenceDualListboxEditor
java.lang.Object
de.hybris.platform.cockpit.components.duallistbox.AbstractDualListboxEditor<TypedObject>
de.hybris.platform.cockpit.components.duallistbox.impl.DefaultReferenceDualListboxEditor
Duallistbox with autocomplete search component for references
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Comparatorprotected DefaultSimpleReferenceSelectorModelModel for getting autocomplete resultsFields inherited from class de.hybris.platform.cockpit.components.duallistbox.AbstractDualListboxEditor
assignedValuesList, collectionAllItems, collectionAssignedItems, inputComponentDiv, singleSelector -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.zkoss.zul.Labelprotected org.zkoss.zul.Labelprotected Comparatorprotected intorg.zkoss.zk.ui.event.EventListenerlistener for search, based on the specific implementationprotected ObjectTypeprotected ObjectTypeprotected StringGets proper label for being presented in search textbox input componentprotected voidparseParams(Map<String, ? extends Object> parameters) prepares input parametersprotected List<TypedObject>removeDuplicatedItems(List<TypedObject> searchResult) Method for removing assigned values from the list of available valuesvoidsetComparator(Comparator comparator) voidsetMaxRows(int maxRows) protected voidsetRootSearchType(ObjectType rootSearchType) protected voidsetRootType(ObjectType rootType) protected voidupdates collection based on proper implementationMethods inherited from class de.hybris.platform.cockpit.components.duallistbox.AbstractDualListboxEditor
addToAssignedValuesList, createAssignBtn, createComponentView, createInternalComponentView, fillLeftBottomCell, fillLeftTopCell, fillMidBottomCell, fillMidTopCell, fillRightBottomCell, fillRightTopCell, getAssignedCollectionItemListRenderer, getAssignedValuesList, getAvailableCollectionItemListRenderer, getRemoveButtonListener, getTypeService, isSingleSelector, prepareCollectionAllItems, prepareCollectionAssignedItems, setResultListData, setSingleSelector
-
Field Details
-
comparator
-
model
Model for getting autocomplete results
-
-
Constructor Details
-
DefaultReferenceDualListboxEditor
-
-
Method Details
-
getOnUserSearchListener
public org.zkoss.zk.ui.event.EventListener getOnUserSearchListener()Description copied from class:AbstractDualListboxEditorlistener for search, based on the specific implementation- Specified by:
getOnUserSearchListenerin classAbstractDualListboxEditor<TypedObject>
-
parseParams
prepares input parameters- Specified by:
parseParamsin classAbstractDualListboxEditor<TypedObject>
-
removeDuplicatedItems
Method for removing assigned values from the list of available values -
updateCollectionAllItems
protected void updateCollectionAllItems()Description copied from class:AbstractDualListboxEditorupdates collection based on proper implementation- Specified by:
updateCollectionAllItemsin classAbstractDualListboxEditor<TypedObject>
-
getSearchInfoBox
Description copied from class:AbstractDualListboxEditorGets proper label for being presented in search textbox input component- Specified by:
getSearchInfoBoxin classAbstractDualListboxEditor<TypedObject>
-
getAvailableValuesLabel
protected org.zkoss.zul.Label getAvailableValuesLabel()- Overrides:
getAvailableValuesLabelin classAbstractDualListboxEditor<TypedObject>
-
getAssignedValuesLabel
protected org.zkoss.zul.Label getAssignedValuesLabel()- Overrides:
getAssignedValuesLabelin classAbstractDualListboxEditor<TypedObject>
-
getMaxRows
protected int getMaxRows() -
setMaxRows
public void setMaxRows(int maxRows) -
getRootSearchType
-
setRootSearchType
-
getRootType
-
setRootType
-
getComparator
-
setComparator
-