KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > tools > admingui > tree > IndexTreeModel


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 package com.sun.enterprise.tools.admingui.tree;
25
26 import com.iplanet.jato.model.TreeModel;
27 import com.iplanet.jato.model.ModelControlException;
28 import com.iplanet.jato.model.ValidationException;
29
30
31 public interface IndexTreeModel extends TreeModel {
32     /* Methods inherited from Model; listed here for reference.
33     public String getName();
34     public void setName(String value);
35     public Object getValue(String name);
36     public void setValue(String name, Object value);
37     public Object[] getValues(String name);
38     public void setValues(String name, Object[] values) throws ValidationException;
39     */

40     /* Methods inherited from TreeModel; listed here for reference.
41     public String getNodeName() throws ModelControlException;
42     public String getNodeType() throws ModelControlException;
43     public int getNodeLevel();
44     public String getNodeID();
45     public boolean isParentNode();
46     public boolean isChildNode();
47     public int getTraversalType() throws ModelControlException;
48     public void setTraversalType(int value) throws ModelControlException;
49     public void beforeRoot() throws ModelControlException;
50     public void root() throws ModelControlException;
51     public boolean nextNode() throws ModelControlException;
52     public boolean nextNode(int nextNodeType) throws ModelControlException;
53     public boolean previousNode() throws ModelControlException;
54     */

55     public IndexTreeNode getNode(String JavaDoc nodePath) throws NodeNotFoundException;
56     public IndexTreeNode getNodeByName(String JavaDoc nodeNamePath);
57     public IndexTreeNode getNodeByUniqueID(String JavaDoc id, String JavaDoc ChildName, IndexTreeNode searchFrom);
58     public Object JavaDoc getCurrentNode();
59     public void setCurrentNode(String JavaDoc nodeID) throws ModelControlException, Exception JavaDoc;
60     public void setCurrentNode(IndexTreeNode node);
61     public String JavaDoc getNodeHID();
62     public boolean firstChild() throws ModelControlException;
63     public boolean parent() throws ModelControlException;
64     public boolean nextSibling() throws ModelControlException;
65     public String JavaDoc getIconName(boolean expanded);
66     public boolean isInitialExpand();
67     public String JavaDoc getType(String JavaDoc string);
68     public IndexTreeNode getRoot();
69     public void setRoot(IndexTreeNode node);
70     public int getNextNodeID();
71     public String JavaDoc getStateDataName();
72
73     public static final String JavaDoc FIELD_ID = "id";
74     public static final String JavaDoc FIELD_NAME = "name";
75     public static final String JavaDoc FIELD_REFRESH = "refresh";
76     public static final String JavaDoc FIELD_UNIQUEID = "UniqueID";
77     public static final String JavaDoc FIELD_DISPLAYNAME= "displayName";
78
79     // Node Types:
80
public static final String JavaDoc CONTAINER = "container"; // a node with kids
81
public static final String JavaDoc LEAF = "leaf"; // a node with no kids
82
public static final String JavaDoc ROOT = "root"; // special case for the root node.
83
}
84
Popular Tags