Class TreeView

All Implemented Interfaces:
Accessible, Buildable, ConstraintTarget, Scrollable, Proxy

@Generated("org.javagi.JavaGI") @Deprecated public class TreeView extends Widget implements Accessible, Buildable, ConstraintTarget, Scrollable
Deprecated.
Use ListView for lists, and ColumnView for tabular lists

A widget for displaying both trees and lists

An example GtkTreeView

Widget that displays any object that implements the TreeModel interface.

Please refer to the tree widget conceptual overview for an overview of all the objects and data types related to the tree widget and how they work together.

Coordinate systems in GtkTreeView API

Several different coordinate systems are exposed in the GtkTreeView API. These are:

!Gtk.TreeView.convert_widget_to_bin_window_coords (and vice versa), for the latter convertBinWindowToTreeCoords(int, int, Out, Out) (and vice versa).

GtkTreeView as GtkBuildable

The GtkTreeView implementation of the GtkBuildable interface accepts TreeViewColumn objects as <child> elements and exposes the internal TreeSelection in UI definitions.

An example of a UI definition fragment with GtkTreeView:

<object class="GtkTreeView" id="treeview">
  <property name="model">liststore1</property>
  <child>
    <object class="GtkTreeViewColumn" id="test-column">
      <property name="title">Test</property>
      <child>
        <object class="GtkCellRendererText" id="test-renderer"/>
        <attributes>
          <attribute name="text">1</attribute>
        </attributes>
      </child>
    </object>
  </child>
  <child internal-child="selection">
    <object class="GtkTreeSelection" id="selection">
      <signal name="changed" handler="on_treeview_selection_changed"/>
    </object>
  </child>
</object>

CSS nodes

treeview.view
├── header
│   ├── button
│   │   ╰── [sort-indicator]
┊   ┊
│   ╰── button
│       ╰── [sort-indicator]
│
├── [rubberband]
╰── [dndtarget]

GtkTreeView has a main CSS node with name treeview and style class .view. It has a subnode with name header, which is the parent for all the column header widgets' CSS nodes.

Each column header consists of a button, which among other content, has a child with name sort-indicator, which carries the .ascending or .descending style classes when the column header should show a sort indicator. The CSS is expected to provide a suitable image using the -gtk-icon-source property.

For rubberband selection, a subnode with name rubberband is used.

