This project has retired. For details please refer to its
        
        Attic page.
      
 
Widget xref
1   
2   
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  
13  
14  
15  
16  
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 }