Project:DUI

Class List Class Hierarchy
Summary: Ctors Methods Mixins

Module dui.TreeIter

Class TreeIter

Implemented interfaces:


public class

TreeIter



A representation of a tree or list row.
I would say that someone forgot to create a proper object TreeIter. Anyway GTK+ claims to be object oriented but it only has inherintance.

Constructor Summary
(GtkTreeIter *iter)
          
public ()
          creates a new tree iteractor.
(TreeModel treeModel, TreePath treePath)
          

Methods Summary
public void setModel(GtkTreeModel *gtkTreeModel)
          
void setModel(TreeModel treeModel)
          
GtkTreeIter* getIter()
          Gets the GtkTreeIter
GtkTreeIter* gtkI()
          
void dump()
          debuging only
void getValue(gint column, Value value)
          Get Value
String getValueString(gint column)
          Get the value of a column as a string
int getValueInt(gint column)
          Get the value of a column as an int
TreeIter getParent()
          Gets the parent of this iter
TreeIter getGrandParent()
          
TreePath getTreePath()
          
String getVisiblePath(char separator)
          This return the path visible to the user.
String getVisiblePath(String separator)
          


setModel

public void setModel(GtkTreeModel *gtkTreeModel)

setModel

void setModel(TreeModel treeModel)



ctor(TreeIter)(GtkTreeIter *iter)



public ctor(TreeIter)()
creates a new tree iteractor.
used TreeView.createIter and TreeView.append() to create iteractor for a tree or list

getIter

GtkTreeIter* getIter()
Gets the GtkTreeIter

Returns:
GtkTreeIter

gtkI

GtkTreeIter* gtkI()

dump

void dump()
debuging only

getValue

void getValue(gint column, Value value)
Get Value

Parameters:
iter -
column -
value -

getValueString

String getValueString(gint column)
Get the value of a column as a string
@para column the column number

Returns:
a string representing the value of the column

getValueInt

int getValueInt(gint column)
Get the value of a column as an int
@para column the column number

Returns:
a string representing the value of the column

getParent

TreeIter getParent()
Gets the parent of this iter

Parameters:
child -

Returns:
the parent iter or null if can't get parent or an error occured



ctor(TreeIter)(TreeModel treeModel, TreePath treePath)

getGrandParent

TreeIter getGrandParent()

getTreePath

TreePath getTreePath()

getVisiblePath

String getVisiblePath(char separator)
This return the path visible to the user.

getVisiblePath

String getVisiblePath(String separator)