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, update
fireDataChangeEvent, fireDataChangeEvent, fireDataChangeEvent, fireDataChangeEvent, getConnection, getProperty, getView, setDisplayComponent, setProperty, update
addRemoteListener, closeSecContext, createClientException, distributeEventToListeners, fireModelChangeEvent, getAppController, getArrayRange, getContext, getField, getField, getField, getFieldWithRestriction, getFieldWithRestriction, getFieldWithRestriction, getModel, getSecContext, isLight, register, releaseContext, releaseRemoteListener, removeRemoteListener, setField, setField, setModel, unreferenced
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addRemoteListener, getArrayRange, getModel, isLight, register, releaseRemoteListener, removeRemoteListener, setModel
public SearchController() throws RemoteException
RemoteException
public 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 PComponentController
actionPerformed
in class PIAPanelController
event
- issued by the client to begin the searchRemoteException
- thrown for errorsprotected void fireProgress(int amt) throws RemoteException
amt
- the number of items found in searchRemoteException
protected void fireResults(PModelHandle[] res) throws RemoteException
RemoteException
protected void fireLabels(ResultData[] res) throws RemoteException
RemoteException
protected void fireSearchEvent(SearchEvent event)
protected void fireError() throws RemoteException
RemoteException
protected void handleDistributeToListener(Object l, EventObject evt)
PControllerImpl
distributeEventToListeners
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 PControllerImpl
l
- the listener to call a method forevt
- the event object to distributeCopyright © 2003, 2023, Oracle and/or its affiliates.