public class SearchEvent extends EventObject
Modifier and Type | Field and Description |
---|---|
static int |
ERROR_IN_SEARCH
Delivered to indicate errors in the search.
|
static int |
HELP_REQUEST
Delivered to indicate a help request.
|
static int |
ITEMS_FOUND
Delivered when items are found in the search.
|
static int |
RESULT_LABELS
Delivered to indicate the result header labels.
|
static int |
SEARCH_PROGRESS
Delivered to indicate the progress of the search.
|
source
Constructor and Description |
---|
SearchEvent(Object source,
int type,
Object data) |
Modifier and Type | Method and Description |
---|---|
Object |
getData()
Returns useful data from the search, for example the results of the
search.
|
boolean |
getReadFields()
Indicates whether or not a READ_FLDS needs to be performed on a
search result.
|
ResultData[] |
getResultData()
Returns the data for the results returned in the search.
|
String[] |
getResultLabels()
Returns the labels for the results returned in the search.
|
int |
getSortIndex()
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.
|
getSource, toString
public static final int ITEMS_FOUND
public static final int SEARCH_PROGRESS
public static final int HELP_REQUEST
public static final int ERROR_IN_SEARCH
public static final int RESULT_LABELS
public int getType()
public Object getData()
public String[] getResultLabels()
public void setResultLabels(String[] labels)
labels
- the labels for the resultspublic ResultData[] getResultData()
public void setResultData(ResultData[] data)
data
- the result datapublic int getSortIndex()
public void setSortIndex(int index)
index
- the index of the ResultData object to use for sortingpublic void setReadFields(boolean b)
b
- set to true if an alternate field is defined for the resultspublic boolean getReadFields()
Copyright © 2003, 2023, Oracle and/or its affiliates.