001: /**
002: * Copyright 2004-2005 jManage.org
003: *
004: * Licensed under the Apache License, Version 2.0 (the "License");
005: * you may not use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.apache.org/licenses/LICENSE-2.0
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License.
015: */package org.jmanage.webui.forms;
016:
017: import org.jmanage.core.util.Expression;
018:
019: /**
020: * Date: Jun 23, 2005 7:36:48 PM
021: * @author Bhavana
022: */
023: public class GraphForm extends BaseForm {
024:
025: private String graphId;
026: private String graphName;
027: private String pollInterval;
028:
029: // optional attributes
030: private String yAxisLabel;
031: private String scaleFactor;
032: private boolean scaleUp = true;
033:
034: private String[] mbeans;
035: private String[] attributes;
036: private String[] displayNames;
037:
038: public String[] getDisplayNames() {
039: return displayNames;
040: }
041:
042: public void setDiaplayNames(String[] displayNames) {
043: this .displayNames = displayNames;
044: }
045:
046: public String[] getAttributes() {
047: return attributes;
048: }
049:
050: public void setAttributes(String[] attributes) {
051: this .attributes = attributes;
052: }
053:
054: public String[] getMbeans() {
055: return mbeans;
056: }
057:
058: public void setMbeans(String[] mbeans) {
059: this .mbeans = mbeans;
060: }
061:
062: public String getGraphId() {
063: return graphId;
064: }
065:
066: public void setGraphId(String graphId) {
067: this .graphId = graphId;
068: }
069:
070: public String getGraphName() {
071: return graphName;
072: }
073:
074: public void setGraphName(String graphName) {
075: this .graphName = graphName;
076: }
077:
078: public String getPollInterval() {
079: return pollInterval;
080: }
081:
082: public void setPollInterval(String pollInterval) {
083: this .pollInterval = pollInterval;
084: }
085:
086: public String getYAxisLabel() {
087: return yAxisLabel;
088: }
089:
090: public void setYAxisLabel(String yAxisLabel) {
091: this .yAxisLabel = yAxisLabel;
092: }
093:
094: public String getScaleFactor() {
095: return scaleFactor;
096: }
097:
098: public void setScaleFactor(String scaleFactor) {
099: if (scaleFactor != null && scaleFactor.length() > 0)
100: this .scaleFactor = scaleFactor;
101: }
102:
103: public boolean getScaleUp() {
104: return scaleUp;
105: }
106:
107: public void setScaleUp(boolean scaleUp) {
108: this.scaleUp = scaleUp;
109: }
110: }
|