Package adams.gui.event
Class SearchEvent
- java.lang.Object
-
- java.util.EventObject
-
- adams.gui.event.SearchEvent
-
- All Implemented Interfaces:
Serializable
public class SearchEvent extends EventObject
Event gets sent when a search is to be initiated.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
SearchPanel
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected SearchParameters
m_Parameters
the search parameters.-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description SearchEvent(SearchPanel source, String searchText, boolean regExp)
Initializes the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchParameters
getParameters()
Returns the search parameters.SearchPanel
getSearchPanel()
Returns the search panel that sent the event.String
toString()
Returns a string representation of the event.-
Methods inherited from class java.util.EventObject
getSource
-
-
-
-
Field Detail
-
m_Parameters
protected SearchParameters m_Parameters
the search parameters.
-
-
Constructor Detail
-
SearchEvent
public SearchEvent(SearchPanel source, String searchText, boolean regExp)
Initializes the event.- Parameters:
source
- the search panel that sent the eventsearchText
- the actual text to search forregExp
- whether it is a regular expression search
-
-
Method Detail
-
getSearchPanel
public SearchPanel getSearchPanel()
Returns the search panel that sent the event.- Returns:
- the panel
-
getParameters
public SearchParameters getParameters()
Returns the search parameters.- Returns:
- the search parameters
-
toString
public String toString()
Returns a string representation of the event.- Overrides:
toString
in classEventObject
- Returns:
- the string representation
-
-