Package adams.gui.event
Class FilterEvent<T extends DataContainer>
- java.lang.Object
-
- java.util.EventObject
-
- adams.gui.event.FilterEvent<T>
-
- All Implemented Interfaces:
Serializable
public class FilterEvent<T extends DataContainer> extends EventObject
Event that gets sent from a FilterDialog.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
FilterDialog
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Filter<T>
m_Filter
the filter to use.protected boolean
m_OverlayOriginalData
whether to overlay the original data.-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description FilterEvent(FilterDialog source, Filter<T> filter, boolean overlay)
Initializes the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilterDialog
getDialog()
Returns the dialog that triggered the event.Filter<T>
getFilter()
Returns the filter.boolean
getOverlayOriginalData()
Returns whether the original data should be overlayed.String
toString()
Returns a string representation of the event.-
Methods inherited from class java.util.EventObject
getSource
-
-
-
-
Field Detail
-
m_Filter
protected Filter<T extends DataContainer> m_Filter
the filter to use.
-
m_OverlayOriginalData
protected boolean m_OverlayOriginalData
whether to overlay the original data.
-
-
Constructor Detail
-
FilterEvent
public FilterEvent(FilterDialog source, Filter<T> filter, boolean overlay)
Initializes the event.- Parameters:
source
- the dialog that triggered the eventfilter
- the selected filteroverlay
- if true then the original data will be overlayed
-
-
Method Detail
-
getDialog
public FilterDialog getDialog()
Returns the dialog that triggered the event.- Returns:
- the dialog
-
getOverlayOriginalData
public boolean getOverlayOriginalData()
Returns whether the original data should be overlayed.- Returns:
- true if original data should be overlayed
-
toString
public String toString()
Returns a string representation of the event.- Overrides:
toString
in classEventObject
- Returns:
- the string
-
-