ontopoly.utils
Class QueryTreeModel

java.lang.Object
  extended by javax.swing.tree.DefaultTreeModel
      extended by ontopoly.utils.QueryTreeModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.tree.TreeModel

public abstract class QueryTreeModel
extends javax.swing.tree.DefaultTreeModel

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, listenerList, root
 
Constructor Summary
QueryTreeModel(TopicMap topicMap, java.lang.String query, java.util.Map<java.lang.String,?> params)
           
 
Method Summary
protected abstract  javax.swing.tree.DefaultMutableTreeNode createTreeNode(java.lang.Object o)
           
protected  boolean filter(java.lang.Object p, java.lang.Object c)
          Filter method that should return true if objects should be part of result set.p
 
Methods inherited from class javax.swing.tree.DefaultTreeModel
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryTreeModel

public QueryTreeModel(TopicMap topicMap,
                      java.lang.String query,
                      java.util.Map<java.lang.String,?> params)
Method Detail

filter

protected boolean filter(java.lang.Object p,
                         java.lang.Object c)
Filter method that should return true if objects should be part of result set.p

Parameters:
p - Parent object.
c - Child object.

createTreeNode

protected abstract javax.swing.tree.DefaultMutableTreeNode createTreeNode(java.lang.Object o)


Copyright © 2000-2012 Ontopia.