public class PComponentDelegate extends Object implements Serializable
PComponentDelegate
is a distributed class that provides the base
functionality needed for a new UI control to support display and editing of
Portal database information. PAppComponent
uses this class as a delegate
to work around multiple inheritance problems. New components should inherit from the
PAppComponent
class.Modifier and Type | Field and Description |
---|---|
protected PControllerBean |
mComponentController |
protected PAppComponent |
mDel |
Constructor and Description |
---|
PComponentDelegate(PAppComponent comp)
Creates an instance of the implementation object to delegate to the
PAppComponent interface. |
Modifier and Type | Method and Description |
---|---|
PControllerBean |
getController()
Gets the controller.
|
String |
getControllerClassName()
Gets the name for the controller of this class.
|
String |
getElementOfSpec(String spec,
int element)
A helper function which, given an array specification string and an index,
returns a
String with the index used in the array. |
Remote |
getRemoteComponent()
Gets a reference to the remote component for this object.
|
String |
getResource(String tag)
A utility method that gets the resource string associated with the parameter.
|
String |
getResourceName()
Gets the base resource name.
|
Vector |
getTools()
Gets a list of Actions supported by this component.
|
boolean |
isLight()
Determines whether this is a lightweight component.
|
void |
register()
A utility method that retrieves the name of a subclass and registers it
as a new GUI component.
|
void |
setController(PControllerBean controller)
Internal method called by the server to assign the created controller.
|
void |
setResourceName(String name) |
void |
unregister() |
protected transient PAppComponent mDel
protected transient PControllerBean mComponentController
public PComponentDelegate(PAppComponent comp) throws RemoteException
PAppComponent
interface. Any implementations of PAppComponent
must delegate to this object.comp
- the derivitive of PAppComponent
for which this
instance implements remote behaviorRemoteException
- thrown for all problemspublic Remote getRemoteComponent()
Remote
component.public void setController(PControllerBean controller) throws RemoteException
controller
- new controller objectRemoteException
- thrown for problemspublic PControllerBean getController() throws RemoteException
PControllerBean
object.RemoteException
- thrown for all problemspublic boolean isLight()
getModelHandle
always
returns null, setModelHandle
is ignored, and no
property change events are generated.public String getControllerClassName() throws RemoteException
String
with the component's
controller class name.RemoteException
- thrown for all problemspublic void setResourceName(String name)
public 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 found, returns
the tag.RemoteException
- thrown for errorspublic void register() throws RemoteException
RemoteException
- thrown for errorspublic void unregister() throws RemoteException
RemoteException
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.