Class ControllerCollection<T extends de.fraunhofer.iosb.ilt.sta.model.Entity<T>>

  • Type Parameters:
    T - The entity type of the collection.
    All Implemented Interfaces:
    javafx.fxml.Initializable

    public class ControllerCollection<T extends de.fraunhofer.iosb.ilt.sta.model.Entity<T>>
    extends Object
    implements javafx.fxml.Initializable
    Author:
    scf
    • Constructor Detail

      • ControllerCollection

        public ControllerCollection()
    • Method Detail

      • setOrderby

        public void setOrderby​(String orderby)
      • initialize

        public void initialize​(URL location,
                               ResourceBundle resources)
        Specified by:
        initialize in interface javafx.fxml.Initializable
      • getQuery

        public de.fraunhofer.iosb.ilt.sta.query.Query getQuery()
        Returns:
        the query
      • setQuery

        public ControllerCollection setQuery​(de.fraunhofer.iosb.ilt.sta.query.Query query,
                                             ControllerCollection.EntityFactory<T> entityFactory,
                                             String orderBy)
        Parameters:
        query - the query to set.
        entityFactory - The factory to use to generate new entities.
        orderBy - The ordering to use.
        Returns:
        this ControllerCollection.
      • setQuery

        public ControllerCollection setQuery​(de.fraunhofer.iosb.ilt.sta.query.Query query,
                                             boolean showNavigationProperties,
                                             boolean canDelete,
                                             boolean canLinkNew,
                                             boolean multiSelect,
                                             String orderBy)
        Parameters:
        query - the query to set.
        showNavigationProperties - Should navigation properties of the selected Entity be shown, or just entityProperties.
        canDelete - Can entities be deleted from this collection.
        canLinkNew - Can new entities be linked into this collection.
        multiSelect - Can more than one entity be selected.
        orderBy - The ordering to use for the query.
        Returns:
        this ControllerCollection.
      • getSelectedEntity

        public T getSelectedEntity()
        Returns:
        the currently selected entity for single-select mode, or the last selected entity for multi select mode.
      • getSelectedEntities

        public List<T> getSelectedEntities()
        Returns:
        the currently selected entity for single-select mode, or the last selected entity for multi select mode.