Interface SimpleReferenceSelectorModel

    • Method Detail

      • getAutoCompleteResult

        java.util.List<? extends java.lang.Object> getAutoCompleteResult()
        Returns current auto complete results
        Returns:
        auto complete results
      • getSearchResult

        java.util.List<? extends java.lang.Object> getSearchResult()
        Returns current search results - used for advanced search selector mode
        Returns:
        search results
      • getMaxAutoCompleteResultSize

        int getMaxAutoCompleteResultSize()
      • getMinAutoCompleteTextLength

        int getMinAutoCompleteTextLength()
        After how many characters auto complete results should be triggered
        Returns:
        characters quantity
      • getPageSize

        int getPageSize()
        Returns page size
        Returns:
        - page size
      • cancel

        void cancel()
        Perform cancel on simple reference selector model
      • getTotalSize

        int getTotalSize()
        Returns total size of search results
        Returns:
        total size
      • getRootType

        ObjectType getRootType()
        Returns the root type of this reference collection editor i.e. the type of the items which this editor should hold references to.

        Note: If the root search type differs from the root type, this editor will actually hold items of the type returned by getRootSearchType(). In this case information about the root type is generally needed for value handling.

        Returns:
        the root type of this editor
        See Also:
        getRootSearchType()
      • getRootSearchType

        ObjectType getRootSearchType()
        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 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:
        getRootType()
      • getTableModel

        MutableTableModel getTableModel()
        Returns current table model - used in advanced mode
        Returns:
        root search type
      • createDefaultTableModel

        MutableTableModel createDefaultTableModel()
        Creates an default table model - used for advanced mode
        Returns:
        default table model
      • createAdvancedTableModel

        DefaultAdvancedSearchModel createAdvancedTableModel()
        Creates advanced table model - used for advanced mode
        Returns:
        advanced table model
      • getAdvancedSearchModel

        AdvancedSearchModel getAdvancedSearchModel()
        Returns advanced search mode - used for advanced mode
        Returns:
        advanced search model
      • doSearch

        void doSearch​(ObjectTemplate objectType,
                      AdvancedSearchParameterContainer parameterContainer,
                      int currentPage)
        Perform search within advanced selector mode
        Parameters:
        objectType - - chosen type
        parameterContainer - - parameters
        currentPage - - current page