Class DefaultReferenceSelectorModel

    • Constructor Detail

      • DefaultReferenceSelectorModel

        public DefaultReferenceSelectorModel()
      • DefaultReferenceSelectorModel

        public DefaultReferenceSelectorModel​(ObjectType rootType)
    • Method Detail

      • setItems

        public void setItems​(java.util.List<java.lang.Object> items)
      • setAutoCompleteResult

        public void setAutoCompleteResult​(java.util.List<? extends java.lang.Object> autoCompleteResult)
      • setTemporaryItems

        public void setTemporaryItems​(java.util.List<java.lang.Object> temporaryItems)
      • setSearchResult

        public void setSearchResult​(java.util.List<? extends java.lang.Object> searchResult)
      • setMinAutoCompleteTextLength

        public void setMinAutoCompleteTextLength​(int minAutoCompleteTextLength)
      • setMaxAutoCompleteResultSize

        public void setMaxAutoCompleteResultSize​(int maxAutoCompleteResultSize)
      • setPageSize

        public void setPageSize​(int pageSize)
      • getPageSize

        public int getPageSize()
      • getAutoCompleteResult

        public java.util.List<? extends java.lang.Object> getAutoCompleteResult()
      • getItems

        @Deprecated
        public java.util.List<java.lang.Object> getItems()
        Deprecated.
        since 6.3, use getValue() instead
        Returns the items held by this selector model.
        Returns:
        the items
      • getValue

        public java.lang.Object getValue()
      • getTemporaryItems

        public java.util.List<java.lang.Object> getTemporaryItems()
      • getMinAutoCompleteTextLength

        public int getMinAutoCompleteTextLength()
      • getMaxAutoCompleteResultSize

        public int getMaxAutoCompleteResultSize()
      • getAutocompleteSearchType

        public ObjectType getAutocompleteSearchType()
      • getLabel

        public java.lang.String getLabel()
      • getSearchResult

        public java.util.List<? extends java.lang.Object> getSearchResult()
      • isMultiple

        public boolean isMultiple()
      • setMultiple

        public void setMultiple​(boolean multiple)
      • addItem

        public boolean addItem​(java.lang.Object item)
      • addItemNotConfirmed

        public boolean addItemNotConfirmed​(java.lang.Object itemNotConfirmed)
      • selectTemporaryItem

        public boolean selectTemporaryItem​(java.lang.Object item)
      • selectItem

        public boolean selectItem​(java.lang.Object item)
      • deselectItem

        public boolean deselectItem​(java.lang.Object item)
      • deselectTemporaryItem

        public boolean deselectTemporaryItem​(java.lang.Object item)
      • deselectTemporaryItems

        public boolean deselectTemporaryItems()
      • addItems

        public boolean addItems​(java.util.List collection)
      • selectTemporaryItems

        public boolean selectTemporaryItems​(java.util.Collection collection)
      • selectItems

        public boolean selectItems​(java.util.Collection items)
      • addItemsNotConfirmed

        public boolean addItemsNotConfirmed​(java.util.Collection items)
      • removeItem

        public boolean removeItem​(int index)
      • removeItemNotConfirmed

        public boolean removeItemNotConfirmed​(int index)
      • moveItem

        public boolean moveItem​(int fromIndex,
                                int toIndex)
      • moveTemporaryItem

        public boolean moveTemporaryItem​(int fromIndex,
                                         int toIndex)
      • removeItems

        public boolean removeItems​(java.util.Collection indexes)
      • clearItems

        public void clearItems()
      • setItem

        public boolean setItem​(int index,
                               java.lang.Object item)
      • addTemporaryItem

        public boolean addTemporaryItem​(java.lang.Object item)
      • addTemporaryItems

        public boolean addTemporaryItems​(java.util.Collection items)
      • removeTemporaryItem

        public boolean removeTemporaryItem​(java.lang.Object item)
      • removeTemporaryItem

        public boolean removeTemporaryItem​(int index)
      • clearTemporaryItems

        public void clearTemporaryItems()
      • getTotalSize

        public int getTotalSize()
        Returns:
        the totalSize
      • setTotalSize

        public void setTotalSize​(int totalSize)
        Parameters:
        totalSize - the totalSize to set
      • reset

        public void reset()
      • cancel

        public void cancel()
      • getItemLabel

        public java.lang.String getItemLabel​(java.lang.Object item)
      • getRootSearchType

        public ObjectType getRootSearchType()
        Description copied from interface: ReferenceSelectorModel
        Returns the type for which this reference collection editor should search for.

        Generally, if no root search type has been explicitly set, this method returns the same type as ReferenceSelectorModel.getRootType().

        Note: The root search type is actually the type of the items held by this editor, whereas root type is the type which should be used for persisting values.
        Returns:
        the type for which this reference collection editor should search for
        See Also:
        ReferenceSelectorModel.getRootType()
      • setAutocompleteSearchType

        public void setAutocompleteSearchType​(ObjectType autocompletionSearchType)
      • getNotConfirmedItems

        public java.util.List getNotConfirmedItems()
      • getActualSelectedTempItems

        public java.util.List<java.lang.Object> getActualSelectedTempItems()
      • getActualSelectedItems

        public java.util.List<java.lang.Object> getActualSelectedItems()
      • saveItems

        public void saveItems()
      • getLoginService

        protected LoginService getLoginService()
      • initAdvanceModeModels

        public void initAdvanceModeModels()
      • storeListViewConfiguration

        protected void storeListViewConfiguration()
      • setParameters

        public void setParameters​(java.util.Map<java.lang.String,​? extends java.lang.Object> parameters)
      • getParameters

        public java.util.Map<java.lang.String,​? extends java.lang.Object> getParameters()