001: package com.salmonllc.xml;
002:
003: /////////////////////////
004: //$Archive: /JADE/SourceCode/com/salmonllc/xml/Tree.java $
005: //$Author: Srufle $
006: //$Revision: 7 $
007: //$Modtime: 7/31/02 6:11p $
008: /////////////////////////
009: /**
010: * Datastructure used to upload the Tree XML file. Tree contains many TreeItem objects which are stored in form of a Vector.
011: * Creation date: (8/21/01 4:53:27 PM)
012: * @author: Deepak Agarwal
013: */
014: public class Tree {
015:
016: private String fieldName = "";
017:
018: private String fieldExpandImage = "";
019: private String fieldContractImage = "";
020: private String fieldNullImage = "";
021:
022: private String fieldTarget = "";
023: private String fieldSelectMode = "";
024: private boolean fieldShowRoot = true;
025: private String fieldTreeMode = "";
026: private boolean fieldVisible = true;
027:
028: public java.util.Vector vctChilds = new java.util.Vector();
029:
030: /**
031: * Tree constructor comment.
032: */
033: public Tree() {
034: super ();
035: }
036:
037: /**
038: * This method returns a vector of all Tree Child Nodes
039: * Creation date: (8/21/01 4:54:42 PM)
040: * @return java.util.Vector
041: */
042: public java.util.Vector getChilds() {
043: return vctChilds;
044: }
045:
046: /**
047: * Gets the Tree Contract Image
048: * Creation date: (8/21/01 5:02:02 PM)
049: * @return java.lang.String
050: */
051: public java.lang.String getContractImage() {
052: return fieldContractImage;
053: }
054:
055: /**
056: * Gets the expand image for a tree node
057: * Creation date: (8/21/01 5:02:02 PM)
058: * @return java.lang.String
059: */
060: public java.lang.String getExpandImage() {
061: return fieldExpandImage;
062: }
063:
064: /**
065: * Gets the name for the tree
066: * Creation date: (8/21/01 5:02:02 PM)
067: * @return java.lang.String
068: */
069: public java.lang.String getName() {
070: return fieldName;
071: }
072:
073: /**
074: * Gets the null image for the Tree Component
075: * Creation date: (8/21/01 5:02:02 PM)
076: * @return java.lang.String
077: */
078: public java.lang.String getNullImage() {
079: return fieldNullImage;
080: }
081:
082: /**
083: * Gets the Seletc mode for the tree. Single Select or Multiple Select
084: * Creation date: (8/21/01 5:02:02 PM)
085: * @return java.lang.String
086: */
087: public java.lang.String getSelectMode() {
088: return fieldSelectMode;
089: }
090:
091: /**
092: * Gets the source for the target for the tree display
093: * Creation date: (8/21/01 5:02:02 PM)
094: * @return java.lang.String
095: */
096: public java.lang.String getTarget() {
097: return fieldTarget;
098: }
099:
100: /**
101: * Creation date: (8/21/01 5:02:02 PM)
102: * @return java.lang.String
103: */
104: public java.lang.String getTreeMode() {
105: return fieldTreeMode;
106: }
107:
108: /**
109: * Gets the flag ' is Show root' for Tree Tag
110: * Creation date: (8/21/01 5:02:02 PM)
111: * @return boolean
112: */
113: public boolean isShowRoot() {
114: return fieldShowRoot;
115: }
116:
117: /**
118: * Gets the flag 'Visible' for Tree Tag
119: * Creation date: (8/21/01 5:02:02 PM)
120: * @return boolean
121: */
122: public boolean isVisible() {
123: return fieldVisible;
124: }
125:
126: /**
127: * Sets the child of a Tree node
128: * Creation date: (8/21/01 4:54:42 PM)
129: * @param newChilds java.util.Vector
130: */
131: public void setChilds(java.util.Vector newChilds) {
132: vctChilds = newChilds;
133: }
134:
135: /**
136: * Sets the contract image
137: * Creation date: (8/21/01 5:02:02 PM)
138: * @param newContractImage java.lang.String
139: */
140: public void setContractImage(java.lang.String newContractImage) {
141: fieldContractImage = newContractImage;
142: }
143:
144: /**
145: * Sets the exapand image
146: * Creation date: (8/21/01 5:02:02 PM)
147: * @param newExpandImage java.lang.String
148: */
149: public void setExpandImage(java.lang.String newExpandImage) {
150: fieldExpandImage = newExpandImage;
151: }
152:
153: /**
154: * Sets the name of the component
155: * Creation date: (8/21/01 5:02:02 PM)
156: * @param newName java.lang.String
157: */
158: public void setName(java.lang.String newName) {
159: fieldName = newName;
160: }
161:
162: /**
163: * Sets the null image for the tree
164: * Creation date: (8/21/01 5:02:02 PM)
165: * @param newNullImage java.lang.String
166: */
167: public void setNullImage(java.lang.String newNullImage) {
168: fieldNullImage = newNullImage;
169: }
170:
171: /**
172: * Sets the select Mode for the tree
173: * Creation date: (8/21/01 5:02:02 PM)
174: * @param newSelectMode java.lang.String
175: */
176: public void setSelectMode(java.lang.String newSelectMode) {
177: fieldSelectMode = newSelectMode;
178: }
179:
180: /**
181: * Sets the flag to 'Show root'
182: * Creation date: (8/21/01 5:02:02 PM)
183: * @param newShowRoot boolean
184: */
185: public void setShowRoot(boolean newShowRoot) {
186: fieldShowRoot = newShowRoot;
187: }
188:
189: /**
190: * Sets the source for the target display for the tree
191: * Creation date: (8/21/01 5:02:02 PM)
192: * @param newTarget java.lang.String
193: */
194: public void setTarget(java.lang.String newTarget) {
195: fieldTarget = newTarget;
196: }
197:
198: /**
199: * Sets the tree mode
200: * Creation date: (8/21/01 5:02:02 PM)
201: * @param newTreeMode java.lang.String
202: */
203: public void setTreeMode(java.lang.String newTreeMode) {
204: fieldTreeMode = newTreeMode;
205: }
206:
207: /**
208: * Sets the visibility of Tree
209: * Creation date: (8/21/01 5:02:02 PM)
210: * @param newVisible boolean
211: */
212: public void setVisible(boolean newVisible) {
213: fieldVisible = newVisible;
214: }
215: }
|