Class gtk.TreeStore
Defined in: jsgtk_merge_for_doc.js.
Constructor Attributes | Constructor Name and Description |
---|---|
gtk.TreeStore(header)
TreeStore is a helper or model or subordinate class used to create a model for other class applying in
MVC (Model View Controller) and MVP (Model View Presenter) as development concept.
|
Method Attributes | Method Name and Description |
---|---|
add(childModel)
Method to push or append a child to be the last child in an array
|
|
append(parent, row)
Method to append a new row to the liststore
|
|
appendNodes(parent, row)
Method to append a new node
|
|
filter(value)
Method to search and filter child/children
|
|
getChild(index)
Method to get a child given an index value
|
|
getChildByIndex(index)
Method to get a child given its index value
|
|
getChildByPath(path)
Method to get a child given its path value
|
|
Method to get all children
|
|
getChldBy(valueMember, value)
Method to get a child given its value member
|
|
Method to get a model type or name
|
|
remove(child)
Method to remove or delete a child from the list of children
|
|
search(text, children)
Method to search through all children given text and all children
|
Class Detail
gtk.TreeStore(header)
TreeStore is a helper or model or subordinate class used to create a model for other class applying in
MVC (Model View Controller) and MVP (Model View Presenter) as development concept.
- Parameters:
- header
Method Detail
add(childModel)
Method to push or append a child to be the last child in an array
- Parameters:
- {Object} childModel
- The object of a child to be passed
{Object}
append(parent, row)
Method to append a new row to the liststore
- Parameters:
- {Object} parent
- An object instantiated from gtk.TreeIter
- {Object} row
- A tuple or list containing ordered column values to be set in the new row
- Returns:
- {object} A gtk.TreeIter pointing to the new row
{Object}
appendNodes(parent, row)
Method to append a new node
- Parameters:
- {Object} parent
- An object instantiated from gtk.TreeIter
- {Object} row
- A tuple or list containing ordered column values to be set in the new row
- Returns:
- {Object} All children models
{Object}
filter(value)
Method to search and filter child/children
- Parameters:
- {String} value
- The object of a child to be passed
- Returns:
- {Object} A found object from all children
{Object}
getChild(index)
Method to get a child given an index value
- Parameters:
- {Integer} index
- The integer value as an index of the to-be-wanted child
- Returns:
- {Object} The object of the child to be returned
{Object}
getChildByIndex(index)
Method to get a child given its index value
- Parameters:
- {Integer} index
- An index value to be passed
- Returns:
- {Object} An object of a child
{Object}
getChildByPath(path)
Method to get a child given its path value
- Parameters:
- {String} path
- A path value to be looked for
- Returns:
- {Object} An object of a child
{Array}
getChildren()
Method to get all children
- Returns:
- {Array} An array of objects of a children
{Object}
getChldBy(valueMember, value)
Method to get a child given its value member
- Parameters:
- {String} valueMember
- A name of its valued member
- {String} value
- A value to be set
- Returns:
- {Object} A model of the child
{String}
getModelType()
Method to get a model type or name
- Returns:
- {String} A type of model name
remove(child)
Method to remove or delete a child from the list of children
- Parameters:
- {Object} child
- The object of a child to be removed
{Object}
search(text, children)
Method to search through all children given text and all children
- Parameters:
- {String} text
- The string value to be wanted to search for
- {Array} children
- The array of children objects
- Returns:
- {Object} The object of the found child