public class SearchController extends PIAPanelController
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY| Constructor and Description |
|---|
SearchController()
Creates an instance of the search controller.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
actionPerformed(ActionEvent event)
Initiates a search using data provided by the client through the event
or obtains data neccessay for displaying a generic search.
|
protected void |
fireError() |
protected void |
fireLabels(ResultData[] res) |
protected void |
fireProgress(int amt)
Sends a DataChangeEvent indicating the amount of progress of the
search.
|
protected void |
fireResults(PModelHandle[] res) |
protected void |
fireSearchEvent(SearchEvent event) |
String[] |
getSearchData()
Get the 'searchData' property array.
|
protected void |
handleDistributeToListener(Object l,
EventObject evt)
Called by
distributeEventToListeners to pass an event
to specific listener methods. |
void |
setResultFields(FList flds)
Set the 'resultFields' property, which is used in the search.
|
void |
setSearchData(String[] data)
Set the 'searchData' property array.
|
getRemoteListenerHandle, getSelectionDataFor, propertyChange, updatefireDataChangeEvent, fireDataChangeEvent, fireDataChangeEvent, fireDataChangeEvent, getConnection, getProperty, getView, setDisplayComponent, setProperty, updateaddRemoteListener, closeSecContext, createClientException, distributeEventToListeners, fireModelChangeEvent, getAppController, getArrayRange, getContext, getField, getField, getField, getFieldWithRestriction, getFieldWithRestriction, getFieldWithRestriction, getModel, getSecContext, isLight, register, releaseContext, releaseRemoteListener, removeRemoteListener, setField, setField, setModel, unreferencedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddRemoteListener, getArrayRange, getModel, isLight, register, releaseRemoteListener, removeRemoteListener, setModelpublic SearchController()
throws RemoteException
RemoteExceptionpublic String[] getSearchData()
public void setSearchData(String[] data)
data - A String array containing data for each template.public void setResultFields(FList flds)
flds - the new list of fields expected for each found resultpublic Object actionPerformed(ActionEvent event) throws RemoteException
actionPerformed in interface PComponentControlleractionPerformed in class PIAPanelControllerevent - issued by the client to begin the searchRemoteException - thrown for errorsprotected void fireProgress(int amt)
throws RemoteException
amt - the number of items found in searchRemoteExceptionprotected void fireResults(PModelHandle[] res) throws RemoteException
RemoteExceptionprotected void fireLabels(ResultData[] res) throws RemoteException
RemoteExceptionprotected void fireSearchEvent(SearchEvent event)
protected void fireError()
throws RemoteException
RemoteExceptionprotected void handleDistributeToListener(Object l, EventObject evt)
PControllerImpldistributeEventToListeners to pass an event
to specific listener methods. When overriding this method, be sure to
pass calls for unknown listener classes to the parent controller
to handle other types of event objects.handleDistributeToListener in class PControllerImpll - the listener to call a method forevt - the event object to distributeCopyright © 2003, 2023, Oracle and/or its affiliates.