001: package com.salmonllc.xml;
002:
003: /////////////////////////
004: //$Archive: /JADE/SourceCode/com/salmonllc/xml/TreeItemAddImage.java $
005: //$Author: Srufle $
006: //$Revision: 7 $
007: //$Modtime: 7/31/02 7:13p $
008: /////////////////////////
009: /**
010: * This datastructure is used to store the attributes for Image which is added to a node, TreeItem.
011: * Creation date: (8/21/01 4:57:38 PM)
012: * @author: DeepakAgarwal
013: */
014: public class TreeItemAddImage {
015:
016: private String fieldSrc = "";
017: private String fieldHref = "";
018: private String fieldText = "";
019: private boolean fieldVisible = true;
020: private String fieldName = "";
021:
022: /**
023: * TreeItemAddImage constructor comment.
024: */
025: public TreeItemAddImage() {
026: super ();
027: }
028:
029: /**
030: * Gets the link, href, if specified for additional image on tree nodes
031: * Creation date: (8/21/01 4:59:02 PM)
032: * @return java.lang.String
033: */
034: public java.lang.String getHref() {
035: return fieldHref;
036: }
037:
038: /**
039: * Gets the name for the TreeAdditionalAddImage Component
040: * Creation date: (8/21/01 4:59:02 PM)
041: * @return java.lang.String
042: */
043: public java.lang.String getName() {
044: return fieldName;
045: }
046:
047: /**
048: * Gets the source for the image used by Tree AdditionalImage component
049: * Creation date: (8/21/01 4:59:02 PM)
050: * @return java.lang.String
051: */
052: public java.lang.String getSrc() {
053: return fieldSrc;
054: }
055:
056: /**
057: * Gets the text used to display on Tree Additinal Image
058: * Creation date: (8/21/01 4:59:02 PM)
059: * @return java.lang.String
060: */
061: public java.lang.String getText() {
062: return fieldText;
063: }
064:
065: /**
066: * Gets the flag 'Visible' for TreeAdditinalImage Tag
067: * Creation date: (8/21/01 4:59:02 PM)
068: * @return boolean
069: */
070: public boolean isVisible() {
071: return fieldVisible;
072: }
073:
074: /**
075: * Sets the Href link for Additional Image on Tree node
076: * Creation date: (8/21/01 4:59:02 PM)
077: * @param newHref java.lang.String
078: */
079: public void setHref(java.lang.String newHref) {
080: fieldHref = newHref;
081: }
082:
083: /**
084: * Sets the name of the component
085: * Creation date: (8/21/01 4:59:02 PM)
086: * @param newName java.lang.String
087: */
088: public void setName(java.lang.String newName) {
089: fieldName = newName;
090: }
091:
092: /**
093: * Sets the source for the additional image for a tree
094: * Creation date: (8/21/01 4:59:02 PM)
095: * @param newSrc java.lang.String
096: */
097: public void setSrc(java.lang.String newSrc) {
098: fieldSrc = newSrc;
099: }
100:
101: /**
102: * Sets the text used by component
103: * Creation date: (8/21/01 4:59:02 PM)
104: * @param newText java.lang.String
105: */
106: public void setText(java.lang.String newText) {
107: fieldText = newText;
108: }
109:
110: /**
111: * Sets the visibility of Tree Additinal images on a node
112: * Creation date: (8/21/01 4:59:02 PM)
113: * @param newVisible boolean
114: */
115: public void setVisible(boolean newVisible) {
116: fieldVisible = newVisible;
117: }
118: }
|