Package org.jboss.hal.core.finder
Class Finder
- java.lang.Object
-
- org.jboss.hal.core.finder.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 Summary
Constructors Constructor Description Finder(Environment environment, com.google.web.bindery.event.shared.EventBus eventBus, com.gwtplatform.mvp.client.proxy.PlaceManager placeManager, ColumnRegistry columnRegistry, SecurityContextRegistry securityContextRegistry, javax.inject.Provider<Progress> progress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattach()voiddetach()elemental2.dom.HTMLDivElementelement()<C extends FinderColumn<T>,T>
CgetColumn(String columnId)FinderContextgetContext()voidrefresh()Refreshes the current path.voidrefresh(FinderPath path)Refreshes the specified path.voidreset(String token, String initialColumn, PreviewContent<?> initialPreview)Resets the finder to its initial state by showing the initial column and preview.voidselect(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.
-
-
-
Constructor Detail
-
Finder
@Inject public Finder(Environment environment, com.google.web.bindery.event.shared.EventBus eventBus, com.gwtplatform.mvp.client.proxy.PlaceManager placeManager, ColumnRegistry columnRegistry, SecurityContextRegistry securityContextRegistry, @Footer javax.inject.Provider<Progress> progress)
-
-
Method Detail
-
element
public elemental2.dom.HTMLDivElement element()
- Specified by:
elementin interfaceorg.jboss.elemento.IsElement<elemental2.dom.HTMLDivElement>
-
attach
public void attach()
- Specified by:
attachin interfaceAttachable
-
detach
public void detach()
- Specified by:
detachin interfaceAttachable
-
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.
-
getColumn
public <C extends FinderColumn<T>,T> C getColumn(String columnId)
-
getContext
public FinderContext getContext()
-
-