Style Intelligence v12.0

inetsoft.report.event
Class SelectionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by inetsoft.report.event.SelectionEvent
All Implemented Interfaces:
ReportEvent, Serializable
Direct Known Subclasses:
SectionSelectionEvent

public class SelectionEvent
extends EventObject
implements ReportEvent

Selection event. This event is posted when an element is selected on a previewer/viewer.

See Also:
Serialized Form

Field Summary
protected  int clickCount
           
protected  String eid
           
protected  Object item
           
protected  MouseEvent mouseEvent
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SelectionEvent(Object source, String eid, Object item, int clickCount, MouseEvent mouseEvent)
          Create a selection event.
 
Method Summary
 boolean equals(Object obj)
           
 int getClickCount()
          Get the click count.
 int getColumn()
          Get the column index of the event location, or return -1 if it does not apply.
 String getElementID()
          Return the source report element ID.
 Object getItem()
          Get the selection item.
 MouseEvent getMouseEvent()
          Get the mouse event that triggered this selection event.
 int getRow()
          Get the row index of the event location, or return -1 if it does not apply.
 boolean matches(SelectionEvent e)
          Match two events.
 String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

item

protected Object item

eid

protected String eid

clickCount

protected int clickCount

mouseEvent

protected MouseEvent mouseEvent
Constructor Detail

SelectionEvent

public SelectionEvent(Object source,
                      String eid,
                      Object item,
                      int clickCount,
                      MouseEvent mouseEvent)
Create a selection event.

Parameters:
source - event source, e.g. TableLens, ChartLens.
item - selecttion item.
clickCount - the mouse click count.
Method Detail

getElementID

public String getElementID()
Return the source report element ID. If this element is contained in a bean, this method returns the full name of the element (qualified with bean ID).

Specified by:
getElementID in interface ReportEvent
Returns:
element ID.

getRow

public int getRow()
Get the row index of the event location, or return -1 if it does not apply.


getColumn

public int getColumn()
Get the column index of the event location, or return -1 if it does not apply.


getItem

public Object getItem()
Get the selection item.

Returns:
selection item.

getClickCount

public int getClickCount()
Get the click count.

Returns:
click count.

getMouseEvent

public MouseEvent getMouseEvent()
Get the mouse event that triggered this selection event.


toString

public String toString()
Overrides:
toString in class EventObject

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

matches

public boolean matches(SelectionEvent e)
Match two events. The are considered a match if the id, row, column are the same or if the index is ignored (-1).


Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.