File: TreeViewItem.schelp

package info (click to toggle)
supercollider 1%3A3.10.0%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 45,496 kB
  • sloc: cpp: 283,513; lisp: 74,040; ansic: 72,252; sh: 23,016; python: 7,175; makefile: 1,087; perl: 766; java: 677; yacc: 314; lex: 175; ruby: 136; objc: 65; xml: 15
file content (112 lines) | stat: -rw-r--r-- 2,988 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
CLASS:: TreeViewItem
summary:: An item in TreeView
categories:: GUI>Views

DESCRIPTION::

An instance of TreeViewItem represents an item in TreeView. There may be multiple instances representing the same item, e.g. after calling link::Classes/TreeView#-currentItem:: multiple times.

INSTANCEMETHODS::

PRIVATE:: prValidItem

METHOD:: index
	RETURNS:: An integer position of this item among its siblings.

METHOD:: parent
	RETURNS:: An new instance of TreeViewItem representing the parent item.

METHOD:: childAt
	RETURNS:: A new instance of TreeViewItem representing the child item at code::index::.

METHOD:: addChild
	Appends a new child to this item.

	ARGUMENT:: strings
		An array of Strings (or nil), each for the text of one data field.
	RETURNS::
		An instance of TreeViewItem representing the new item.

METHOD:: insertChild
	Inserts a new child to this item at code::index::.

	ARGUMENT:: index
		The position at which to insert the child.
	ARGUMENT:: strings
		An array of Strings (or nil), each for the text of one data field.
	RETURNS::
		An instance of TreeViewItem representing the new item.

METHOD:: strings
	The text in the data fields.

	ARGUMENT:: strings
		An array of Strings (or nil), each for the text of one data field.

METHOD:: setString
	Sets the text in the given data field.

	ARGUMENT:: column
		An integer index of a data field.
	ARGUMENT:: string
		A String or nil.

METHOD:: colors
	The background colors of the data fields.

	ARGUMENT:: colors
		An array of Colors, each for the color of one data field.

METHOD:: setColor
	Sets the background color of the given data field.

	ARGUMENT:: column
		An integer index of a data field.
	ARGUMENT:: color
		A Color.

METHOD:: textColors
	The text colors of the data fields.

	ARGUMENT:: textColors
		An array of Colors, each for the color of one data field.

METHOD:: setTextColor
	Sets the text color of the given data field.

	ARGUMENT:: column
		An integer index of a data field.
	ARGUMENT:: color
		A Color.

METHOD:: setView
	Places another view into the given data field. Only one view can be placed into a data field at once. If a view is already present, it will be removed and destroyed.

	If the number of data fields decreases due to a call to link::Classes/TreeView#-columns::, the views contained in removed data fields will also be removed and destroyed.

	ARGUMENT:: column
		An integer index of a data field.
	ARGUMENT:: view
		A View.

METHOD:: removeView
	Removes the view from the given data field, if any.

	ARGUMENT:: column
		An integer index of a data field.

METHOD:: view
	The view in the given data field.

	ARGUMENT:: column
		An integer index of a data field.

METHOD:: ==
	Implements equality comparison between two TreeViewItem instances. Two instances are equal if they represent the same item in TreeView.

	RETURNS:: A Boolean.

METHOD:: isNull
	Whether the item is invalid. After an item is removed, all related TreeViewItem instances become invalid.

	RETURNS:: A Boolean.