Class DefaultPdoFinder<T extends org.tentackle.pdo.PersistentDomainObject<T>>

  • Type Parameters:
    T - the PDO type
    All Implemented Interfaces:
    org.tentackle.fx.FxController, PdoController<T>, org.tentackle.pdo.DomainContextProvider, 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T getPdo()
      Gets the PDO.
      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 isVisible()
      Returns whether the finder is visible.
      void requestInitialFocus()
      Requests the initial focus after stage is shown.
      javafx.collections.ObservableList<T> runSearch()
      Runs the search.
      void setPdo​(T pdo)
      Sets the PDO.
      • Methods inherited from class org.tentackle.fx.AbstractFxController

        configure, createBinder, getBinder, getContainer, getDefaultScopes, getFXMLFields, getFXMLMethods, getStage, getView, setView, validateInjections
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.tentackle.pdo.DomainContextProvider

        on, op
      • Methods inherited from interface org.tentackle.fx.FxController

        configure, getBinder, getContainer, getFXMLFields, getFXMLMethods, getStage, getView, setView, validateInjections
    • Constructor Detail

      • DefaultPdoFinder

        public DefaultPdoFinder()
    • Method Detail

      • runSearch

        public javafx.collections.ObservableList<T> runSearch()
        Description copied from class: PdoFinder
        Runs the search.
        Specified by:
        runSearch in class PdoFinder<T extends org.tentackle.pdo.PersistentDomainObject<T>>
        Returns:
        the search result
      • getPdo

        public T getPdo()
        Description copied from interface: PdoController
        Gets the PDO.
        Returns:
        the pdo
      • setPdo

        public void setPdo​(T pdo)
        Description copied from interface: PdoController
        Sets the PDO.
        Parameters:
        pdo - the pdo
      • isSearchRunningImmediately

        public boolean isSearchRunningImmediately()
        Description copied from class: PdoFinder
        Returns whether to run the search immediately without any futher user interaction.
        Overrides:
        isSearchRunningImmediately in class PdoFinder<T extends org.tentackle.pdo.PersistentDomainObject<T>>
        Returns:
        true if immediate search
      • isVisible

        public boolean isVisible()
        Description copied from class: PdoFinder
        Returns whether the finder is visible.
        Overrides:
        isVisible in class PdoFinder<T extends org.tentackle.pdo.PersistentDomainObject<T>>
        Returns:
        true if visible (default)
      • requestInitialFocus

        public void requestInitialFocus()
        Description copied from class: PdoFinder
        Requests the initial focus after stage is shown.
        Specified by:
        requestInitialFocus in class PdoFinder<T extends org.tentackle.pdo.PersistentDomainObject<T>>
      • getSearchActionProperty

        public javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.ActionEvent>> getSearchActionProperty()
        Description copied from class: PdoFinder
        Gets the search action property.
        Specified by:
        getSearchActionProperty in class PdoFinder<T extends org.tentackle.pdo.PersistentDomainObject<T>>
        Returns:
        the search action property, null if there is no such property