For the drop target location during DND, a subnode with name dndtarget is used.

  • Constructor Details

    • TreeView

      public TreeView(MemorySegment address)
      Deprecated.
      Create a TreeView instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • TreeView

      public TreeView()
      Deprecated.
      Create a new TreeView.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Deprecated.
      Get the GType of the TreeView class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      Deprecated.
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected TreeView asParent()
      Deprecated.
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class Widget
      Returns:
      the instance as if it were its parent type
    • withModel

      @Deprecated public static TreeView withModel(TreeModel model)
      Deprecated.
      Use ListView or ColumnView instead
      Creates a new GtkTreeView widget with the model initialized to model.
      Parameters:
      model - the model.
      Returns:
      A newly created GtkTreeView widget.
    • appendColumn

      @Deprecated public int appendColumn(TreeViewColumn column)
      Deprecated.
      Use ListView or ColumnView instead
      Appends column to the list of columns. If this TreeView has “fixed_height” mode enabled, then column must have its “sizing” property set to be GTK_TREE_VIEW_COLUMN_FIXED.
      Parameters:
      column - The GtkTreeViewColumn to add.
      Returns:
      The number of columns in this TreeView after appending.
    • collapseAll

      @Deprecated public void collapseAll()
      Deprecated.
      Use ListView or ColumnView instead
      Recursively collapses all visible, expanded nodes in treeView.
    • collapseRow

      @Deprecated public boolean collapseRow(TreePath path)
      Deprecated.
      Use ListView or ColumnView instead
      Collapses a row (hides its child rows, if they exist).
      Parameters:
      path - path to a row in the this TreeView
      Returns:
      true if the row was collapsed.
    • columnsAutosize

      @Deprecated public void columnsAutosize()
      Deprecated.
      Use ListView or ColumnView instead
      Resizes all columns to their optimal width. Only works after the treeview has been realized.
    • convertBinWindowToTreeCoords

      @Deprecated public void convertBinWindowToTreeCoords(int bx, int by, Out<Integer> tx, Out<Integer> ty)
      Deprecated.
      Use ListView or ColumnView instead
      Converts bin_window coordinates to coordinates for the tree (the full scrollable area of the tree).
      Parameters:
      bx - X coordinate relative to bin_window
      by - Y coordinate relative to bin_window
      tx - return location for tree X coordinate
      ty - return location for tree Y coordinate
    • convertBinWindowToWidgetCoords

      @Deprecated public void convertBinWindowToWidgetCoords(int bx, int by, Out<Integer> wx, Out<Integer> wy)
      Deprecated.
      Use ListView or ColumnView instead
      Converts bin_window coordinates to widget relative coordinates.
      Parameters:
      bx - bin_window X coordinate
      by - bin_window Y coordinate
      wx - return location for widget X coordinate
      wy - return location for widget Y coordinate
    • convertTreeToBinWindowCoords

      @Deprecated public void convertTreeToBinWindowCoords(int tx, int ty, Out<Integer> bx, Out<Integer> by)
      Deprecated.
      Use ListView or ColumnView instead
      Converts tree coordinates (coordinates in full scrollable area of the tree) to bin_window coordinates.
      Parameters:
      tx - tree X coordinate
      ty - tree Y coordinate
      bx - return location for X coordinate relative to bin_window
      by - return location for Y coordinate relative to bin_window
    • convertTreeToWidgetCoords

      @Deprecated public void convertTreeToWidgetCoords(int tx, int ty, Out<Integer> wx, Out<Integer> wy)
      Deprecated.
      Use ListView or ColumnView instead
      Converts tree coordinates (coordinates in full scrollable area of the tree) to widget coordinates.
      Parameters:
      tx - X coordinate relative to the tree
      ty - Y coordinate relative to the tree
      wx - return location for widget X coordinate
      wy - return location for widget Y coordinate
    • convertWidgetToBinWindowCoords

      @Deprecated public void convertWidgetToBinWindowCoords(int wx, int wy, Out<Integer> bx, Out<Integer> by)
      Deprecated.
      Use ListView or ColumnView instead
      Converts widget coordinates to coordinates for the bin_window.
      Parameters:
      wx - X coordinate relative to the widget
      wy - Y coordinate relative to the widget
      bx - return location for bin_window X coordinate
      by - return location for bin_window Y coordinate
    • convertWidgetToTreeCoords

      @Deprecated public void convertWidgetToTreeCoords(int wx, int wy, Out<Integer> tx, Out<Integer> ty)
      Deprecated.
      Use ListView or ColumnView instead
      Converts widget coordinates to coordinates for the tree (the full scrollable area of the tree).
      Parameters:
      wx - X coordinate relative to the widget
      wy - Y coordinate relative to the widget
      tx - return location for tree X coordinate
      ty - return location for tree Y coordinate
    • createRowDragIcon

      @Deprecated public @Nullable Paintable createRowDragIcon(TreePath path)
      Deprecated.
      Use ListView or ColumnView instead
      Creates a cairo_surface_t representation of the row at path. This image is used for a drag icon.
      Parameters:
      path - a GtkTreePath in this TreeView
      Returns:
      a newly-allocated surface of the drag icon.
    • enableModelDragDest

      @Deprecated public void enableModelDragDest(ContentFormats formats, Set<DragAction> actions)
      Deprecated.
      Use ListView or ColumnView instead
      Turns this TreeView into a drop destination for automatic DND. Calling this method sets GtkTreeView:reorderable to false.
      Parameters:
      formats - the target formats that the drag will support
      actions - the bitmask of possible actions for a drag from this widget
    • enableModelDragDest

      @Deprecated public void enableModelDragDest(ContentFormats formats, DragAction... actions)
      Deprecated.
      Use ListView or ColumnView instead
      Turns this TreeView into a drop destination for automatic DND. Calling this method sets GtkTreeView:reorderable to false.
      Parameters:
      formats - the target formats that the drag will support
      actions - the bitmask of possible actions for a drag from this widget
    • enableModelDragSource

      @Deprecated public void enableModelDragSource(Set<ModifierType> startButtonMask, ContentFormats formats, Set<DragAction> actions)
      Deprecated.
      Use ListView or ColumnView instead
      Turns this TreeView into a drag source for automatic DND. Calling this method sets GtkTreeView:reorderable to false.
      Parameters:
      startButtonMask - Mask of allowed buttons to start drag
      formats - the target formats that the drag will support
      actions - the bitmask of possible actions for a drag from this widget
    • enableModelDragSource

      @Deprecated public void enableModelDragSource(ModifierType startButtonMask, ContentFormats formats, DragAction... actions)
      Deprecated.
      Use ListView or ColumnView instead
      Turns this TreeView into a drag source for automatic DND. Calling this method sets GtkTreeView:reorderable to false.
      Parameters:
      startButtonMask - Mask of allowed buttons to start drag
      formats - the target formats that the drag will support
      actions - the bitmask of possible actions for a drag from this widget
    • expandAll

      @Deprecated public void expandAll()
      Deprecated.
      Use ListView or ColumnView instead
      Recursively expands all nodes in the treeView.
    • expandRow

      @Deprecated public boolean expandRow(TreePath path, boolean openAll)
      Deprecated.
      Use ListView or ColumnView instead
      Opens the row so its children are visible.
      Parameters:
      path - path to a row
      openAll - whether to recursively expand, or just expand immediate children
      Returns:
      true if the row existed and had children
    • expandToPath

      @Deprecated public void expandToPath(TreePath path)
      Deprecated.
      Use ListView or ColumnView instead
      Expands the row at path. This will also expand all parent rows of path as necessary.
      Parameters:
      path - path to a row.
    • getActivateOnSingleClick

      @Deprecated public boolean getActivateOnSingleClick()
      Deprecated.
      Use ListView or ColumnView instead
      Gets the setting set by gtk_tree_view_set_activate_on_single_click().
      Returns:
      true if row-activated will be emitted on a single click
    • getBackgroundArea

      @Deprecated public void getBackgroundArea(@Nullable TreePath path, @Nullable TreeViewColumn column, Rectangle rect)
      Deprecated.
      Use ListView or ColumnView instead
      Fills the bounding rectangle in bin_window coordinates for the cell at the row specified by path and the column specified by column. If path is null, or points to a node not found in the tree, the y and height fields of the rectangle will be filled with 0. If column is null, the x and width fields will be filled with 0. The returned rectangle is equivalent to the backgroundArea passed to gtk_cell_renderer_render(). These background areas tile to cover the entire bin window. Contrast with the cellArea, returned by gtk_tree_view_get_cell_area(), which returns only the cell itself, excluding surrounding borders and the tree expander area.
      Parameters:
      path - a GtkTreePath for the row, or null to get only horizontal coordinates
      column - a GtkTreeViewColumn for the column, or null to get only vertical coordinates
      rect - rectangle to fill with cell background rect
    • getCellArea

      @Deprecated public void getCellArea(@Nullable TreePath path, @Nullable TreeViewColumn column, Rectangle rect)
      Deprecated.
      Use ListView or ColumnView instead
      Fills the bounding rectangle in bin_window coordinates for the cell at the row specified by path and the column specified by column. If path is null, or points to a path not currently displayed, the y and height fields of the rectangle will be filled with 0. If column is null, the x and width fields will be filled with 0. The sum of all cell rects does not cover the entire tree; there are extra pixels in between rows, for example. The returned rectangle is equivalent to the cellArea passed to gtk_cell_renderer_render(). This function is only valid if this TreeView is realized.
      Parameters:
      path - a GtkTreePath for the row, or null to get only horizontal coordinates
      column - a GtkTreeViewColumn for the column, or null to get only vertical coordinates
      rect - rectangle to fill with cell rect
    • getColumn

      @Deprecated public @Nullable TreeViewColumn getColumn(int n)
      Deprecated.
      Use ListView or ColumnView instead
      Gets the GtkTreeViewColumn at the given position in the tree_view.
      Parameters:
      n - The position of the column, counting from 0.
      Returns:
      The GtkTreeViewColumn, or null if the position is outside the range of columns.
    • getColumns

      @Deprecated public List<TreeViewColumn> getColumns()
      Deprecated.
      Use ListView or ColumnView instead
      Returns a GList of all the GtkTreeViewColumns currently in treeView. The returned list must be freed with g_list_free ().
      Returns:
      A list of GtkTreeViewColumns
    • getCursor

      @Deprecated public void getCursor(@Nullable Out<TreePath> path, @Nullable Out<TreeViewColumn> focusColumn)
      Deprecated.
      Use ListView or ColumnView instead

      Fills in path and focusColumn with the current path and focus column. If the cursor isn’t currently set, then *path will be null. If no column currently has focus, then *focusColumn will be null.

      The returned GtkTreePath must be freed with gtk_tree_path_free() when you are done with it.

      Parameters:
      path - A pointer to be filled with the current cursor path
      focusColumn - A pointer to be filled with the current focus column
    • getDestRowAtPos

      @Deprecated public boolean getDestRowAtPos(int dragX, int dragY, @Nullable Out<TreePath> path, @Nullable Out<TreeViewDropPosition> pos)
      Deprecated.
      Use ListView or ColumnView instead
      Determines the destination row for a given position. dragX and dragY are expected to be in widget coordinates. This function is only meaningful if this TreeView is realized. Therefore this function will always return false if this TreeView is not realized or does not have a model.
      Parameters:
      dragX - the position to determine the destination row for
      dragY - the position to determine the destination row for
      path - Return location for the path of the highlighted row
      pos - Return location for the drop position, or null
      Returns:
      whether there is a row at the given position, true if this is indeed the case.
    • getDragDestRow

      @Deprecated public void getDragDestRow(@Nullable Out<TreePath> path, @Nullable Out<TreeViewDropPosition> pos)
      Deprecated.
      Use ListView or ColumnView instead
      Gets information about the row that is highlighted for feedback.
      Parameters:
      path - Return location for the path of the highlighted row
      pos - Return location for the drop position
    • getEnableSearch

      @Deprecated public boolean getEnableSearch()
      Deprecated.
      Use ListView or ColumnView instead
      Returns whether or not the tree allows to start interactive searching by typing in text.
      Returns:
      whether or not to let the user search interactively
    • getEnableTreeLines

      @Deprecated public boolean getEnableTreeLines()
      Deprecated.
      Use ListView or ColumnView instead
      Returns whether or not tree lines are drawn in treeView.
      Returns:
      true if tree lines are drawn in treeView, false otherwise.
    • getExpanderColumn

      @Deprecated public @Nullable TreeViewColumn getExpanderColumn()
      Deprecated.
      Use ListView or ColumnView instead
      Returns the column that is the current expander column, or null if none has been set. This column has the expander arrow drawn next to it.
      Returns:
      The expander column.
    • getFixedHeightMode

      @Deprecated public boolean getFixedHeightMode()
      Deprecated.
      Use ListView or ColumnView instead
      Returns whether fixed height mode is turned on for treeView.
      Returns:
      true if this TreeView is in fixed height mode
    • getGridLines

      @Deprecated public TreeViewGridLines getGridLines()
      Deprecated.
      Use ListView or ColumnView instead
      Returns which grid lines are enabled in treeView.
      Returns:
      a GtkTreeViewGridLines value indicating which grid lines are enabled.
    • getHeadersClickable

      @Deprecated public boolean getHeadersClickable()
      Deprecated.
      Use ListView or ColumnView instead
      Returns whether all header columns are clickable.
      Returns:
      true if all header columns are clickable, otherwise false
    • getHeadersVisible

      @Deprecated public boolean getHeadersVisible()
      Deprecated.
      Use ListView or ColumnView instead
      Returns true if the headers on the this TreeView are visible.
      Returns:
      Whether the headers are visible or not.
    • getHoverExpand

      @Deprecated public boolean getHoverExpand()
      Deprecated.
      Use ListView or ColumnView instead
      Returns whether hover expansion mode is turned on for treeView.
      Returns:
      true if this TreeView is in hover expansion mode
    • getHoverSelection

      @Deprecated public boolean getHoverSelection()
      Deprecated.
      Use ListView or ColumnView instead
      Returns whether hover selection mode is turned on for treeView.
      Returns:
      true if this TreeView is in hover selection mode
    • getLevelIndentation

      @Deprecated public int getLevelIndentation()
      Deprecated.
      Use ListView or ColumnView instead
      Returns the amount, in pixels, of extra indentation for child levels in treeView.
      Returns:
      the amount of extra indentation for child levels in treeView. A return value of 0 means that this feature is disabled.
    • getModel

      @Deprecated public @Nullable TreeModel getModel()
      Deprecated.
      Use ListView or ColumnView instead
      Returns the model the GtkTreeView is based on. Returns null if the model is unset.
      Returns:
      A GtkTreeModel
    • getNColumns

      @Deprecated public int getNColumns()
      Deprecated.
      Use ListView or ColumnView instead
      Queries the number of columns in the given treeView.
      Returns:
      The number of columns in the this TreeView
    • getPathAtPos

      @Deprecated public boolean getPathAtPos(int x, int y, @Nullable Out<TreePath> path, @Nullable Out<TreeViewColumn> column, @Nullable Out<Integer> cellX, @Nullable Out<Integer> cellY)
      Deprecated.
      Use ListView or ColumnView instead

      Finds the path at the point (x, y), relative to bin_window coordinates. That is, x and y are relative to an events coordinates. Widget-relative coordinates must be converted using gtk_tree_view_convert_widget_to_bin_window_coords(). It is primarily for things like popup menus. If path is non-null, then it will be filled with the GtkTreePath at that point. This path should be freed with gtk_tree_path_free(). If column is non-null, then it will be filled with the column at that point. cellX and cellY return the coordinates relative to the cell background (i.e. the backgroundArea passed to gtk_cell_renderer_render()). This function is only meaningful if this TreeView is realized. Therefore this function will always return false if this TreeView is not realized or does not have a model.

      For converting widget coordinates (eg. the ones you get from GtkWidget::query-tooltip), please see gtk_tree_view_convert_widget_to_bin_window_coords().

      Parameters:
      x - The x position to be identified (relative to bin_window).
      y - The y position to be identified (relative to bin_window).
      path - A pointer to a GtkTreePath pointer to be filled in
      column - A pointer to a GtkTreeViewColumn pointer to be filled in
      cellX - A pointer where the X coordinate relative to the cell can be placed
      cellY - A pointer where the Y coordinate relative to the cell can be placed
      Returns:
      true if a row exists at that coordinate.
    • getReorderable

      @Deprecated public boolean getReorderable()
      Deprecated.
      Use ListView or ColumnView instead
      Retrieves whether the user can reorder the tree via drag-and-drop. See gtk_tree_view_set_reorderable().
      Returns:
      true if the tree can be reordered.
    • getRowSeparatorFunc

      @Deprecated public @Nullable TreeViewRowSeparatorFunc getRowSeparatorFunc()
      Deprecated.
      Use ListView or ColumnView instead
      Returns the current row separator function.
      Returns:
      the current row separator function.
    • getRubberBanding

      @Deprecated public boolean getRubberBanding()
      Deprecated.
      Use ListView or ColumnView instead
      Returns whether rubber banding is turned on for treeView. If the selection mode is SelectionMode.MULTIPLE, rubber banding will allow the user to select multiple rows by dragging the mouse.
      Returns:
      true if rubber banding in this TreeView is enabled.
    • getSearchColumn

      @Deprecated public int getSearchColumn()
      Deprecated.
      Use ListView or ColumnView instead
      Gets the column searched on by the interactive search code.
      Returns:
      the column the interactive search code searches in.
    • getSearchEntry

      @Deprecated public @Nullable Editable getSearchEntry()
      Deprecated.
      Use ListView or ColumnView instead
      Returns the GtkEntry which is currently in use as interactive search entry for treeView. In case the built-in entry is being used, null will be returned.
      Returns:
      the entry currently in use as search entry.
    • getSearchEqualFunc

      @Deprecated public @Nullable TreeViewSearchEqualFunc getSearchEqualFunc()
      Deprecated.
      Use ListView or ColumnView instead
      Returns the compare function currently in use.
      Returns:
      the currently used compare function for the search code.
    • getSelection

      @Deprecated public TreeSelection getSelection()
      Deprecated.
      Use ListView or ColumnView instead
      Gets the GtkTreeSelection associated with treeView.
      Returns:
      A GtkTreeSelection object.
    • getShowExpanders

      @Deprecated public boolean getShowExpanders()
      Deprecated.
      Use ListView or ColumnView instead
      Returns whether or not expanders are drawn in treeView.
      Returns:
      true if expanders are drawn in treeView, false otherwise.
    • getTooltipColumn

      @Deprecated public int getTooltipColumn()
      Deprecated.
      Use ListView or ColumnView instead
      Returns the column of treeView’s model which is being used for displaying tooltips on treeView’s rows.
      Returns:
      the index of the tooltip column that is currently being used, or -1 if this is disabled.
    • getTooltipContext

      @Deprecated public boolean getTooltipContext(int x, int y, boolean keyboardTip, @Nullable Out<TreeModel> model, @Nullable Out<TreePath> path, @Nullable TreeIter iter)
      Deprecated.
      Use ListView or ColumnView instead

      This function is supposed to be used in a ::query-tooltip signal handler for GtkTreeView. The x, y and keyboardTip values which are received in the signal handler, should be passed to this function without modification.

      The return value indicates whether there is a tree view row at the given coordinates (true) or not (false) for mouse tooltips. For keyboard tooltips the row returned will be the cursor row. When true, then any of model, path and iter which have been provided will be set to point to that row and the corresponding model. x and y will always be converted to be relative to treeView’s bin_window if keyboardTooltip is false.

      Parameters:
      x - the x coordinate (relative to widget coordinates)
      y - the y coordinate (relative to widget coordinates)
      keyboardTip - whether this is a keyboard tooltip or not
      model - a pointer to receive a GtkTreeModel
      path - a pointer to receive a GtkTreePath
      iter - a pointer to receive a GtkTreeIter
      Returns:
      whether or not the given tooltip context points to a row
    • getVisibleRange

      @Deprecated public boolean getVisibleRange(@Nullable Out<TreePath> startPath, @Nullable Out<TreePath> endPath)
      Deprecated.
      Use ListView or ColumnView instead

      Sets startPath and endPath to be the first and last visible path. Note that there may be invisible paths in between.

      The paths should be freed with gtk_tree_path_free() after use.

      Parameters:
      startPath - Return location for start of region
      endPath - Return location for end of region
      Returns:
      true, if valid paths were placed in startPath and endPath.
    • getVisibleRect

      @Deprecated public void getVisibleRect(Rectangle visibleRect)
      Deprecated.
      Use ListView or ColumnView instead
      Fills visibleRect with the currently-visible region of the buffer, in tree coordinates. Convert to bin_window coordinates with gtk_tree_view_convert_tree_to_bin_window_coords(). Tree coordinates start at 0,0 for row 0 of the tree, and cover the entire scrollable area of the tree.
      Parameters:
      visibleRect - rectangle to fill
    • insertColumn

      @Deprecated public int insertColumn(TreeViewColumn column, int position)
      Deprecated.
      Use ListView or ColumnView instead
      This inserts the column into the this TreeView at position. If position is -1, then the column is inserted at the end. If this TreeView has “fixed_height” mode enabled, then column must have its “sizing” property set to be GTK_TREE_VIEW_COLUMN_FIXED.
      Parameters:
      column - The GtkTreeViewColumn to be inserted.
      position - The position to insert column in.
      Returns:
      The number of columns in this TreeView after insertion.
    • insertColumnWithAttributes

      @Deprecated public int insertColumnWithAttributes(int position, String title, CellRenderer cell, Object... varargs)
      Deprecated.
      Use ListView or ColumnView instead
      Creates a new GtkTreeViewColumn and inserts it into the this TreeView at position. If position is -1, then the newly created column is inserted at the end. The column is initialized with the attributes given. If this TreeView has “fixed_height” mode enabled, then the new column will have its sizing property set to be GTK_TREE_VIEW_COLUMN_FIXED.
      Parameters:
      position - The position to insert the new column in
      title - The title to set the header to
      cell - The GtkCellRenderer
      varargs - A null-terminated list of attributes
      Returns:
      The number of columns in this TreeView after insertion.
    • insertColumnWithDataFunc

      @Deprecated public int insertColumnWithDataFunc(int position, String title, CellRenderer cell, @Nullable TreeCellDataFunc func)
      Deprecated.
      Use ListView or ColumnView instead
      Convenience function that inserts a new column into the GtkTreeView with the given cell renderer and a GtkTreeCellDataFunc to set cell renderer attributes (normally using data from the model). See also gtk_tree_view_column_set_cell_data_func(), gtk_tree_view_column_pack_start(). If this TreeView has “fixed_height” mode enabled, then the new column will have its “sizing” property set to be GTK_TREE_VIEW_COLUMN_FIXED.
      Parameters:
      position - Position to insert, -1 for append
      title - column title
      cell - cell renderer for column
      func - function to set attributes of cell renderer
      Returns:
      number of columns in the tree view post-insert
    • isBlankAtPos

      @Deprecated public boolean isBlankAtPos(int x, int y, @Nullable Out<TreePath> path, @Nullable Out<TreeViewColumn> column, @Nullable Out<Integer> cellX, @Nullable Out<Integer> cellY)
      Deprecated.
      Use ListView or ColumnView instead

      Determine whether the point (x, y) in this TreeView is blank, that is no cell content nor an expander arrow is drawn at the location. If so, the location can be considered as the background. You might wish to take special action on clicks on the background, such as clearing a current selection, having a custom context menu or starting rubber banding.

      The x and y coordinate that are provided must be relative to bin_window coordinates. Widget-relative coordinates must be converted using gtk_tree_view_convert_widget_to_bin_window_coords().

      For converting widget coordinates (eg. the ones you get from GtkWidget::query-tooltip), please see gtk_tree_view_convert_widget_to_bin_window_coords().

      The path, column, cellX and cellY arguments will be filled in likewise as for gtk_tree_view_get_path_at_pos(). Please see gtk_tree_view_get_path_at_pos() for more information.

      Parameters:
      x - The x position to be identified (relative to bin_window)
      y - The y position to be identified (relative to bin_window)
      path - A pointer to a GtkTreePath pointer to be filled in
      column - A pointer to a GtkTreeViewColumn pointer to be filled in
      cellX - A pointer where the X coordinate relative to the cell can be placed
      cellY - A pointer where the Y coordinate relative to the cell can be placed
      Returns:
      true if the area at the given coordinates is blank, false otherwise.
    • isRubberBandingActive

      @Deprecated public boolean isRubberBandingActive()
      Deprecated.
      Use ListView or ColumnView instead
      Returns whether a rubber banding operation is currently being done in treeView.
      Returns:
      true if a rubber banding operation is currently being done in treeView.
    • mapExpandedRows

      @Deprecated public void mapExpandedRows(@Nullable TreeViewMappingFunc func)
      Deprecated.
      Use ListView or ColumnView instead
      Calls func on all expanded rows.
      Parameters:
      func - A function to be called
    • moveColumnAfter

      @Deprecated public void moveColumnAfter(TreeViewColumn column, @Nullable TreeViewColumn baseColumn)
      Deprecated.
      Use ListView or ColumnView instead
      Moves column to be after to baseColumn. If baseColumn is null, then column is placed in the first position.
      Parameters:
      column - The GtkTreeViewColumn to be moved.
      baseColumn - The GtkTreeViewColumn to be moved relative to
    • removeColumn

      @Deprecated public int removeColumn(TreeViewColumn column)
      Deprecated.
      Use ListView or ColumnView instead
      Removes column from treeView.
      Parameters:
      column - The GtkTreeViewColumn to remove.
      Returns:
      The number of columns in this TreeView after removing.
    • rowActivated

      @Deprecated public void rowActivated(TreePath path, @Nullable TreeViewColumn column)
      Deprecated.
      Use ListView or ColumnView instead
      Activates the cell determined by path and column.
      Parameters:
      path - The GtkTreePath to be activated.
      column - The GtkTreeViewColumn to be activated.
    • rowExpanded

      @Deprecated public boolean rowExpanded(TreePath path)
      Deprecated.
      Use ListView or ColumnView instead
      Returns true if the node pointed to by path is expanded in treeView.
      Parameters:
      path - A GtkTreePath to test expansion state.
      Returns:
      true if path is expanded.
    • scrollToCell

      @Deprecated public void scrollToCell(@Nullable TreePath path, @Nullable TreeViewColumn column, boolean useAlign, float rowAlign, float colAlign)
      Deprecated.
      Use ListView or ColumnView instead

      Moves the alignments of this TreeView to the position specified by column and path. If column is null, then no horizontal scrolling occurs. Likewise, if path is null no vertical scrolling occurs. At a minimum, one of column or path need to be non-null. rowAlign determines where the row is placed, and colAlign determines where column is placed. Both are expected to be between 0.0 and 1.0. 0.0 means left/top alignment, 1.0 means right/bottom alignment, 0.5 means center.

      If useAlign is false, then the alignment arguments are ignored, and the tree does the minimum amount of work to scroll the cell onto the screen. This means that the cell will be scrolled to the edge closest to its current position. If the cell is currently visible on the screen, nothing is done.

      This function only works if the model is set, and path is a valid row on the model. If the model changes before the this TreeView is realized, the centered path will be modified to reflect this change.

      Parameters:
      path - The path of the row to move to
      column - The GtkTreeViewColumn to move horizontally to
      useAlign - whether to use alignment arguments, or false.
      rowAlign - The vertical alignment of the row specified by path.
      colAlign - The horizontal alignment of the column specified by column.
    • scrollToPoint

      @Deprecated public void scrollToPoint(int treeX, int treeY)
      Deprecated.
      Use ListView or ColumnView instead

      Scrolls the tree view such that the top-left corner of the visible area is treeX, treeY, where treeX and treeY are specified in tree coordinates. The this TreeView must be realized before this function is called. If it isn't, you probably want to be using gtk_tree_view_scroll_to_cell().

      If either treeX or treeY are -1, then that direction isn’t scrolled.

      Parameters:
      treeX - X coordinate of new top-left pixel of visible area, or -1
      treeY - Y coordinate of new top-left pixel of visible area, or -1
    • setActivateOnSingleClick

      @Deprecated public void setActivateOnSingleClick(boolean single)
      Deprecated.
      Use ListView or ColumnView instead
      Cause the GtkTreeView::row-activated signal to be emitted on a single click instead of a double click.
      Parameters:
      single - true to emit row-activated on a single click
    • setColumnDragFunction

      @Deprecated public void setColumnDragFunction(@Nullable TreeViewColumnDropFunc func)
      Deprecated.
      Use ListView or ColumnView instead
      Sets a user function for determining where a column may be dropped when dragged. This function is called on every column pair in turn at the beginning of a column drag to determine where a drop can take place. The arguments passed to func are: the treeView, the GtkTreeViewColumn being dragged, the two GtkTreeViewColumns determining the drop spot, and userData. If either of the GtkTreeViewColumn arguments for the drop spot are null, then they indicate an edge. If func is set to be null, then this TreeView reverts to the default behavior of allowing all columns to be dropped everywhere.
      Parameters:
      func - A function to determine which columns are reorderable
    • setCursor

      @Deprecated public void setCursor(TreePath path, @Nullable TreeViewColumn focusColumn, boolean startEditing)
      Deprecated.
      Use ListView or ColumnView instead

      Sets the current keyboard focus to be at path, and selects it. This is useful when you want to focus the user’s attention on a particular row. If focusColumn is not null, then focus is given to the column specified by it. Additionally, if focusColumn is specified, and startEditing is true, then editing should be started in the specified cell. This function is often followed by gtkWidgetGrabFocus (treeView) in order to give keyboard focus to the widget. Please note that editing can only happen when the widget is realized.

      If path is invalid for model, the current cursor (if any) will be unset and the function will return without failing.

      Parameters:
      path - A GtkTreePath
      focusColumn - A GtkTreeViewColumn
      startEditing - true if the specified cell should start being edited.
    • setCursorOnCell

      @Deprecated public void setCursorOnCell(TreePath path, @Nullable TreeViewColumn focusColumn, @Nullable CellRenderer focusCell, boolean startEditing)
      Deprecated.
      Use ListView or ColumnView instead

      Sets the current keyboard focus to be at path, and selects it. This is useful when you want to focus the user’s attention on a particular row. If focusColumn is not null, then focus is given to the column specified by it. If focusColumn and focusCell are not null, and focusColumn contains 2 or more editable or activatable cells, then focus is given to the cell specified by focusCell. Additionally, if focusColumn is specified, and startEditing is true, then editing should be started in the specified cell. This function is often followed by gtkWidgetGrabFocus (treeView) in order to give keyboard focus to the widget. Please note that editing can only happen when the widget is realized.

      If path is invalid for model, the current cursor (if any) will be unset and the function will return without failing.

      Parameters:
      path - A GtkTreePath
      focusColumn - A GtkTreeViewColumn
      focusCell - A GtkCellRenderer
      startEditing - true if the specified cell should start being edited.
    • setDragDestRow

      @Deprecated public void setDragDestRow(@Nullable TreePath path, TreeViewDropPosition pos)
      Deprecated.
      Use ListView or ColumnView instead
      Sets the row that is highlighted for feedback. If path is null, an existing highlight is removed.
      Parameters:
      path - The path of the row to highlight
      pos - Specifies whether to drop before, after or into the row
    • setEnableSearch

      @Deprecated public void setEnableSearch(boolean enableSearch)
      Deprecated.
      Use ListView or ColumnView instead

      If enableSearch is set, then the user can type in text to search through the tree interactively (this is sometimes called "typeahead find").

      Note that even if this is false, the user can still initiate a search using the “start-interactive-search” key binding.

      Parameters:
      enableSearch - true, if the user can search interactively
    • setEnableTreeLines

      @Deprecated public void setEnableTreeLines(boolean enabled)
      Deprecated.
      Use ListView or ColumnView instead
      Sets whether to draw lines interconnecting the expanders in treeView. This does not have any visible effects for lists.
      Parameters:
      enabled - true to enable tree line drawing, false otherwise.
    • setExpanderColumn

      @Deprecated public void setExpanderColumn(@Nullable TreeViewColumn column)
      Deprecated.
      Use ListView or ColumnView instead

      Sets the column to draw the expander arrow at. It must be in treeView. If column is null, then the expander arrow is always at the first visible column.

      If you do not want expander arrow to appear in your tree, set the expander column to a hidden column.

      Parameters:
      column - null, or the column to draw the expander arrow at.
    • setFixedHeightMode

      @Deprecated public void setFixedHeightMode(boolean enable)
      Deprecated.
      Use ListView or ColumnView instead
      Enables or disables the fixed height mode of treeView. Fixed height mode speeds up GtkTreeView by assuming that all rows have the same height. Only enable this option if all rows are the same height and all columns are of type TreeViewColumnSizing.FIXED.
      Parameters:
      enable - true to enable fixed height mode
    • setGridLines

      @Deprecated public void setGridLines(TreeViewGridLines gridLines)
      Deprecated.
      Use ListView or ColumnView instead
      Sets which grid lines to draw in treeView.
      Parameters:
      gridLines - a GtkTreeViewGridLines value indicating which grid lines to enable.
    • setHeadersClickable

      @Deprecated public void setHeadersClickable(boolean setting)
      Deprecated.
      Use ListView or ColumnView instead
      Allow the column title buttons to be clicked.
      Parameters:
      setting - true if the columns are clickable.
    • setHeadersVisible

      @Deprecated public void setHeadersVisible(boolean headersVisible)
      Deprecated.
      Use ListView or ColumnView instead
      Sets the visibility state of the headers.
      Parameters:
      headersVisible - true if the headers are visible
    • setHoverExpand

      @Deprecated public void setHoverExpand(boolean expand)
      Deprecated.
      Use ListView or ColumnView instead
      Enables or disables the hover expansion mode of treeView. Hover expansion makes rows expand or collapse if the pointer moves over them.
      Parameters:
      expand - true to enable hover selection mode
    • setHoverSelection

      @Deprecated public void setHoverSelection(boolean hover)
      Deprecated.
      Use ListView or ColumnView instead
      Enables or disables the hover selection mode of treeView. Hover selection makes the selected row follow the pointer. Currently, this works only for the selection modes SelectionMode.SINGLE and SelectionMode.BROWSE.
      Parameters:
      hover - true to enable hover selection mode
    • setLevelIndentation

      @Deprecated public void setLevelIndentation(int indentation)
      Deprecated.
      Use ListView or ColumnView instead
      Sets the amount of extra indentation for child levels to use in this TreeView in addition to the default indentation. The value should be specified in pixels, a value of 0 disables this feature and in this case only the default indentation will be used. This does not have any visible effects for lists.
      Parameters:
      indentation - the amount, in pixels, of extra indentation in treeView.
    • setModel

      @Deprecated public void setModel(@Nullable TreeModel model)
      Deprecated.
      Use ListView or ColumnView instead
      Sets the model for a GtkTreeView. If the this TreeView already has a model set, it will remove it before setting the new model. If model is null, then it will unset the old model.
      Parameters:
      model - The model.
    • setReorderable

      @Deprecated public void setReorderable(boolean reorderable)
      Deprecated.
      Use ListView or ColumnView instead

      This function is a convenience function to allow you to reorder models that support the GtkTreeDragSourceIface and the GtkTreeDragDestIface. Both GtkTreeStore and GtkListStore support these. If reorderable is true, then the user can reorder the model by dragging and dropping rows. The developer can listen to these changes by connecting to the model’s GtkTreeModel::row-inserted and GtkTreeModel::row-deleted signals. The reordering is implemented by setting up the tree view as a drag source and destination. Therefore, drag and drop can not be used in a reorderable view for any other purpose.

      This function does not give you any degree of control over the order -- any reordering is allowed. If more control is needed, you should probably handle drag and drop manually.

      Parameters:
      reorderable - true, if the tree can be reordered.
    • setRowSeparatorFunc

      @Deprecated public void setRowSeparatorFunc(@Nullable TreeViewRowSeparatorFunc func)
      Deprecated.
      Use ListView or ColumnView instead
      Sets the row separator function, which is used to determine whether a row should be drawn as a separator. If the row separator function is null, no separators are drawn. This is the default value.
      Parameters:
      func - a GtkTreeViewRowSeparatorFunc
    • setRubberBanding

      @Deprecated public void setRubberBanding(boolean enable)
      Deprecated.
      Use ListView or ColumnView instead
      Enables or disables rubber banding in treeView. If the selection mode is SelectionMode.MULTIPLE, rubber banding will allow the user to select multiple rows by dragging the mouse.
      Parameters:
      enable - true to enable rubber banding
    • setSearchColumn

      @Deprecated public void setSearchColumn(int column)
      Deprecated.
      Use ListView or ColumnView instead

      Sets column as the column where the interactive search code should search in for the current model.

      If the search column is set, users can use the “start-interactive-search” key binding to bring up search popup. The enable-search property controls whether simply typing text will also start an interactive search.

      Note that column refers to a column of the current model. The search column is reset to -1 when the model is changed.

      Parameters:
      column - the column of the model to search in, or -1 to disable searching
    • setSearchEntry

      @Deprecated public void setSearchEntry(@Nullable Editable entry)
      Deprecated.
      Use ListView or ColumnView instead
      Sets the entry which the interactive search code will use for this treeView. This is useful when you want to provide a search entry in our interface at all time at a fixed position. Passing null for entry will make the interactive search code use the built-in popup entry again.
      Parameters:
      entry - the entry the interactive search code of this TreeView should use
    • setSearchEqualFunc

      @Deprecated public void setSearchEqualFunc(@Nullable TreeViewSearchEqualFunc searchEqualFunc)
      Deprecated.
      Use ListView or ColumnView instead
      Sets the compare function for the interactive search capabilities; note that somewhat like strcmp() returning 0 for equality GtkTreeViewSearchEqualFunc returns false on matches.
      Parameters:
      searchEqualFunc - the compare function to use during the search
    • setShowExpanders

      @Deprecated public void setShowExpanders(boolean enabled)
      Deprecated.
      Use ListView or ColumnView instead
      Sets whether to draw and enable expanders and indent child rows in treeView. When disabled there will be no expanders visible in trees and there will be no way to expand and collapse rows by default. Also note that hiding the expanders will disable the default indentation. You can set a custom indentation in this case using gtk_tree_view_set_level_indentation(). This does not have any visible effects for lists.
      Parameters:
      enabled - true to enable expander drawing, false otherwise.
    • setTooltipCell

      @Deprecated public void setTooltipCell(Tooltip tooltip, @Nullable TreePath path, @Nullable TreeViewColumn column, @Nullable CellRenderer cell)
      Deprecated.
      Use ListView or ColumnView instead

      Sets the tip area of tooltip to the area path, column and cell have in common. For example if path is null and column is set, the tip area will be set to the full area covered by column. See also gtk_tooltip_set_tip_area().

      Note that if path is not specified and cell is set and part of a column containing the expander, the tooltip might not show and hide at the correct position. In such cases path must be set to the current node under the mouse cursor for this function to operate correctly.

      See also gtk_tree_view_set_tooltip_column() for a simpler alternative.

      Parameters:
      tooltip - a GtkTooltip
      path - a GtkTreePath
      column - a GtkTreeViewColumn
      cell - a GtkCellRenderer
    • setTooltipColumn

      @Deprecated public void setTooltipColumn(int column)
      Deprecated.
      Use ListView or ColumnView instead

      If you only plan to have simple (text-only) tooltips on full rows, you can use this function to have GtkTreeView handle these automatically for you. column should be set to the column in treeView’s model containing the tooltip texts, or -1 to disable this feature.

      When enabled, GtkWidget:has-tooltip will be set to true and this TreeView will connect a GtkWidget::query-tooltip signal handler.

      Note that the signal handler sets the text with gtk_tooltip_set_markup(), so &, <, etc have to be escaped in the text.

      Parameters:
      column - an integer, which is a valid column number for treeView’s model
    • setTooltipRow

      @Deprecated public void setTooltipRow(Tooltip tooltip, TreePath path)
      Deprecated.
      Use ListView or ColumnView instead
      Sets the tip area of tooltip to be the area covered by the row at path. See also gtk_tree_view_set_tooltip_column() for a simpler alternative. See also gtk_tooltip_set_tip_area().
      Parameters:
      tooltip - a GtkTooltip
      path - a GtkTreePath
    • unsetRowsDragDest

      @Deprecated public void unsetRowsDragDest()
      Deprecated.
      Use ListView or ColumnView instead
      Undoes the effect of gtk_tree_view_enable_model_drag_dest(). Calling this method sets GtkTreeView:reorderable to false.
    • unsetRowsDragSource

      @Deprecated public void unsetRowsDragSource()
      Deprecated.
      Use ListView or ColumnView instead
      Undoes the effect of gtk_tree_view_enable_model_drag_source(). Calling this method sets GtkTreeView:reorderable to false.
    • columnsChanged

      protected void columnsChanged()
      Deprecated.
    • cursorChanged

      protected void cursorChanged()
      Deprecated.
    • expandCollapseCursorRow

      protected boolean expandCollapseCursorRow(boolean logical, boolean expand, boolean openAll)
      Deprecated.
    • moveCursor

      protected boolean moveCursor(MovementStep step, int count, boolean extend, boolean modify)
      Deprecated.
    • rowCollapsed

      protected void rowCollapsed(TreeIter iter, TreePath path)
      Deprecated.
    • rowExpanded

      protected void rowExpanded(TreeIter iter, TreePath path)
      Deprecated.
    • selectAll

      protected boolean selectAll()
      Deprecated.
    • selectCursorParent

      protected boolean selectCursorParent()
      Deprecated.
    • selectCursorRow

      protected boolean selectCursorRow(boolean startEditing)
      Deprecated.
    • startInteractiveSearch

      protected boolean startInteractiveSearch()
      Deprecated.
    • testCollapseRow

      protected boolean testCollapseRow(TreeIter iter, TreePath path)
      Deprecated.
    • testExpandRow

      protected boolean testExpandRow(TreeIter iter, TreePath path)
      Deprecated.
    • toggleCursorRow

      protected boolean toggleCursorRow()
      Deprecated.
    • unselectAll

      protected boolean unselectAll()
      Deprecated.
    • onColumnsChanged

      Deprecated.
      The number of columns of the treeview has changed.
      Parameters:
      handler - the signal handler
      Returns:
      a signal handler ID to keep track of the signal connection
      See Also:
    • emitColumnsChanged

      public void emitColumnsChanged()
      Deprecated.
      Emits the "columns-changed" signal. See onColumnsChanged(TreeView.ColumnsChangedCallback).
    • onCursorChanged

      Deprecated.
      The position of the cursor (focused cell) has changed.
      Parameters:
      handler - the signal handler
      Returns:
      a signal handler ID to keep track of the signal connection
      See Also:
    • emitCursorChanged

      public void emitCursorChanged()
      Deprecated.
      Emits the "cursor-changed" signal. See onCursorChanged(TreeView.CursorChangedCallback).
    • onExpandCollapseCursorRow

    • emitExpandCollapseCursorRow

      public boolean emitExpandCollapseCursorRow(boolean object, boolean p0, boolean p1)
      Deprecated.
    • onMoveCursor

      Deprecated.

      The GtkTreeView::move-cursor signal is a Gtk.SignalAction which gets emitted when the user presses one of the cursor keys.

      Applications should not connect to it, but may emit it with g_signal_emit_by_name() if they need to control the cursor programmatically. In contrast to gtk_tree_view_set_cursor() and gtk_tree_view_set_cursor_on_cell() when moving horizontally GtkTreeView::move-cursor does not reset the current selection.

      Parameters:
      handler - the signal handler
      Returns:
      a signal handler ID to keep track of the signal connection
      See Also:
    • emitMoveCursor

      public boolean emitMoveCursor(MovementStep step, int direction, boolean extend, boolean modify)
      Deprecated.
      Emits the "move-cursor" signal. See onMoveCursor(TreeView.MoveCursorCallback).
    • onRowActivated

      Deprecated.

      The "row-activated" signal is emitted when the method rowActivated(TreePath, TreeViewColumn) is called.

      This signal is emitted when the user double-clicks a treeview row with the Gtk.TreeView:activate-on-single-click property set to false, or when the user single-clicks a row when that property set to true.

      This signal is also emitted when a non-editable row is selected and one of the keys: Space, Shift+Space, Return or Enter is pressed.

      For selection handling refer to the tree widget conceptual overview as well as GtkTreeSelection.

      Parameters:
      handler - the signal handler
      Returns:
      a signal handler ID to keep track of the signal connection
      See Also:
    • emitRowActivated

      public void emitRowActivated(@Nullable TreePath path, @Nullable TreeViewColumn column)
      Deprecated.
      Emits the "row-activated" signal. See onRowActivated(TreeView.RowActivatedCallback).
    • onRowCollapsed

      Deprecated.
      The given row has been collapsed (child nodes are hidden).
      Parameters:
      handler - the signal handler
      Returns:
      a signal handler ID to keep track of the signal connection
      See Also:
    • emitRowCollapsed

      public void emitRowCollapsed(@Nullable TreeIter iter, @Nullable TreePath path)
      Deprecated.
      Emits the "row-collapsed" signal. See onRowCollapsed(TreeView.RowCollapsedCallback).
    • onRowExpanded

      Deprecated.
      The given row has been expanded (child nodes are shown).
      Parameters:
      handler - the signal handler
      Returns:
      a signal handler ID to keep track of the signal connection
      See Also:
    • emitRowExpanded

      public void emitRowExpanded(@Nullable TreeIter iter, @Nullable TreePath path)
      Deprecated.
      Emits the "row-expanded" signal. See onRowExpanded(TreeView.RowExpandedCallback).
    • onSelectAll

    • emitSelectAll

      public boolean emitSelectAll()
      Deprecated.
    • onSelectCursorParent

    • emitSelectCursorParent

      public boolean emitSelectCursorParent()
      Deprecated.
    • onSelectCursorRow

    • emitSelectCursorRow

      public boolean emitSelectCursorRow(boolean object)
      Deprecated.
    • onStartInteractiveSearch

    • emitStartInteractiveSearch

      public boolean emitStartInteractiveSearch()
      Deprecated.
    • onTestCollapseRow

      Deprecated.
      The given row is about to be collapsed (hide its children nodes). Use this signal if you need to control the collapsibility of individual rows.
      Parameters:
      handler - the signal handler
      Returns:
      a signal handler ID to keep track of the signal connection
      See Also:
    • emitTestCollapseRow

      public boolean emitTestCollapseRow(@Nullable TreeIter iter, @Nullable TreePath path)
      Deprecated.
      Emits the "test-collapse-row" signal. See onTestCollapseRow(TreeView.TestCollapseRowCallback).
    • onTestExpandRow

      Deprecated.
      The given row is about to be expanded (show its children nodes). Use this signal if you need to control the expandability of individual rows.
      Parameters:
      handler - the signal handler
      Returns:
      a signal handler ID to keep track of the signal connection
      See Also:
    • emitTestExpandRow

      public boolean emitTestExpandRow(@Nullable TreeIter iter, @Nullable TreePath path)
      Deprecated.
      Emits the "test-expand-row" signal. See onTestExpandRow(TreeView.TestExpandRowCallback).
    • onToggleCursorRow

    • emitToggleCursorRow

      public boolean emitToggleCursorRow()
      Deprecated.
    • onUnselectAll

    • emitUnselectAll

      public boolean emitUnselectAll()
      Deprecated.
    • builder

      public static TreeView.Builder<? extends TreeView.Builder> builder()
      Deprecated.
      A TreeView.Builder object constructs a TreeView with the specified properties. Use the various set...() methods to set properties, and finish construction with TreeView.Builder.build().
      Returns:
      the builder object