public class ModelBrowser extends Object implements org.jboss.gwt.elemento.core.IsElement<elemental2.dom.HTMLElement>
| Constructor and Description |
|---|
ModelBrowser(CrudOperations crud,
MetadataProcessor metadataProcessor,
javax.inject.Provider<Progress> progress,
Dispatcher dispatcher,
Environment environment,
com.google.web.bindery.event.shared.EventBus eventBus,
Resources resources) |
| Modifier and Type | Method and Description |
|---|---|
elemental2.dom.HTMLElement |
asElement() |
void |
select(String id,
boolean closeSelected) |
void |
setRoot(ResourceAddress root,
boolean updateBreadcrumb)
Entry point to show the specified address.
|
void |
setSurroundingHeight(int surroundingHeight)
Use this method if you embed the model browser into an application view and if you have additional elements
before or after the model browser.
|
@Inject public ModelBrowser(CrudOperations crud, MetadataProcessor metadataProcessor, @Footer javax.inject.Provider<Progress> progress, Dispatcher dispatcher, Environment environment, com.google.web.bindery.event.shared.EventBus eventBus, Resources resources)
public void setSurroundingHeight(int surroundingHeight)
setRoot(ResourceAddress, boolean) is called.surroundingHeight - the sum of the height of all surrounding elementspublic void setRoot(ResourceAddress root, boolean updateBreadcrumb)
root - the root address for this model browserupdateBreadcrumb - true if this model browser should fire ModelBrowserPathEventspublic void select(String id, boolean closeSelected)
public elemental2.dom.HTMLElement asElement()
asElement in interface org.jboss.gwt.elemento.core.IsElement<elemental2.dom.HTMLElement>Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.