Class ModelBrowser

  • All Implemented Interfaces:
    org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>

    public class ModelBrowser
    extends Object
    implements org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>
    Model browser element which can be embedded in other elements.
    • Method Detail

      • setSurroundingHeight

        public 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. This method should be called when the application view is attached or before setRoot(ResourceAddress, boolean) is called.
        Parameters:
        surroundingHeight - the sum of the height of all surrounding elements
      • setRoot

        public void setRoot​(ResourceAddress root,
                            boolean updateBreadcrumb)
        Entry point to show the specified address.
        Parameters:
        root - the root address for this model browser
        updateBreadcrumb - true if this model browser should fire ModelBrowserPathEvents
      • select

        public void select​(String id,
                           boolean closeSelected)
      • element

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