Class ControllerCollection<T extends de.fraunhofer.iosb.ilt.sta.model.Entity<T>>
- java.lang.Object
-
- de.fraunhofer.iosb.ilt.sensorthingsmanager.controller.ControllerCollection<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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceControllerCollection.EntityFactory<T extends de.fraunhofer.iosb.ilt.sta.model.Entity<T>>
-
Constructor Summary
Constructors Constructor Description ControllerCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.fraunhofer.iosb.ilt.sta.query.QuerygetQuery()List<T>getSelectedEntities()TgetSelectedEntity()voidinitialize(URL location, ResourceBundle resources)voidsetChildSetter(EntityGuiController.ChildSetter<T> childSetter)voidsetOrderby(String orderby)ControllerCollectionsetQuery(de.fraunhofer.iosb.ilt.sta.query.Query query, boolean showNavigationProperties, boolean canDelete, boolean canLinkNew, boolean multiSelect, String orderBy)ControllerCollectionsetQuery(de.fraunhofer.iosb.ilt.sta.query.Query query, ControllerCollection.EntityFactory<T> entityFactory, String orderBy)
-
-
-
Method Detail
-
setOrderby
public void setOrderby(String orderby)
-
initialize
public void initialize(URL location, ResourceBundle resources)
- Specified by:
initializein interfacejavafx.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.
-
setChildSetter
public void setChildSetter(EntityGuiController.ChildSetter<T> childSetter)
-
getSelectedEntity
public T getSelectedEntity()
- Returns:
- the currently selected entity for single-select mode, or the last selected entity for multi select mode.
-
-