public interface PControllerBean extends Remote
PControllerBean
is the MVC controller part of the distributed
Portal-aware component set. Classes that support this interface contain
the logic associated with each control and can be deployed as an EJB in
the future.Modifier and Type | Method and Description |
---|---|
void |
addRemoteListener(Object remoteListenerHandle)
If the controller can send events to other controllers,
addRemoteListener passes a handle to the remote listener
class. |
int[] |
getArrayRange(PModelHandle mh,
String spec)
Given a model and a specification for an array in that model, get the
range of actual elements in the array.
|
PModelHandle |
getModel()
Accesses the data model.
|
Object |
getRemoteListenerHandle(String type)
If the component's controller can listen for events
from other controllers,
getRemoteListenerHandle posts a
listener and returns a handle to identify it. |
Object |
getSelectionDataFor(String dataItem,
int index)
Given the name of a display data item and an optional index,
returns the information needed for a Selection event.
|
boolean |
isLight()
Determines whether this is a lightweight component.
|
void |
register(PControllerBean stub)
Allows the component to register the controller stub it received
when the controller was created.
|
void |
releaseRemoteListener(Object remoteListenerHandle)
Removes all listener resources used by the controller.
|
void |
removeRemoteListener(Object remoteListenerHandle)
If the controller can send events to other controllers,
removeRemoteListener passes a handle to the remote listener
class. |
void |
setModel(PModelHandle model)
Passes the model to the controller.
|
void setModel(PModelHandle model) throws RemoteException
model
- the new data modelRemoteException
- thrown for errorsPModelHandle getModel() throws RemoteException
RemoteException
- thrown for errorsboolean isLight() throws RemoteException
getModel()
method returns null,
the setModel()
method is ignored, and no
property change events are generated. The value returned must be the
same in both the component and the controller.RemoteException
Object getSelectionDataFor(String dataItem, int index) throws RemoteException
dataItem
- the name of a data item. Must match the name of
an item changed by sending a PViewDataChangeEvent
.index
- an optional index into an array data itemRemoteException
- thrown for errorsint[] getArrayRange(PModelHandle mh, String spec) throws RemoteException
mh
- a model handlespec
- a string field descriptiopnRemoteException
- thrown for all problemsObject getRemoteListenerHandle(String type) throws RemoteException
getRemoteListenerHandle
posts a
listener and returns a handle to identify it.type
- the type of listener to getRemoteException
- thrown for all problemsvoid releaseRemoteListener(Object remoteListenerHandle) throws RemoteException
remoteListenerHandle
- an object handle returned by
getRemoteListenerHandle()
from
another objectRemoteException
- thrown for all problemsvoid addRemoteListener(Object remoteListenerHandle) throws RemoteException
addRemoteListener
passes a handle to the remote listener
class. The listener is added to the listener list.remoteListenerHandle
- an object handle returned by
getRemoteListenerHandle()
from
another objectRemoteException
- thrown for all problemsvoid removeRemoteListener(Object remoteListenerHandle) throws RemoteException
removeRemoteListener
passes a handle to the remote listener
class. The listener is removed from the listener list.remoteListenerHandle
- an object handle returned by
getRemoteListenerHandle()
from
another objectRemoteException
- thrown for all problemsvoid register(PControllerBean stub) throws RemoteException
stub
- the controller stub owned by the client view.RemoteException
- thrown in case of errorPInfranetAppController.registerController( PControllerBean, PControllerImpl )
Copyright © 2003, 2023, Oracle and/or its affiliates.