T - the pdo typepublic abstract class PdoFinder<T extends PersistentDomainObject<T>> extends AbstractFxController implements PdoHolder<T>, DomainContextProvider
| Constructor and Description |
|---|
PdoFinder() |
| Modifier and Type | Method and Description |
|---|---|
javafx.collections.ObservableList<T> |
createTotals(javafx.collections.ObservableList<T> items)
Creates the optional totals from the search results.
By default, all numeric columns are candidates for being summed up. |
TotalsTableView<T> |
createTotalsTableView()
Creates the totals table view.
Will be invoked only if createTotals(javafx.collections.ObservableList<T>) returned a non-empty list. |
DomainContext |
getDomainContext() |
abstract javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.ActionEvent>> |
getSearchActionProperty()
Gets the search action property.
|
boolean |
isSearchRunningImmediately()
Returns whether to run the search immediately without any futher user interaction.
|
boolean |
isSearchRunningInBackground()
Returns whether the query might block the client for alonger time.
|
boolean |
isVisible()
Returns whether the finder is visible.
|
abstract void |
requestInitialFocus()
Requests the initial focus after stage is shown.
|
abstract javafx.collections.ObservableList<T> |
runSearch()
Runs the search.
|
void |
setSearchRunningImmediately(boolean searchRunningImmediately)
Defines whether to run the search immediately without any futher user interaction.
|
void |
setSearchRunningInBackground(boolean searchRunningInBackground)
Defines whether the query might block the client for alonger time.
|
void |
setVisible(boolean visible)
Sets the visibility of the finder's view.
|
configure, createBinder, getBinder, getContainer, getDefaultScopes, getFXMLFields, getFXMLMethods, getStage, getView, initialize, setView, validateInjectionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waiton, oppublic abstract javafx.collections.ObservableList<T> runSearch()
public abstract void requestInitialFocus()
public abstract javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.ActionEvent>> getSearchActionProperty()
public DomainContext getDomainContext()
getDomainContext in interface DomainContextProviderpublic boolean isSearchRunningInBackground()
public void setSearchRunningInBackground(boolean searchRunningInBackground)
searchRunningInBackground - true if better run in background, false if in event-thread (default)public boolean isSearchRunningImmediately()
public void setSearchRunningImmediately(boolean searchRunningImmediately)
searchRunningImmediately - true if immediate searchpublic boolean isVisible()
public void setVisible(boolean visible)
visible - true if visible (default)public javafx.collections.ObservableList<T> createTotals(javafx.collections.ObservableList<T> items)
items - the items to create the totals frompublic TotalsTableView<T> createTotalsTableView()
createTotals(javafx.collections.ObservableList<T>) returned a non-empty list.Tentackle - distributed, domain- and model-driven