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 voiddoSearchWithSorting(java.lang.String searchTerm)protected org.zkoss.zul.LabelgetAssignedValuesLabel()protected java.util.List<T>getAvailableValues()protected org.zkoss.zul.LabelgetAvailableValuesLabel()protected FilterColumnNameResolvergetFilterStringResolver()org.zkoss.zk.ui.event.EventListenergetOnUserSearchListener()listener for search, based on the specific implementationprotected java.lang.StringgetSearchInfoBox()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 representationvoidsetAvailableValues(java.util.List<T> availableValues)protected voidupdateCollectionAllItems()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:AbstractDualListboxEditorlistener for search, based on the specific implementation- Specified by:
getOnUserSearchListenerin classAbstractDualListboxEditor
-
updateCollectionAllItems
protected void updateCollectionAllItems()
Description copied from class:AbstractDualListboxEditorupdates collection based on proper implementation- Specified by:
updateCollectionAllItemsin 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:AbstractDualListboxEditorGets proper label for being presented in search textbox input component- Specified by:
getSearchInfoBoxin 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:
getAvailableValuesLabelin classAbstractDualListboxEditor
-
getAssignedValuesLabel
protected org.zkoss.zul.Label getAssignedValuesLabel()
- Overrides:
getAssignedValuesLabelin classAbstractDualListboxEditor
-
getFilterStringResolver
protected FilterColumnNameResolver getFilterStringResolver()
-
-