Module org.tentackle.fx.rdc
Package org.tentackle.fx.rdc.search
Class DefaultPdoFinder<T extends org.tentackle.pdo.PersistentDomainObject<T>>
- java.lang.Object
-
- org.tentackle.fx.AbstractFxController
-
- org.tentackle.fx.rdc.PdoFinder<T>
-
- org.tentackle.fx.rdc.search.DefaultPdoFinder<T>
-
- Type Parameters:
T- the PDO type
- All Implemented Interfaces:
org.tentackle.fx.FxController,org.tentackle.pdo.DomainContextProvider,org.tentackle.pdo.PdoHolder<T>,org.tentackle.validate.ScopeConfigurator
@FxControllerService(binding=NO) public class DefaultPdoFinder<T extends org.tentackle.pdo.PersistentDomainObject<T>> extends PdoFinder<T>
The simple default finder.
Provides normtext-search criteria (if entity provides a normtext). If no normtext, all PDOs are selected immediately.- Author:
- harald
-
-
Constructor Summary
Constructors Constructor Description DefaultPdoFinder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetPdo()javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.ActionEvent>>getSearchActionProperty()Gets the search action property.booleanisSearchRunningImmediately()Returns whether to run the search immediately without any futher user interaction.booleanisVisible()Returns whether the finder is visible.voidrequestInitialFocus()Requests the initial focus after stage is shown.javafx.collections.ObservableList<T>runSearch()Runs the search.voidsetPdo(T pdo)-
Methods inherited from class org.tentackle.fx.rdc.PdoFinder
createTotals, createTotalsTableView, getDomainContext, isSearchRunningInBackground, setSearchRunningImmediately, setSearchRunningInBackground, setVisible
-
Methods inherited from class org.tentackle.fx.AbstractFxController
configure, createBinder, getBinder, getContainer, getDefaultScopes, getFXMLFields, getFXMLMethods, getStage, getView, setView, validateInjections
-
-
-
-
Method Detail
-
runSearch
public javafx.collections.ObservableList<T> runSearch()
Description copied from class:PdoFinderRuns the search.
-
getPdo
public T getPdo()
-
setPdo
public void setPdo(T pdo)
-
isSearchRunningImmediately
public boolean isSearchRunningImmediately()
Description copied from class:PdoFinderReturns whether to run the search immediately without any futher user interaction.- Overrides:
isSearchRunningImmediatelyin classPdoFinder<T extends org.tentackle.pdo.PersistentDomainObject<T>>- Returns:
- true if immediate search
-
isVisible
public boolean isVisible()
Description copied from class:PdoFinderReturns whether the finder is visible.
-
requestInitialFocus
public void requestInitialFocus()
Description copied from class:PdoFinderRequests the initial focus after stage is shown.- Specified by:
requestInitialFocusin classPdoFinder<T extends org.tentackle.pdo.PersistentDomainObject<T>>
-
getSearchActionProperty
public javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.ActionEvent>> getSearchActionProperty()
Description copied from class:PdoFinderGets the search action property.- Specified by:
getSearchActionPropertyin classPdoFinder<T extends org.tentackle.pdo.PersistentDomainObject<T>>- Returns:
- the search action property, null if there is no such property
-
-