Construct the widget.
Add a new column to the tree view.
Add a row to the tree view.
Add an array of rowr to the tree view.
Delete all rows in the widget.
Show all data columns in the event some or all are hidden.
Show the data columns that relate to the indexes passed.
Get the row(s) selected in the tree view.
Hide the headings from all columns.
Hide the tree view column.
Convenience method to remove the tree view column command.
Convenience method to set the tree column heading text.
Convenience method to set the tree column command to be executed when clicking on the heading.
Convenience method to set the tree column heading image.
Convenience method to set the minium width of the tree column.
Set the selection mode.
Convenience method to enable or disable stretching for the tree column. This controls how this column react when other columns or the parent widget is resized.
Set image and colors for a specific tag. Use colors from the preset color list or a web style hex color.
Convenience method to set the width of the tree column.
Show the headings for all columns.
Show the tree view column.
Set the value of a data column, given a row id. Row id's are populated within a tree view row object once that row has been inserted into the tree view.
Mixin common commands.
Get the columns.
Set the height of the widget if the geometry manager allows.
Set the amount of padding within the widget.
Set the widget's state.
Get the widget's state.
Test if a widget is in a particular state.
Remove the widget's state.
Reset the widget's state to default.
Set the widget's style.
Get the widget's style.
Set if the widget can recieve focus during keyboard traversal.
Get if the widget can recieve focus during keyboard traversal.
Geometry method for loosely placing this widget inside its parent using a web browser model. Widgets flow around each other in the available space.
Geometry method for placing this widget inside its parent using an imaginary grid. Somewhat more direct and intuitive than pack. Choose grid for tabular layouts, and when there's no good reason to choose something else.
Geometry method for placing this widget inside its parent using absolute positioning.
Geometry method for placing this widget inside its parent using relative positioning. In this case the position and size is specified as a floating-point number between 0.0 and 1.0 relative to the height of the parent. 0.5 means the widget will be half as high as the parent and 1.0 means the widget will have the same height as the parent, and so on.
auto treeView = new TreeView() .setHeading("Text") .addRow(new TreeViewRow(["row1"])) .addRow(new TreeViewRow(["row2"])) .pack();
These are injected common commands that can also be used with this widget.
Height
Padding
XScrollCommand
YScrollCommand
Additional events that can also be bound to using the bind method.
<<PrevWindow>>, <<TreeviewClose>> <<TreeviewOpen>> <<TreeviewSelect>> <Alt-Key>, <B1-Leave>, <B1-Motion>, <Button-1>, <Button-4>, <Button-5>, <ButtonRelease-1>, <Control-Button-1>, <Double-Button-1>, <Key-Down>, <Key-F10>, <Key-Left>, <Key-Next>, <Key-Prior>, <Key-Return>, <Key-Right>, <Key-Tab>, <Key-Up>, <Key-space>, <Leave>, <Motion>, <Shift-Button-1>, <Shift-Button-4>, <Shift-Button-5>,
The treeview widget displays a hierarchical collection of items. Each item has a textual label, an optional image, and an optional list of data values.
There are two varieties of columns. The first is the main tree view column that is present all the time. The second are data columns that can be added when needed.
Each tree item has a list of tags, which can be used to associate event bindings and control their appearance. Treeview widgets support horizontal and vertical scrolling with the standard scroll commands.