com.vaadin.client.ui.treegrid.

Class TreeGridConnector

    • Constructor Detail

      • TreeGridConnector

        public TreeGridConnector()

        Constructs a connector for a TreeGrid component.

    • Method Detail

      • getWidget

        public TreeGrid getWidget()

        Description copied from class: AbstractComponentConnector

        Returns the widget associated with this paintable. The widget returned by this method must not changed during the life time of the paintable.

        Specified by:

        getWidget in interface HasWidget

        Overrides:

        getWidget in class GridConnector

        Returns:

        The widget associated with this paintable

      • init

        protected void init()

        Description copied from class: AbstractConnector

        Called when the connector has been initialized. Override this method to perform initialization of the connector.

        Overrides:

        init in class GridConnector

      • isCollapseAllowed

        public static boolean isCollapseAllowed​(elemental.json.JsonObject row)

        Checks if the item can be collapsed.

        Parameters:

        row - the item row

        Returns:

        true if the item is allowed to be collapsed, false otherwise.

      • onColumnRendererChanged

        public void onColumnRendererChanged​(ColumnConnector.CustomColumn column)

        Description copied from class: GridConnector

        Method called by CustomColumn when its renderer changes. This method is used to maintain hierarchical renderer wrap in TreeGrid.

        Overrides:

        onColumnRendererChanged in class GridConnector

        Parameters:

        column - the column which now has a new renderer