Package com.portal.search
Class SearchEvent
java.lang.Object
java.util.EventObject
com.portal.search.SearchEvent
- All Implemented Interfaces:
Serializable
SearchEvent is used to notify listeners with search information, such
as items found, result headers, search progress, help notification and
search errors.
- Version:
- %version%
- Author:
- Larry Lynch-Freshner, Monica Gaines
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Delivered to indicate errors in the search.static final int
Delivered to indicate a help request.static final int
Delivered when items are found in the search.static final int
Delivered to indicate the result header labels.static final int
Delivered to indicate the progress of the search.Fields inherited from class java.util.EventObject
source
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData()
Returns useful data from the search, for example the results of the search.boolean
Indicates whether or not a READ_FLDS needs to be performed on a search result.Returns the data for the results returned in the search.String[]
Returns the labels for the results returned in the search.int
Returns the index for the ResultData which is used in sorting by.int
getType()
Returns the event type.void
setReadFields
(boolean b) Sets the readFields property to indicate that an alternate field is set for the search results.void
setResultData
(ResultData[] data) Sets the data for the results returned in the search.void
setResultLabels
(String[] labels) Sets the labels for the results returned in the search.void
setSortIndex
(int index) Sets the index to sort the results data.Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
ITEMS_FOUND
public static final int ITEMS_FOUNDDelivered when items are found in the search.- See Also:
-
SEARCH_PROGRESS
public static final int SEARCH_PROGRESSDelivered to indicate the progress of the search.- See Also:
-
HELP_REQUEST
public static final int HELP_REQUESTDelivered to indicate a help request.- See Also:
-
ERROR_IN_SEARCH
public static final int ERROR_IN_SEARCHDelivered to indicate errors in the search.- See Also:
-
RESULT_LABELS
public static final int RESULT_LABELSDelivered to indicate the result header labels.- See Also:
-
-
Constructor Details
-
SearchEvent
-
-
Method Details
-
getType
public int getType()Returns the event type. -
getData
Returns useful data from the search, for example the results of the search. -
getResultLabels
Returns the labels for the results returned in the search. -
setResultLabels
Sets the labels for the results returned in the search.- Parameters:
labels
- the labels for the results
-
getResultData
Returns the data for the results returned in the search. -
setResultData
Sets the data for the results returned in the search.- Parameters:
data
- the result data
-
getSortIndex
public int getSortIndex()Returns the index for the ResultData which is used in sorting by. -
setSortIndex
public void setSortIndex(int index) Sets the index to sort the results data.- Parameters:
index
- the index of the ResultData object to use for sorting
-
setReadFields
public void setReadFields(boolean b) Sets the readFields property to indicate that an alternate field is set for the search results.- Parameters:
b
- set to true if an alternate field is defined for the results
-
getReadFields
public boolean getReadFields()Indicates whether or not a READ_FLDS needs to be performed on a search result.
-