View Javadoc
1   /*
2    * Copyright (C) 2003-2014 eXo Platform SAS.
3    *
4    * This is free software; you can redistribute it and/or modify it
5    * under the terms of the GNU Lesser General Public License as
6    * published by the Free Software Foundation; either version 3 of
7    * the License, or (at your option) any later version.
8    *
9    * This software is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12   * Lesser General Public License for more details.
13   *
14   * You should have received a copy of the GNU Lesser General Public
15   * License along with this software; if not, write to the Free
16   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
17   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
18   */
19  package org.exoplatform.model;
20  
21  //gadget info
22  public class GadgetInfo {
23    private String _strGadgetName;       // Gadget name
24  
25    private String _strGadgetDescription; // Gadget description
26  
27    private String _strGadgetUrl;        // Gadget url
28  
29    private String _strGadgetIcon;       // Gadget icon string
30    
31    private int    _intGatdetIndex;      //index for background setting
32    
33    private String _strTabName;
34  
35    // Constructor
36  
37    public GadgetInfo(String gadgetName,
38                     String gadgetDescription,
39                     String gadgetUrl,
40                     String strGadgetIcon,
41                     String strTabName,
42                     int gadgetIndex) {
43      _strGadgetName = gadgetName;
44      _strGadgetDescription = gadgetDescription;
45      _strGadgetUrl = gadgetUrl;
46      _strGadgetIcon = strGadgetIcon;
47      _strTabName = strTabName;
48      _intGatdetIndex = gadgetIndex;
49    }
50    
51    public GadgetInfo(String tabName) {
52       _strTabName = tabName;
53     }
54  
55    // Gettors
56    public String getGadgetName() {
57      return _strGadgetName;
58    }
59  
60    public String getGadgetDescription() {
61      return _strGadgetDescription;
62    }
63  
64    public String getGadgetUrl() {
65      return _strGadgetUrl;
66    }
67    
68    public void setGadgetUrl(String url) {
69      _strGadgetUrl = url;
70    }
71    
72    public String getStrGadgetIcon() {
73      return _strGadgetIcon;
74    }
75  
76    public String getTabName() {
77      return _strTabName;
78    }
79    
80    public int getGadgetIndex() {
81      return _intGatdetIndex;
82    }
83  }