View Javadoc
1   /*
2    * Copyright (c) 2011-2024 PrimeFaces Extensions
3    *
4    *  Permission is hereby granted, free of charge, to any person obtaining a copy
5    *  of this software and associated documentation files (the "Software"), to deal
6    *  in the Software without restriction, including without limitation the rights
7    *  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    *  copies of the Software, and to permit persons to whom the Software is
9    *  furnished to do so, subject to the following conditions:
10   *
11   *  The above copyright notice and this permission notice shall be included in
12   *  all copies or substantial portions of the Software.
13   *
14   *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   *  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   *  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   *  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   *  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   *  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20   *  THE SOFTWARE.
21   */
22  package org.primefaces.extensions.event;
23  
24  import javax.faces.component.UIComponent;
25  import javax.faces.component.behavior.Behavior;
26  
27  import org.primefaces.event.AbstractAjaxBehaviorEvent;
28  
29  public class EChartEvent extends AbstractAjaxBehaviorEvent {
30      private static final long serialVersionUID = 1L;
31  
32      private String name;
33      private int dataIndex;
34      private int seriesIndex;
35      private String componentType;
36      private String componentSubType;
37      private String seriesType;
38      private String seriesName;
39      private String data;
40      private int componentIndex;
41  
42      public EChartEvent(UIComponent component, Behavior behavior, String name, int dataIndex, int seriesIndex, String componentType, String componentSubType,
43                  String seriesType, String seriesName, String data, int componentIndex) {
44          super(component, behavior);
45          this.name = name;
46          this.dataIndex = dataIndex;
47          this.seriesIndex = seriesIndex;
48          this.componentType = componentType;
49          this.componentSubType = componentSubType;
50          this.seriesType = seriesType;
51          this.seriesName = seriesName;
52          this.data = data;
53          this.componentIndex = componentIndex;
54      }
55  
56      public String getName() {
57          return name;
58      }
59  
60      public int getDataIndex() {
61          return dataIndex;
62      }
63  
64      public int getSeriesIndex() {
65          return seriesIndex;
66      }
67  
68      public String getComponentType() {
69          return componentType;
70      }
71  
72      public String getComponentSubType() {
73          return componentSubType;
74      }
75  
76      public String getSeriesType() {
77          return seriesType;
78      }
79  
80      public String getSeriesName() {
81          return seriesName;
82      }
83  
84      public String getData() {
85          return data;
86      }
87  
88      public int getComponentIndex() {
89          return componentIndex;
90      }
91  }