Class DefaultSimpleReferenceSelectorModel

    • Field Detail

      • LIST_VIEW_CONFIG_CODE

        protected static final java.lang.String LIST_VIEW_CONFIG_CODE
        See Also:
        Constant Field Values
      • ADVANCED_SEARCH_VIEW_CONFIG_CODE

        protected static final java.lang.String ADVANCED_SEARCH_VIEW_CONFIG_CODE
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultSimpleReferenceSelectorModel

        public DefaultSimpleReferenceSelectorModel()
      • DefaultSimpleReferenceSelectorModel

        public DefaultSimpleReferenceSelectorModel​(ObjectType rootType)
    • Method Detail

      • 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()
      • getPageSize

        public int getPageSize()
        Description copied from interface: SimpleReferenceSelectorModel
        Returns page size
        Returns:
        - page size
      • getAutoCompleteResult

        public java.util.List<? extends java.lang.Object> getAutoCompleteResult()
        Description copied from interface: SimpleReferenceSelectorModel
        Returns current auto complete results
        Returns:
        auto complete results
      • getValue

        public java.lang.Object getValue()
        Description copied from interface: SimpleSelectorModel
        Retrieve current value
        Returns:
        current value
      • getMinAutoCompleteTextLength

        public int getMinAutoCompleteTextLength()
        Description copied from interface: SimpleReferenceSelectorModel
        After how many characters auto complete results should be triggered
        Returns:
        characters quantity
      • getMaxAutoCompleteResultSize

        public int getMaxAutoCompleteResultSize()
      • getSearchResult

        public java.util.List<? extends java.lang.Object> getSearchResult()
        Description copied from interface: SimpleReferenceSelectorModel
        Returns current search results - used for advanced search selector mode
        Returns:
        search results
      • getTotalSize

        public int getTotalSize()
        Description copied from interface: SimpleReferenceSelectorModel
        Returns total size of search results
        Returns:
        total size
      • getRootSearchType

        public ObjectType getRootSearchType()
        Description copied from interface: SimpleReferenceSelectorModel
        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 SimpleReferenceSelectorModel.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:
        SimpleReferenceSelectorModel.getRootType()
      • getAutocompleteSearchType

        public ObjectType getAutocompleteSearchType()
      • cancel

        public void cancel()
        Description copied from interface: SimpleReferenceSelectorModel
        Perform cancel on simple reference selector model
      • createDefaultTableModel

        public MutableTableModel createDefaultTableModel()
        Description copied from interface: SimpleReferenceSelectorModel
        Creates an default table model - used for advanced mode
        Returns:
        default table model
      • setValue

        public void setValue​(java.lang.Object value)
        Sets current value
        Parameters:
        value - the value to set
      • setAutoCompleteResult

        public void setAutoCompleteResult​(java.util.List<? extends java.lang.Object> autoCompleteResult)
        Sets auto complete results
        Parameters:
        autoCompleteResult - - auto complete results
      • setSearchResult

        public void setSearchResult​(java.util.List<? extends java.lang.Object> searchResult)
        Sets search results
        Parameters:
        searchResult - - search results
      • setMinAutoCompleteTextLength

        public void setMinAutoCompleteTextLength​(int minAutoCompleteTextLength)
      • setMaxAutoCompleteResultSize

        public void setMaxAutoCompleteResultSize​(int maxAutoCompleteResultSize)
      • setPageSize

        public void setPageSize​(int pageSize)
      • setTotalSize

        public void setTotalSize​(int totalSize)
      • getTypeService

        public TypeService getTypeService()
        Retrieves cockpit type service
        Returns:
        cockpit type service
      • getSearchProvider

        protected SearchProvider getSearchProvider()
        Retrieves search provider
        Returns:
        search provider
      • setAutocompleteSearchType

        public void setAutocompleteSearchType​(ObjectType autocompletionSearchType)
      • saveItem

        public void saveItem​(java.lang.Object currentValue)
        Performs save item
        Parameters:
        currentValue - - current value