Module org.tentackle.fx.rdc
Package org.tentackle.fx.rdc.search
Class DefaultPdoFinder<T extends 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:
FxController,PdoController<T>,DomainContextProvider,PdoProvider<T>,org.tentackle.validate.ScopeConfigurator
@FxControllerService(binding=NO)
public class DefaultPdoFinder<T extends 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.
Provides normtext-search criteria (if entity provides a normtext). If no normtext, all PDOs are selected immediately.
- Author:
- harald
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPdo()javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.ActionEvent>>Gets the search action property.booleanReturns whether to run the search immediately without any futher user interaction.booleanReturns whether the finder is visible.voidRequests the initial focus after stage is shown.Runs the search.voidSets the PDO.Methods inherited from class org.tentackle.fx.rdc.PdoFinder
createTotals, createTotalsTableView, getDomainContext, isSearchRunningInBackground, setSearchRunningImmediately, setSearchRunningInBackground, setVisibleMethods inherited from class org.tentackle.fx.AbstractFxController
configure, createBinder, getBinder, getContainer, getDefaultScopes, getFXMLFields, getFXMLMethods, getStage, getView, setView, validateInjectionsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.tentackle.pdo.DomainContextProvider
on, opMethods inherited from interface org.tentackle.fx.FxController
configure, getBinder, getContainer, getFXMLFields, getFXMLMethods, getStage, getView, setView, validateInjectionsMethods inherited from interface org.tentackle.pdo.PdoProvider
on
-
Constructor Details
-
DefaultPdoFinder
public DefaultPdoFinder()
-
-
Method Details
-
runSearch
Description copied from class:PdoFinderRuns the search.- Specified by:
runSearchin classPdoFinder<T extends PersistentDomainObject<T>>- Returns:
- the search result, null is allowed and treated as empty
-
getPdo
-
setPdo
Description copied from interface:PdoControllerSets the PDO.- Parameters:
pdo- the 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 PersistentDomainObject<T>>- Returns:
- true if immediate search
-
isVisible
public boolean isVisible()Description copied from class:PdoFinderReturns whether the finder is visible.- Overrides:
isVisiblein classPdoFinder<T extends PersistentDomainObject<T>>- Returns:
- true if visible (default)
-
requestInitialFocus
public void requestInitialFocus()Description copied from class:PdoFinderRequests the initial focus after stage is shown.- Specified by:
requestInitialFocusin classPdoFinder<T extends 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 PersistentDomainObject<T>>- Returns:
- the search action property, null if there is no such property
-