PComponentImpl
is deprecated and
replaced by PComponentDelegate
.public class PComponentImpl extends Object implements PRemoteComponent, Serializable
PComponentImpl
is a distributed class that provides the base
functionality needed by a new UI control to support display and editing of
Portal database information. This class is used as a delegate
by PViewComponent
to work around multiple inheritance problems.
PViewComponent
is the class that should be inherited from for
new components.Modifier and Type | Field and Description |
---|---|
protected PComponentController |
mComponentController
Deprecated.
|
protected PViewComponent |
mDel
Deprecated.
|
Constructor and Description |
---|
PComponentImpl(PViewComponent comp)
Deprecated.
Creates an instance of the implementation object to delegate to the
PViewComponent interface. |
Modifier and Type | Method and Description |
---|---|
void |
addRemoteListener(Object remoteListenerHandle)
Deprecated.
Adds a controller-side event listener.
|
Enumeration |
getArraySpecEnum(String spec,
int[] vals)
Deprecated.
Gets an enumeration for an array description, given a set of
possible index values.
|
int[] |
getArraySpecRange(PModelHandle mh,
String spec)
Deprecated.
Given a model and a specification for an array in that model, get the
range of actual elements in the array.
|
PComponentController |
getComponentController()
Deprecated.
Gets the controller.
|
String |
getControllerClassName()
Deprecated.
Gets the name for the controller of this class.
|
String |
getElementOfSpec(String spec,
int element)
Deprecated.
A helper function which, given an array specification string and an index,
returns a
String with the index used in the array. |
PModelHandle |
getModelHandle()
Deprecated.
Gets the model handle.
|
Object |
getProperty(String prop)
Deprecated.
Gets the value of an arbitrary property.
|
Object |
getRemoteListenerHandle(String type)
Deprecated.
Gets a remote listener handle from the controller.
|
String |
getResource(String tag)
Deprecated.
Gets the resource string associated with the parameter.
|
String |
getResourceName()
Deprecated.
Gets the base resource name.
|
Vector |
getTools()
Deprecated.
Gets a list of Actions supported by this component.
|
boolean |
isLight()
Deprecated.
Determines whether this is a lightweight component.
|
void |
register()
Deprecated.
A utility method called to retrieve the name of a subclass and register it
as a new GUI component.
|
void |
releaseRemoteListener(Object remoteListenerHandle)
Deprecated.
Releases a remote listener handle.
|
void |
removeRemoteListener(Object remoteListenerHandle)
Deprecated.
Removes a controller-side event listener.
|
Object |
sendDataActionEvent(String command,
Object data)
Deprecated.
A utility method used to send actions to the controller
to be handled.
|
void |
setComponentController(PComponentController controller)
Deprecated.
An internal method called by the BAS server to assign the created controller.
|
void |
setModelHandle(PModelHandle data)
Deprecated.
Sets the
PModelHandle property. |
void |
setProperty(String prop,
Object val)
Deprecated.
Sets the value of an arbitrary property.
|
void |
setResourceName(String name)
Deprecated.
Sets the base resource name.
|
void |
unregister()
Deprecated.
A utility method called to unregister a subclass from its controller,
thus allowing both to be garbage collected.
|
void |
viewDataChange(PViewDataChangeEvent event)
Deprecated.
Overrides
PViewDataChangeListener . |
protected transient PViewComponent mDel
protected transient PComponentController mComponentController
public PComponentImpl(PViewComponent comp) throws RemoteException
PViewComponent
interface. Any implementations of PViewComponent
must delegate to this object. Because this implementation provides the remote object
behavior, there is some delegation back to the PAppComponent
subclass as well.comp
- the derivitive of PViewComponent
for which this
instance implements remote behaviorRemoteException
- thrown for all problemspublic void setModelHandle(PModelHandle data) throws RemoteException
PModelHandle
property. This data is forwarded to the
controller as well.setModelHandle
in interface PComponent
data
- the new model handleRemoteException
- thrown for all problemspublic PModelHandle getModelHandle() throws RemoteException
getModelHandle
in interface PComponent
PModelHandle
.RemoteException
- thrown for all problemspublic boolean isLight() throws RemoteException
getModelHandle()
always
returns null, setModelHandle()
is ignored, and no
property change events are generated.isLight
in interface PComponent
RemoteException
- thrown for all problemspublic String getControllerClassName() throws RemoteException
getControllerClassName
in interface PComponent
String
with the component's controller class name.RemoteException
- thrown for all problemspublic void viewDataChange(PViewDataChangeEvent event) throws RemoteException
PViewDataChangeListener
. This method is
no longer called by the controller itself. To ensure backward compatibility,
it is called after the model is set, by any operation that causes a change in
the display data. The client code should call the appropriate
get()
methods on the controller to get the data, as the
PViewDataChangeEvent
parameter is no longer used.
The default behavior handles async errors.viewDataChange
in interface PViewDataChangeListener
event
- the PViewDataChangeEvent
event that
describes the change. No longer used. By default, the value
passed in is always set to null.RemoteException
- thrown for errorspublic void setComponentController(PComponentController controller) throws RemoteException
setComponentController
in interface PRemoteComponent
controller
- the new controller objectRemoteException
- thrown for problemspublic PComponentController getComponentController() throws RemoteException
getComponentController
in interface PRemoteComponent
PComponentController
object.RemoteException
- thrown for all problemspublic void setResourceName(String name)
name
- a String
with the resource namepublic String getResourceName()
String
that contains the resource base name,
if any; null otherwise.public Vector getTools()
Vector
that contains Action objects.public String getResource(String tag) throws RemoteException
tag
- the resource tagString
resource. If none is found,
returns the tag.RemoteException
- thrown for errorspublic void register() throws RemoteException
RemoteException
- thrown for errorspublic void unregister() throws RemoteException
RemoteException
public Object sendDataActionEvent(String command, Object data) throws RemoteException
command
- the action command for the controller to handledata
- the data for the controller to useRemoteException
- thrown for errorspublic void setProperty(String prop, Object val) throws RemoteException
prop
- a String
property nameval
- the property valueRemoteException
- thrown for all problemspublic Object getProperty(String prop) throws RemoteException
prop
- a String
property nameRemoteException
- thrown for all problemspublic Object getRemoteListenerHandle(String type) throws RemoteException
type
- the listener's typeRemoteException
- thrown for all problemspublic void addRemoteListener(Object remoteListenerHandle) throws RemoteException
remoteListenerHandle
- a handle to a controller-side listenerRemoteException
- thrown for all problemspublic void removeRemoteListener(Object remoteListenerHandle) throws RemoteException
remoteListenerHandle
- a handle to a controller-side listenerRemoteException
- thrown for all problemspublic void releaseRemoteListener(Object remoteListenerHandle) throws RemoteException
remoteListenerHandle
- the listener's handleRemoteException
- thrown for all problemspublic int[] getArraySpecRange(PModelHandle mh, String spec) throws RemoteException
mh
- a PModelHandle
spec
- a field descriptionSparseArray
.RemoteException
- thrown for errorspublic Enumeration getArraySpecEnum(String spec, int[] vals)
spec
- a field description string that describes an arrayvals
- possible array index valuesEnumeration
object.public String getElementOfSpec(String spec, int element)
String
with the index used in the array.spec
- a field description string that describes an arrayelement
- a specific element in the arrayString
, with the array element
replaced by the specified new element.Copyright © 2003, 2023, Oracle and/or its affiliates.