public class ReferenceSelector extends AbstractReferenceSelector implements DesktopRemovalAwareComponent
| Modifier and Type | Class and Description |
|---|---|
protected class |
ReferenceSelector.ReferenceSelectorModalDialog
Represents reference selector modal dialog - container for advanced search component
|
listeners| Constructor and Description |
|---|
ReferenceSelector() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEventSelectorListener(String event,
EventListener listener) |
protected ListitemRenderer |
autoCompleteListItemRenderer() |
protected void |
clearAutoCompleteInputText() |
void |
closeComponentPopup() |
void |
closeReferenceSelectorModalDialog() |
protected String |
computeLabel() |
protected Tr |
createLabelRepresentation() |
void |
desktopRemoved(Desktop desktop) |
void |
detach() |
void |
doItemActivated() |
protected void |
focusElement(HtmlBasedComponent focusableComponent) |
int |
getDefaultAutocompleteTimeout() |
ReferenceSelectorModel |
getModel() |
Map<String,? extends Object> |
getParameters() |
boolean |
initialize()
Initializes this view component.
|
Boolean |
isAllowcreate()
Gets allowcreate flag
|
boolean |
isDisabled() |
protected boolean |
isSelected(List<? extends Object> elements,
Object candidate) |
protected UIAdvancedSearchView |
loadAdvancedSearchView() |
protected UIListView |
loadListView() |
void |
loadViewComponents() |
protected ListitemRenderer |
notConfirmedListItemrenderer() |
protected void |
performOnOkAction() |
void |
reset() |
protected void |
selectOrDeselectAutoCompleteItems(int index) |
protected void |
selectOrDeselectItems(int index) |
protected void |
selectOrDeselectTemporaryItems(int index) |
void |
setAdvancedSearchComponent(UIAdvancedSearchView searchComponent) |
void |
setAllowcreate(Boolean allowcreate)
Sets allowcreate flag
|
void |
setCreateContext(CreateContext createContext) |
void |
setDisabled(boolean disabled) |
void |
setFocus() |
void |
setFocus(boolean focus) |
void |
setInitString(String initStr) |
void |
setModel(ReferenceSelectorModel model) |
void |
setParameters(Map<String,? extends Object> parameters) |
void |
setParent(Component parent) |
void |
showAutoCompletePopup() |
void |
showComponentPopup() |
protected void |
showReferenceSelectorModalDialog() |
protected void |
uncheckAllListItem(Listbox listbox) |
boolean |
update()
Updates this view component completely.
|
protected void |
updateAutoCompleteItemList() |
void |
updateAutoCompleteResult() |
void |
updateItems() |
void |
updateItemsNotConfirmed() |
void |
updateMode() |
protected void |
updateNotConfirmedItemList() |
void |
updateRootSearchTypeChanged() |
void |
updateRootTypeChanged() |
void |
updateSearchResult() |
protected void |
updateTemporaryItemList() |
void |
updateTemporaryItems() |
protected Table |
wrappIntoTable(Component firstCellContent,
Component secondCellConent,
String firstCellStyle,
String secondCellStyle) |
addReferenceSelectorListener, fireAbortAndCloseAdvancedMode, fireAddItem, fireAddItems, fireAddTemporaryItem, fireAddTemporaryItems, fireAddToNotConfirmedItems, fireAutoCompleteSearch, fireCancel, fireChangeMode, fireClearTemporaryItems, fireConfirmAndCloseAdvancedMode, fireDeselectItem, fireDeselectTemporaryItem, fireDeselectTemporaryItems, fireEnterPressed, fireMoveItem, fireMoveTemporaryItem, fireOpenReferencedItem, fireRemoveItem, fireRemoveItems, fireRemoveTemporaryItem, fireRemoveTemporaryItem, fireSaveActualItems, fireSearch, fireSelectItem, fireSelectItems, fireSelectorAdvancedMode, fireSelectorNormalMode, fireSelectTemporaryItem, fireSelectTemporaryItems, fireShowItemEditorPopup, fireShowItemEditorPopup, removeReferenceSelectorListenerprotected static final String CENTER
protected static final String _100PERCENT
protected static final String _99PERCENT
protected static final String LEFT_BRACKET
protected static final String RIGHT_BRACKET
protected static final String ELLIPSIS
protected static final String VERTICAL
protected static final String COMMA
protected static final int MAX_ROWS
protected static final String REFERENCE_EDITOR_BTN_SCLASS
protected static final String LIST_VIEW_SELECTOR_SCLASS
protected static final String MODAL_DIALOG_SCLASS
protected static final int ENTER_CHAR
protected static final int ESC_CHAR
protected static final String CLOSE_BTN_IMG
protected static final String EMPTY_MESSAGE
protected static final String WIDTH
protected static final String HEIGHT
protected static final String ADV_QUERY_BTN_IMG
protected transient Bandbox component
protected transient Table labelContainer
protected transient Bandpopup popupContainer
protected transient Vbox container
protected transient Listbox notConfirmedItems
protected transient Listbox autoCompleteList
protected transient Listbox temporaryItemsList
protected transient Bandbox autoCompleteInputField
protected transient Bandpopup autoCompletePopup
protected transient Toolbarbutton addButton
protected transient UIListView listView
protected transient UIAdvancedSearchView advancedSearchComponent
protected transient ComponentController listViewController
protected transient ComponentController advancedSearchController
protected static final String ON_CLICK_EVENT
protected static final String REFERENECE_SELECTOR_SCLASS
protected static final String REFERENECE_SELECTOR_CMP_SCLASS
protected static final String REFERENECE_SELECTOR_TABLE_LABEL_SCLASS
protected static final String REFERENECE_SELECTOR_TABLE_LABEL_FIRSTCELL
protected static final String REFERENECE_SELECTOR_TABLE_LABEL_SECONDCELL
protected static final String REFERENECE_SELECTOR_TABLE_LABEL_INFOLABEL
protected static final String REFERENECE_SELECTOR_CMP_POPUP_SCLASS
protected static final String REFERENECE_SELECTOR_NOT_CONFIRMED_SCLASS
protected static final String REFERENECE_SELECTOR_LISTBOX_ODD_ROWS
protected static final String REFERENECE_SELECTOR_NOT_CONFIRMED_LABEL
protected static final String REFERENECE_SELECTOR_NOT_CONFIRMED_CELLLABEL
protected static final String REFERENECE_SELECTOR_AUTOCOMPLETE
protected static final String REFERENECE_SELECTOR_AUTOCOMPLETE_POPUP
protected static final String REFERENECE_SELECTOR_AUTOCOMPLETE_LIST
protected static final String REFERENECE_SELECTOR_AUTOCOMPLETE_CELLITEM
protected static final String REFERENECE_SELECTOR_TEMPORARY_LIST
protected static final String REFERENECE_SELECTOR_TEMPORARY_LIST_CELLITEM
protected ReferenceSelectorModel model
protected static final boolean SHOW_TEMPORARY_SELECTED
protected boolean initialized
protected boolean disabled
protected Boolean allowcreate
public void setFocus(boolean focus)
public Boolean isAllowcreate()
public void setAllowcreate(Boolean allowcreate)
allowcreate - public void setCreateContext(CreateContext createContext)
public boolean update()
UIViewComponentupdate in interface UIViewComponenttrue if update was successful, false otherwiseprotected void updateAutoCompleteItemList()
protected void updateNotConfirmedItemList()
protected void updateTemporaryItemList()
protected void showReferenceSelectorModalDialog()
public void showComponentPopup()
showComponentPopup in interface UIReferenceSelectorpublic void closeComponentPopup()
public void closeReferenceSelectorModalDialog()
public void showAutoCompletePopup()
showAutoCompletePopup in interface UIReferenceSelectorpublic void updateTemporaryItems()
updateTemporaryItems in interface UIReferenceSelectorpublic void updateMode()
updateMode in interface UIReferenceSelectorpublic void updateAutoCompleteResult()
updateAutoCompleteResult in interface UIReferenceSelectorpublic void updateSearchResult()
updateSearchResult in interface UIReferenceSelectorprotected UIListView loadListView()
public boolean initialize()
UIViewComponentinitialize in interface UIViewComponenttrue if initialize was successful, false otherwisepublic void loadViewComponents()
protected UIAdvancedSearchView loadAdvancedSearchView()
public void setAdvancedSearchComponent(UIAdvancedSearchView searchComponent)
setAdvancedSearchComponent in interface UIReferenceSelectorprotected String computeLabel()
public void updateItemsNotConfirmed()
updateItemsNotConfirmed in interface UIReferenceSelectorpublic void updateItems()
updateItems in interface UIReferenceSelectorpublic void setModel(ReferenceSelectorModel model)
setModel in interface UIReferenceSelectorpublic ReferenceSelectorModel getModel()
getModel in interface UIReferenceSelectorpublic void reset()
protected void focusElement(HtmlBasedComponent focusableComponent)
protected void clearAutoCompleteInputText()
protected void selectOrDeselectAutoCompleteItems(int index)
protected void uncheckAllListItem(Listbox listbox)
protected void selectOrDeselectTemporaryItems(int index)
protected void selectOrDeselectItems(int index)
protected Tr createLabelRepresentation()
public void doItemActivated()
public void desktopRemoved(Desktop desktop)
desktopRemoved in interface DesktopRemovalAwareComponentpublic void detach()
public void setParent(Component parent)
public void updateRootTypeChanged()
updateRootTypeChanged in interface UIReferenceSelectorpublic void updateRootSearchTypeChanged()
updateRootSearchTypeChanged in interface UIReferenceSelectorprotected ListitemRenderer autoCompleteListItemRenderer()
protected ListitemRenderer notConfirmedListItemrenderer()
protected Table wrappIntoTable(Component firstCellContent,
Component secondCellConent,
String firstCellStyle,
String secondCellStyle)
public void setInitString(String initStr)
public void setFocus()
setFocus in interface UIReferenceSelectorprotected void performOnOkAction()
public void addEventSelectorListener(String event, EventListener listener)
public boolean isDisabled()
public void setDisabled(boolean disabled)
public int getDefaultAutocompleteTimeout()
Copyright © 2017 SAP SE. All Rights Reserved.