DAZ Script |
---|
DzListViewItem ( DzListView parent, Number id=-1 ) |
DzListViewItem ( DzListViewItem parent, Number id=-1 ) |
DAZ Script | |
---|---|
void | addDataItem ( String key, Object val ) |
Number | childCount () |
Number | compare ( DzListViewItem item, Number column, Boolean ascending ) |
void | deleteItem ( DzListViewItem item ) |
Number | depth () |
DzListViewItem | firstChild () |
Object | getDataItem ( String key ) |
Number | getNumDataItems () |
void | insertItem ( DzListViewItem newChild ) |
DzListViewItem | itemAbove () |
DzListViewItem | itemBelow () |
String | key ( Number column, Boolean ascending ) |
DzListView | listView () |
void | moveItem ( DzListViewItem item ) |
DzListViewItem | nextSibling () |
DzListViewItem | parent () |
void | removeItem ( DzListViewItem item ) |
Boolean | renameEnabled ( Number column ) |
void | setPixmap ( Number column, Pixmap pixmap ) |
void | setRenameEnabled ( Number column, Boolean yesNo ) |
void | setText ( Number column, String text ) |
void | sort () |
void | sortChildItems ( Number column, Boolean ascending ) |
void | startRename ( Number column ) |
String | text ( Number column ) |
This is not a widget, but a helper for working with DzListView. Each DzListViewItem represents a single item in a list view - add items to a list view by creating a new DzListViewItem that is a child of the list view, or a child of another list view item in the list view.
Holds whether or not the item can be dragged.
Holds whether or not the item can have other items dropped on it.
Holds whether or not the item can be enabled .
Holds whether or not the item can be expanded (opened).
Holds the height of the item.
Holds the identifier for this item. (Read Only)
Holds whether or not the item can be displayed on multiple lines.
Holds whether or not the item is expanded (open) or collapsed (closed).
Holds whether or not the item can be selected.
Holds whether or not the item is selected.
Holds whether or not the item is visible.
DzListViewItem( DzListView parent, Number id=-1 )
Creates a list view item at the root level of the specified list view
Parameter(s):
DzListViewItem( DzListViewItem parent, Number id=-1 )
Creates a list view item as a child of the specified list view item
Parameter(s):
void : addDataItem( String key, Object val )
Adds an arbitrary data item to be stored with the item.
Parameter(s):
Number : childCount()
Return Value:
Number : compare( DzListViewItem item, Number column, Boolean ascending )
Compares the specified item with this item in the specified column (if any).
Parameter(s):
Return Value:
item
, 0 if they are equal, and 1 if this item is greater than item
.void : deleteItem( DzListViewItem item )
Deletes an item from this item's list of child items.
Parameter(s):
Return Value:
DzListViewItem : firstChild()
Return Value:
Object : getDataItem( String key )
Parameter(s):
Return Value:
Return Value:
void : insertItem( DzListViewItem newChild )
Inserts an item as a child of this item.
Parameter(s):
DzListViewItem : itemAbove()
Return Value:
DzListViewItem : itemBelow()
Return Value:
String : key( Number column, Boolean ascending )
Parameter(s):
Return Value:
column
- i.e., text()DzListView : listView()
Return Value:
void : moveItem( DzListViewItem item )
Moves this item to be after the specified item, which must be one of its siblings.
Parameter(s):
DzListViewItem : nextSibling()
Return Value:
DzListViewItem : parent()
Return Value:
void : removeItem( DzListViewItem item )
Removes an item from the children of this item.
Parameter(s):
Boolean : renameEnabled( Number column )
Parameter(s):
Return Value:
void : setPixmap( Number column, Pixmap pixmap )
Sets the pixmap for this item in the specified column.
Parameter(s):
void : setRenameEnabled( Number column, Boolean yesNo )
Sets whether or not the text in the specified column can be changed by the user.
Parameter(s):
void : setText( Number column, String text )
Sets the text for this item in the specified column.
Parameter(s):
void : sort()
Sorts the children of this item according to the current sorting column and order.
void : sortChildItems( Number column, Boolean ascending )
Sorts the child items of this item by the specified column in the specified order.
Parameter(s):
void : startRename( Number column )
Starts a rename operation.
Parameter(s):
String : text( Number column )
Parameter(s):
Return Value: