com.vaadin.client.widget.treegrid.

Class TreeGrid

  • java.lang.Object
    • com.google.gwt.user.client.ui.UIObject
      • com.google.gwt.user.client.ui.Widget
        • com.google.gwt.user.client.ui.Composite
  • All Implemented Interfaces:

    com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.Focusable, com.google.gwt.user.client.ui.HasEnabled, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget, com.google.gwt.user.client.ui.RequiresResize, DeferredWorker, Focusable, SubPartAware, HasSelectionHandlers<elemental.json.JsonObject>, Iterable<com.google.gwt.user.client.ui.Widget>

    public class TreeGrid
    extends Grid<elemental.json.JsonObject>

    An extension of the Grid widget, which supports displaying of hierarchical data.

    Since:

    8.1

    Author:

    Vaadin Ltd

    See Also:

    Grid

    • Constructor Detail

      • TreeGrid

        public TreeGrid()

        Creates a new instance.

    • Method Detail

      • focusCell

        public void focusCell​(int rowIndex,
                              int columnIndex)

        Method for accessing the private Grid.focusCell(int, int) method from this package.

        Parameters:

        rowIndex - index of row to focus

        columnIndex - index (excluding hidden columns) of cell to focus

      • isElementInChildWidget

        public boolean isElementInChildWidget​(com.google.gwt.dom.client.Element e)

        Method for accessing the private Grid.isElementInChildWidget(Element) method from this package.

        Parameters:

        e - the element to check

        Returns:

        true if the element is located within a child widget of this TreeGrid, false otherwise.

      • addBodyClickHandler

        public com.google.gwt.event.shared.HandlerRegistration addBodyClickHandler​(BodyClickHandler handler)

        Description copied from class: Grid

        Register a BodyClickHandler to this Grid. The event for this handler is fired when a Click event occurs in the Body of this Grid.

        Overrides:

        addBodyClickHandler in class Grid<elemental.json.JsonObject>

        Parameters:

        handler - the click handler to register

        Returns:

        the registration for the handler

      • addBodyDoubleClickHandler

        public com.google.gwt.event.shared.HandlerRegistration addBodyDoubleClickHandler​(BodyDoubleClickHandler handler)

        Description copied from class: Grid

        Register a BodyDoubleClickHandler to this Grid. The event for this handler is fired when a double click event occurs in the Body of this Grid.

        Overrides:

        addBodyDoubleClickHandler in class Grid<elemental.json.JsonObject>

        Parameters:

        handler - the double click handler to register

        Returns:

        the registration for the handler

      • createBodyUpdater

        protected EscalatorUpdater createBodyUpdater()

        Description copied from class: Grid

        Creates the escalator updater used to update the body rows in this grid. The updater is invoked when body rows or columns are added or removed, the content of body cells is changed, or the body is scrolled to expose previously hidden content.

        Overrides:

        createBodyUpdater in class Grid<elemental.json.JsonObject>

        Returns:

        the new body updater instance

      • setStylePrimaryName

        public void setStylePrimaryName​(String style)

        Overrides:

        setStylePrimaryName in class Grid<elemental.json.JsonObject>