Class Finder

  • All Implemented Interfaces:
    org.jboss.elemento.IsElement<elemental2.dom.HTMLDivElement>, Attachable

    public class Finder
    extends Object
    implements org.jboss.elemento.IsElement<elemental2.dom.HTMLDivElement>, Attachable
    The one and only finder which is shared across all different top level categories in HAL. The very same finder instance gets injected into the different top level presenters. Only the columns will change when navigating between the different places
    • Constructor Detail

    • Method Detail

      • element

        public elemental2.dom.HTMLDivElement element()
        Specified by:
        element in interface org.jboss.elemento.IsElement<elemental2.dom.HTMLDivElement>
      • reset

        public void reset​(String token,
                          String initialColumn,
                          PreviewContent<?> initialPreview)
        Resets the finder to its initial state by showing the initial column and preview.
      • refresh

        public void refresh()
        Refreshes the current path.
      • refresh

        public void refresh​(FinderPath path)
        Refreshes the specified path.

        Please note that this might be a complex and long-running operation since each segment in the path is turned into a function which reloads and re-selects the items.

      • select

        public void select​(String token,
                           FinderPath path,
                           Runnable fallback)
        Shows the finder associated with the specified token and selects the columns and items according to the given finder path.

        Please note that this might be a complex and long running operation since each segment in the path is turned into a function. The function will load and initialize the column and select the item as specified in the segment.

        If the path is empty, the fallback operation is executed.