public class Finder extends Object implements org.jboss.gwt.elemento.core.IsElement, Attachable
| Constructor and 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) |
| Modifier and Type | Method and Description |
|---|---|
elemental2.dom.HTMLElement |
asElement() |
void |
attach() |
void |
detach() |
FinderColumn |
getColumn(String columnId) |
FinderContext |
getContext() |
void |
refresh()
Refreshes the current path.
|
void |
refresh(FinderPath path)
Refreshes the specified path.
|
void |
reset(String token,
String initialColumn,
PreviewContent initialPreview,
com.google.gwt.user.client.rpc.AsyncCallback<FinderColumn> callback)
Resets the finder to its initial state by showing the initial column and preview.
|
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.
|
@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)
public elemental2.dom.HTMLElement asElement()
asElement in interface org.jboss.gwt.elemento.core.IsElementpublic void attach()
attach in interface Attachablepublic void detach()
detach in interface Attachablepublic void reset(String token, String initialColumn, PreviewContent initialPreview, com.google.gwt.user.client.rpc.AsyncCallback<FinderColumn> callback)
public void refresh()
public void refresh(FinderPath 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.
public void select(String token, FinderPath path, Runnable fallback)
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.
public FinderColumn getColumn(String columnId)
public FinderContext getContext()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.