Class DefaultSimpleDualListboxEditor<T>
- java.lang.Object
-
- de.hybris.platform.cockpit.components.duallistbox.AbstractDualListboxEditor
-
- de.hybris.platform.cockpit.components.duallistbox.impl.DefaultSimpleDualListboxEditor<T>
-
- Direct Known Subclasses:
CockpitUsersDualListboxEditor
,ColumnDescriptorDualListboxEditor
public abstract class DefaultSimpleDualListboxEditor<T> extends AbstractDualListboxEditor
Simple dualbox with fixed available values list for columns
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.cockpit.components.duallistbox.AbstractDualListboxEditor
assignedValuesList, collectionAllItems, collectionAssignedItems, inputComponentDiv, singleSelector
-
-
Constructor Summary
Constructors Constructor Description DefaultSimpleDualListboxEditor(java.util.List<T> assignedValuesList, java.util.List<T> availableValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doSearchWithSorting(java.lang.String searchTerm)
protected org.zkoss.zul.Label
getAssignedValuesLabel()
protected java.util.List<T>
getAvailableValues()
protected org.zkoss.zul.Label
getAvailableValuesLabel()
protected FilterColumnNameResolver
getFilterStringResolver()
org.zkoss.zk.ui.event.EventListener
getOnUserSearchListener()
listener for search, based on the specific implementationprotected java.lang.String
getSearchInfoBox()
Gets proper label for being presented in search textbox input componentjava.util.List<T>
removeDuplicatedColumns(java.util.List<T> searchResult, java.util.List<T> objectsToRemove)
Ensures no duplicated entries on the listboxprotected java.util.List<T>
search(java.lang.String searchTerm)
Default implementation for simple searching - for opbjects should be override for proper string representationvoid
setAvailableValues(java.util.List<T> availableValues)
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, parseParams, prepareCollectionAllItems, prepareCollectionAssignedItems, setResultListData, setSingleSelector
-
-
-
-
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
-
updateCollectionAllItems
protected void updateCollectionAllItems()
Description copied from class:AbstractDualListboxEditor
updates collection based on proper implementation- Specified by:
updateCollectionAllItems
in classAbstractDualListboxEditor
-
doSearchWithSorting
protected void doSearchWithSorting(java.lang.String searchTerm)
-
getAvailableValues
protected java.util.List<T> getAvailableValues()
-
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
-
setAvailableValues
public void setAvailableValues(java.util.List<T> availableValues)
- Parameters:
availableValues
- the availableValues to set
-
search
protected java.util.List<T> search(java.lang.String searchTerm)
Default implementation for simple searching - for opbjects should be override for proper string representation
-
removeDuplicatedColumns
public java.util.List<T> removeDuplicatedColumns(java.util.List<T> searchResult, java.util.List<T> objectsToRemove)
Ensures no duplicated entries on the listbox
-
getAvailableValuesLabel
protected org.zkoss.zul.Label getAvailableValuesLabel()
- Overrides:
getAvailableValuesLabel
in classAbstractDualListboxEditor
-
getAssignedValuesLabel
protected org.zkoss.zul.Label getAssignedValuesLabel()
- Overrides:
getAssignedValuesLabel
in classAbstractDualListboxEditor
-
getFilterStringResolver
protected FilterColumnNameResolver getFilterStringResolver()
-
-