com.vaadin.client.widget.treegrid.

Class TreeGrid

  • 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, SubPartAware, HasSelectionHandlers<JsonObject>, Iterable<com.google.gwt.user.client.ui.Widget>


    public class TreeGrid
    extends Grid<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.

      • isElementInChildWidget

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

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

      • 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<JsonObject>

        Parameters:

        handler - the click handler to register

        Returns:

        the registration for the event

      • 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<JsonObject>

        Parameters:

        handler - the double click handler to register

        Returns:

        the registration for the event

      • 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<JsonObject>

        Returns:

        the new body updater instance