public abstract class AbstractDualListboxEditor<K> extends Object
DefaultReferenceDualListboxEditor
for editor with search type, DefaultSimpleDualListboxEditor for columns| Modifier and Type | Field and Description |
|---|---|
protected List<K> |
assignedValuesList
List of assigned values, that list should be taken as a result returned by editor
|
protected Listbox |
collectionAllItems
List of presented available values used for rendering listbox, presented on the left side of component
|
protected Listbox |
collectionAssignedItems
List of presented assigned values, presented on the right side of component
|
protected SearchTextboxDiv |
inputComponentDiv
Search field presented in editor.
|
protected boolean |
singleSelector
flag for resolving number of assigned values true - there is only one possible result on assigned list, new
assignment overwrites the old one false - new assignment is added to the list
|
| Constructor and Description |
|---|
AbstractDualListboxEditor(List<K> assignedValuesList) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToAssignedValuesList(Object obj,
Listitem item)
Method for assigning available values to assigned values list.
|
protected Image |
createAssignBtn()
Method creates the button for assigning values
|
HtmlBasedComponent |
createComponentView(Map<String,? extends Object> parameters) |
protected Table |
createInternalComponentView()
Method for main presentation view
|
protected HtmlBasedComponent |
fillLeftBottomCell()
Creates left bottom area of the wizard.
|
protected HtmlBasedComponent |
fillLeftTopCell()
Area used for presenting search box
|
protected HtmlBasedComponent |
fillMidBottomCell()
Used for presenting assign button
|
protected HtmlBasedComponent |
fillMidTopCell()
Originally it's just an empty div,but it might be override if you want to present something in that area.
|
protected HtmlBasedComponent |
fillRightBottomCell()
Creates right bottom area of the wizard.
|
protected HtmlBasedComponent |
fillRightTopCell()
Originally that area is empty,but might be usd for extending editor usability.
|
protected ListitemRenderer |
getAssignedCollectionItemListRenderer() |
protected Label |
getAssignedValuesLabel() |
List<K> |
getAssignedValuesList() |
protected ListitemRenderer |
getAvailableCollectionItemListRenderer() |
protected Label |
getAvailableValuesLabel() |
abstract EventListener |
getOnUserSearchListener()
listener for search, based on the specific implementation
|
protected EventListener |
getRemoveButtonListener()
Listener for removal action for each element at the assigned list
|
protected abstract String |
getSearchInfoBox()
Gets proper label for being presented in search textbox input component
|
protected TypeService |
getTypeService() |
protected boolean |
isSingleSelector() |
protected abstract void |
parseParams(Map<String,? extends Object> parameters)
prepares input parameters
|
protected void |
prepareCollectionAllItems()
Method prepares the list of available values and applies basic settings
|
protected void |
prepareCollectionAssignedItems()
Method prepares the list of assigned values and applies basic settings
|
protected void |
setResultListData(Listbox collectionItems,
List<K> resultList)
Method sets new result list to the proper listbox list.
|
void |
setSingleSelector(boolean singleSelector) |
protected abstract void |
updateCollectionAllItems()
updates collection based on proper implementation
|
protected Listbox collectionAssignedItems
protected List<K> assignedValuesList
protected Listbox collectionAllItems
protected boolean singleSelector
protected SearchTextboxDiv inputComponentDiv
protected abstract String getSearchInfoBox()
protected abstract void updateCollectionAllItems()
public abstract EventListener getOnUserSearchListener()
protected abstract void parseParams(Map<String,? extends Object> parameters)
public HtmlBasedComponent createComponentView(Map<String,? extends Object> parameters)
protected Table createInternalComponentView()
protected HtmlBasedComponent fillLeftBottomCell()
protected HtmlBasedComponent fillRightBottomCell()
protected HtmlBasedComponent fillMidTopCell()
protected HtmlBasedComponent fillMidBottomCell()
protected HtmlBasedComponent fillRightTopCell()
protected HtmlBasedComponent fillLeftTopCell()
protected void setResultListData(Listbox collectionItems,
List<K> resultList)
protected Image createAssignBtn()
protected void addToAssignedValuesList(Object obj, Listitem item)
protected void prepareCollectionAssignedItems()
protected void prepareCollectionAllItems()
protected EventListener getRemoveButtonListener()
protected ListitemRenderer getAvailableCollectionItemListRenderer()
protected ListitemRenderer getAssignedCollectionItemListRenderer()
protected Label getAvailableValuesLabel()
protected Label getAssignedValuesLabel()
protected TypeService getTypeService()
protected boolean isSingleSelector()
public void setSingleSelector(boolean singleSelector)
Copyright © 2017 SAP SE. All Rights Reserved.