KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jmanage > webui > forms > GraphForm


1 /**
2  * Copyright 2004-2005 jManage.org
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.jmanage.webui.forms;
17
18 import org.jmanage.core.util.Expression;
19
20 /**
21  * Date: Jun 23, 2005 7:36:48 PM
22  * @author Bhavana
23  */

24 public class GraphForm extends BaseForm{
25
26     private String JavaDoc graphId;
27     private String JavaDoc graphName;
28     private String JavaDoc pollInterval;
29
30     // optional attributes
31
private String JavaDoc yAxisLabel;
32     private String JavaDoc scaleFactor;
33     private boolean scaleUp = true;
34
35     private String JavaDoc[] mbeans;
36     private String JavaDoc[] attributes;
37     private String JavaDoc[] displayNames;
38
39     public String JavaDoc[] getDisplayNames(){
40         return displayNames;
41     }
42     public void setDiaplayNames(String JavaDoc[] displayNames){
43         this.displayNames = displayNames;
44     }
45
46     public String JavaDoc[] getAttributes() {
47         return attributes;
48     }
49
50     public void setAttributes(String JavaDoc[] attributes) {
51         this.attributes = attributes;
52     }
53
54     public String JavaDoc[] getMbeans() {
55         return mbeans;
56     }
57
58     public void setMbeans(String JavaDoc[] mbeans) {
59         this.mbeans = mbeans;
60     }
61
62
63
64     public String JavaDoc getGraphId() {
65         return graphId;
66     }
67
68     public void setGraphId(String JavaDoc graphId) {
69         this.graphId = graphId;
70     }
71
72     public String JavaDoc getGraphName() {
73         return graphName;
74     }
75
76     public void setGraphName(String JavaDoc graphName) {
77         this.graphName = graphName;
78     }
79
80     public String JavaDoc getPollInterval() {
81         return pollInterval;
82     }
83
84     public void setPollInterval(String JavaDoc pollInterval) {
85         this.pollInterval = pollInterval;
86     }
87
88     public String JavaDoc getYAxisLabel() {
89         return yAxisLabel;
90     }
91
92     public void setYAxisLabel(String JavaDoc yAxisLabel) {
93         this.yAxisLabel = yAxisLabel;
94     }
95
96     public String JavaDoc getScaleFactor() {
97         return scaleFactor;
98     }
99
100     public void setScaleFactor(String JavaDoc scaleFactor) {
101         if(scaleFactor != null && scaleFactor.length() > 0)
102             this.scaleFactor = scaleFactor;
103     }
104
105     public boolean getScaleUp() {
106         return scaleUp;
107     }
108
109     public void setScaleUp(boolean scaleUp) {
110         this.scaleUp = scaleUp;
111     }
112 }
113
Popular Tags