This project has retired. For details please refer to its Attic page.
Widget xref
View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *     http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   */
18  
19  package org.apache.hadoop.chukwa.hicc.bean;
20  
21  import java.net.URI;
22  
23  import javax.xml.bind.annotation.XmlElement;
24  import javax.xml.bind.annotation.XmlRootElement;
25  
26  @XmlRootElement
27  public class Widget {
28    @XmlElement
29    public int col;
30    @XmlElement
31    public int row;
32    @XmlElement
33    public int size_x;
34    @XmlElement
35    public int size_y;
36    @XmlElement
37    public String title;
38    @XmlElement
39    public URI src;
40    @XmlElement
41    public String[] tokens;
42  
43    public int getCol() {
44      return col;
45    }
46  
47    public void setCol(int col) {
48      this.col = col;
49    }
50  
51    public int getRow() {
52      return row;
53    }
54  
55    public void setRow(int row) {
56      this.row = row;
57    }
58  
59    public int getSize_x() {
60      return size_x;
61    }
62  
63    public void setSize_x(int size_x) {
64      this.size_x = size_x;
65    }
66  
67    public int getSize_y() {
68      return size_y;
69    }
70  
71    public void setSize_y(int size_y) {
72      this.size_y = size_y;
73    }
74  
75    public String getTitle() {
76      return title;
77    }
78  
79    public void setTitle(String title) {
80      this.title = title;
81    }
82  
83    public URI getSrc() {
84      return src;
85    }
86    
87    public void setSrc(URI src) {
88      this.src = src;
89    }
90  
91    public String[] getTokens() {
92      return tokens.clone();
93    }
94  
95    public void setTokens(String[] tokens) {
96      this.tokens = tokens.clone();
97    }
98  
99    public void tokenize() {
100     String[] tokens = title.split(" ");
101     this.tokens = tokens;
102   }
103 }