001: /*
002: * Wilos Is a cLever process Orchestration Software - http://www.wilos-project.org
003: * Copyright (C) 2006-2007 Paul Sabatier University, IUP ISI (Toulouse, France) <massie@irit.fr>
004: * Copyright (C) 2007-2008 Paul Sabatier University, IUP ISI (Toulouse, France) <massie@irit.fr>
005: *
006: * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
007: * General Public License as published by the Free Software Foundation; either version 2 of the License,
008: * or (at your option) any later version.
009: *
010: * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
011: * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
012: * GNU General Public License for more details.
013: *
014: * You should have received a copy of the GNU General Public License along with this program; if not,
015: * write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
016: */
017:
018: package wilos.presentation.web.tree;
019:
020: import javax.swing.tree.DefaultMutableTreeNode;
021:
022: import com.icesoft.faces.component.tree.IceUserObject;
023:
024: /**
025: * Extends the IceUserObject in order to add object id, bean name and page Id
026: *
027: * @see
028: * @author garwind
029: *
030: */
031: public class WilosObjectNode extends IceUserObject {
032:
033: // static fields
034: // Project Node
035: public final static String PROJECTNODE = "ProjectViewer";
036: // Phase Node
037: public final static String PHASENODE = "ConcretePhaseViewer";
038: // Iteration Node
039: public final static String ITERATIONNODE = "ConcreteIterationViewer";
040: // ConcreteTask Node
041: public final static String CONCRETETASKNODE = "ConcreteTaskViewer";
042: // ConcreteRole Node
043: public final static String CONCRETEROLENODE = "ConcreteRoleViewer";
044: // ConcreteTask Node
045: public final static String ACTIVITYNODE = "ConcreteActivityViewer";
046: // ConcreteWorkProduct Node
047: public final static String CONCRETEWORKPRODUCTNODE = "ConcreteWorkProductViewer";
048: // ConcreteMilestone Node
049: public final static String CONCRETEMILESTONENODE = "ConcreteMilestoneViewer";
050:
051: // properties
052: private String id = "";
053:
054: private String pageId = "";
055:
056: private Boolean isSelected = false;
057:
058: private String displayOrder = "";
059:
060: public WilosObjectNode(DefaultMutableTreeNode arg0) {
061: super (arg0);
062: }
063:
064: /**
065: * Verifies if the node is selected or not
066: * @return a boolean showing if the node is selected or not
067: */
068: public Boolean getIsSelected() {
069: return isSelected;
070: }
071:
072: /**
073: * Changes the value showing if the node is selected or not
074: * @param isSelected the new state of the node (selected or not)
075: */
076: public void setIsSelected(Boolean isSelected) {
077: this .isSelected = isSelected;
078: }
079:
080: /**
081: * Gets the id of the node
082: * @return the id of the node
083: */
084: public String getId() {
085: return id;
086: }
087:
088: /**
089: * Sets the id of the node
090: * @param id the new id of the node
091: */
092: public void setId(String id) {
093: this .id = id;
094: }
095:
096: /**
097: * Gets the pageId of the node
098: * @return the pageId of the node
099: */
100: public String getPageId() {
101: return pageId;
102: }
103:
104: /**
105: * Sets the pageId of the node
106: * @param pageId the new pageId of the node
107: */
108: public void setPageId(String pageId) {
109: this .pageId = pageId;
110: }
111:
112: /**
113: * Gets the displayOrder of the node
114: * @return the displayOrder of the node
115: */
116: public String getDisplayOrder() {
117: return displayOrder;
118: }
119:
120: /**
121: * Sets the displayOrder of the node
122: * @param displayOrder the new displayOrder of the node
123: */
124: public void setDisplayOrder(String displayOrder) {
125: this.displayOrder = displayOrder;
126: }
127:
128: }
|