org.gnu.gtk

Class TreeModelFilter


public class TreeModelFilter
extends TreeModel

Class for filtering the visible rows of a base TreeModel. This class allows the underlying TreeModel to be filtered in 2 ways:
  1. setVisibleColumn(DataColumnBoolean) - designates a boolean data column in the underlying TreeModel that serves as "visible" marker each row. If the column's value is true, the row will be visible. If the column's value is false, the row will not be visible.
  2. setVisibleMethod(TreeModelFilterVisibleMethod) - designates a special class which can determine if a given row should be visible.
Once a visible column or method has been set, their is no way of unsetting it.

Constructor Summary

TreeModelFilter(TreeModel model)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
TreeModelFilter(TreeModel model, TreePath root)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Method Summary

void
clearCache()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
TreePath
convertChildPathToPath(TreePath child)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
TreePath
convertPathToChildPath(TreePath path)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
TreeModel
getModel()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
static Type
getType()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
void
refilter()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
void
setVisibleColumn(DataColumnBoolean column)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
void
setVisibleMethod(TreeModelFilterVisibleMethod method)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Methods inherited from class org.gnu.gtk.TreeModel

addListener, getColumnCount, getDataBlockCount, getEventListenerClass, getEventType, getFirstIter, getIter, getIter, getType, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, removeListener

Constructor Details

TreeModelFilter

public TreeModelFilter(TreeModel model)

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Create a new TreeModelFilter using the given TreeModel as the underlying data model.

TreeModelFilter

public TreeModelFilter(TreeModel model,
                       TreePath root)

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Create a new TreeModelFilter using the given TreeModel as the underlying data model, and using root as the virtual root.

Method Details

clearCache

public void clearCache()

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Clear the filter of any cached iterators. This should almost never be called.

convertChildPathToPath

public TreePath convertChildPathToPath(TreePath child)

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Convert the given child TreePath to a path relative to this filter.

convertPathToChildPath

public TreePath convertPathToChildPath(TreePath path)

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Convert the given TreePath to a path relative to the child model.

getModel

public TreeModel getModel()

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Return the underlying data model.

getType

public static Type getType()

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Retrieve the runtime type used by the GLib library.

refilter

public void refilter()

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Re-evaluate the visiblity of each row in the underlying data model. This should be called after changing the values in the underlying data model.

setVisibleColumn

public void setVisibleColumn(DataColumnBoolean column)

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Designate a boolean data column in the underlying TreeModel that will serve as the "visible" marker for each row. If the column's value is true, the row will be visible. If the column's value is false, the row will not be visible.

NOTE: There is no unset method.


setVisibleMethod

public void setVisibleMethod(TreeModelFilterVisibleMethod method)

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Designate the given TreeModelFilterVisibleMethod object with the responsibility of determining if the rows in the underlying TreeModel should be visible.

NOTE: There is no unset method.