jTreeViewExtended
TreeViewExtended
Events:
- Cancel (OldText As String, NewText As String) As String
- Convert (Text As String, IsEditing As Boolean) As String
- Edit (Text As String) As Boolean
- Update (OldText As String, NewText As String) As String
Methods:
- Edit (Item As TreeItem)
Instructs the TreeView to begin editing the given item, if the TreeView is editable and all parent nodes of the item are expanded.
- ExpandFromRoot (Item As TreeItem)
Expands all parent nodes of the specified item.
- GetItemLevel (Item As TreeItem) As Int
Returns the number of parents of the given TreeItem.
- GetRowIndex (Item As TreeItem) As Int
Returns the index position of the given TreeItem, taking into account the current state of each TreeItem (i.e. whether or not it is expanded).
- GiveFocusTo (Index As Int)
Gives the focus to the item at the specified position.
- Initialize (arg1 As String)
- InitializeByExtending (TV As TreeView)
Shares the internal object of the specified TreeView with this TreeViewExtended. Thus any change to this TreeViewExtended will alter the original TreeView and vice versa.
The main use of this function is to extend a TreeView created with the designer (after it is loaded with LoadLayout).
- IsInitialized As Boolean
- RemoveNodeFromParent
- RequestFocus
- ScrollTo (Index As Int)
Scrolls the TreeView such that the item in the given index is visible.
- Search (StrToSearch As String, MatchCase As Boolean, MatchWholeWord As Boolean, MaxDepth As Int, StopAtFirst As Boolean) As List
Browses the tree to find all items containing the specified string. Returns a list of the found TreeItems.
MaxDepth: limits the search to the given "indentation" level (e.g. 1 limits the search to the root children). Set it to 0 or less to browse the whole tree.
StopAtFirst: stops searching when the first item is found.
- SetAlphaAnimated (arg0 As Int, arg1 As Double)
- SetCheckBoxesMode
- SetLayoutAnimated (arg0 As Int, arg1 As Double, arg2 As Double, arg3 As Double, arg4 As Double)
- SetSize (arg0 As Double, arg1 As Double)
- SetTreeViewCellFactory (EventPrefix As String)
Adds listeners to this TreeView to raise events when an item is rendered (Convert event) or edited (Edit event), and when a change is committed (Update event) or canceled (Cancel event).
Returning False in the Edit event prevents the item from being edited.
- Snapshot As Image
- Snapshot2 (arg0 As Paint) As Image
Properties:
- Alpha As Double
- ContextMenu As ContextMenu
- Editable As Boolean
Gets or sets whether the items of this TreeView can be edited. When True, this setting has no effect until listeners are added with SetTreeViewCellFactory.
- Enabled As Boolean
- FixedCellHeight As Double
Gets or sets the fixed height of all items. If this value is less than or equal to zero, then all items are individually sized (this is a slow operation).
- Height As Double [read only]
- Id As String
- Left As Double
- MouseCursor As Cursor
- Parent As Node [read only]
- PrefHeight As Double
- PrefWidth As Double
- Root As TreeItem [read only]
- SelectedIndex As Int
Gets or sets the index of the selected item.
- SelectedItem As TreeItem
Gets or sets the selected item.
- Style As String
- StyleClasses As List [read only]
- Tag As Object
- TooltipText As String
- Top As Double
- Visible As Boolean
- Width As Double [read only]
Author: F. Leneuf-Magaud (Informatix)