Class DefaultReferenceDualListboxEditor
- java.lang.Object
-
- de.hybris.platform.cockpit.components.duallistbox.AbstractDualListboxEditor<TypedObject>
-
- de.hybris.platform.cockpit.components.duallistbox.impl.DefaultReferenceDualListboxEditor
-
public class DefaultReferenceDualListboxEditor extends AbstractDualListboxEditor<TypedObject>
Duallistbox with autocomplete search component for references
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Comparator
comparator
protected DefaultSimpleReferenceSelectorModel
model
Model for getting autocomplete results-
Fields inherited from class de.hybris.platform.cockpit.components.duallistbox.AbstractDualListboxEditor
assignedValuesList, collectionAllItems, collectionAssignedItems, inputComponentDiv, singleSelector
-
-
Constructor Summary
Constructors Constructor Description DefaultReferenceDualListboxEditor(java.util.List<TypedObject> assignedValuesList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.zkoss.zul.Label
getAssignedValuesLabel()
protected org.zkoss.zul.Label
getAvailableValuesLabel()
protected java.util.Comparator
getComparator()
protected int
getMaxRows()
org.zkoss.zk.ui.event.EventListener
getOnUserSearchListener()
listener for search, based on the specific implementationprotected ObjectType
getRootSearchType()
protected ObjectType
getRootType()
protected java.lang.String
getSearchInfoBox()
Gets proper label for being presented in search textbox input componentprotected void
parseParams(java.util.Map<java.lang.String,? extends java.lang.Object> parameters)
prepares input parametersprotected java.util.List<TypedObject>
removeDuplicatedItems(java.util.List<TypedObject> searchResult)
Method for removing assigned values from the list of available valuesvoid
setComparator(java.util.Comparator comparator)
void
setMaxRows(int maxRows)
protected void
setRootSearchType(ObjectType rootSearchType)
protected void
setRootType(ObjectType rootType)
protected void
updateCollectionAllItems()
updates collection based on proper implementation-
Methods 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 Detail
-
comparator
protected java.util.Comparator comparator
-
model
protected DefaultSimpleReferenceSelectorModel model
Model for getting autocomplete results
-
-
Constructor Detail
-
DefaultReferenceDualListboxEditor
public DefaultReferenceDualListboxEditor(java.util.List<TypedObject> assignedValuesList)
-
-
Method Detail
-
getOnUserSearchListener
public org.zkoss.zk.ui.event.EventListener getOnUserSearchListener()
Description copied from class:AbstractDualListboxEditor
listener for search, based on the specific implementation- Specified by:
getOnUserSearchListener
in classAbstractDualListboxEditor<TypedObject>
-
parseParams
protected void parseParams(java.util.Map<java.lang.String,? extends java.lang.Object> parameters)
prepares input parameters- Specified by:
parseParams
in classAbstractDualListboxEditor<TypedObject>
-
removeDuplicatedItems
protected java.util.List<TypedObject> removeDuplicatedItems(java.util.List<TypedObject> searchResult)
Method for removing assigned values from the list of available values
-
updateCollectionAllItems
protected void updateCollectionAllItems()
Description copied from class:AbstractDualListboxEditor
updates collection based on proper implementation- Specified by:
updateCollectionAllItems
in classAbstractDualListboxEditor<TypedObject>
-
getSearchInfoBox
protected java.lang.String getSearchInfoBox()
Description copied from class:AbstractDualListboxEditor
Gets proper label for being presented in search textbox input component- Specified by:
getSearchInfoBox
in classAbstractDualListboxEditor<TypedObject>
-
getAvailableValuesLabel
protected org.zkoss.zul.Label getAvailableValuesLabel()
- Overrides:
getAvailableValuesLabel
in classAbstractDualListboxEditor<TypedObject>
-
getAssignedValuesLabel
protected org.zkoss.zul.Label getAssignedValuesLabel()
- Overrides:
getAssignedValuesLabel
in classAbstractDualListboxEditor<TypedObject>
-
getMaxRows
protected int getMaxRows()
-
setMaxRows
public void setMaxRows(int maxRows)
-
getRootSearchType
protected ObjectType getRootSearchType()
-
setRootSearchType
protected void setRootSearchType(ObjectType rootSearchType)
-
getRootType
protected ObjectType getRootType()
-
setRootType
protected void setRootType(ObjectType rootType)
-
getComparator
protected java.util.Comparator getComparator()
-
setComparator
public void setComparator(java.util.Comparator comparator)
-
-