Package com.portal.bas
Class PComponentImpl
java.lang.Object
com.portal.bas.PComponentImpl
- All Implemented Interfaces:
PComponent,PRemoteComponent,PViewDataChangeListener,Serializable,Remote,EventListener
- Direct Known Subclasses:
PFieldComponentImpl
Deprecated.
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.- Version:
- 12
- Author:
- Larry Lynch-Freshner
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PComponentControllerDeprecated.protected PViewComponentDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionPComponentImpl(PViewComponent comp) Deprecated.Creates an instance of the implementation object to delegate to thePViewComponentinterface. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRemoteListener(Object remoteListenerHandle) Deprecated.Adds a controller-side event listener.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.Deprecated.Gets the controller.Deprecated.Gets the name for the controller of this class.getElementOfSpec(String spec, int element) Deprecated.A helper function which, given an array specification string and an index, returns aStringwith the index used in the array.Deprecated.Gets the model handle.getProperty(String prop) Deprecated.Gets the value of an arbitrary property.Deprecated.Gets a remote listener handle from the controller.getResource(String tag) Deprecated.Gets the resource string associated with the parameter.Deprecated.Gets the base resource name.getTools()Deprecated.Gets a list of Actions supported by this component.booleanisLight()Deprecated.Determines whether this is a lightweight component.voidregister()Deprecated.A utility method called to retrieve the name of a subclass and register it as a new GUI component.voidreleaseRemoteListener(Object remoteListenerHandle) Deprecated.Releases a remote listener handle.voidremoveRemoteListener(Object remoteListenerHandle) Deprecated.Removes a controller-side event listener.sendDataActionEvent(String command, Object data) Deprecated.A utility method used to send actions to the controller to be handled.voidsetComponentController(PComponentController controller) Deprecated.An internal method called by the BAS server to assign the created controller.voidsetModelHandle(PModelHandle data) Deprecated.Sets thePModelHandleproperty.voidsetProperty(String prop, Object val) Deprecated.Sets the value of an arbitrary property.voidsetResourceName(String name) Deprecated.Sets the base resource name.voidDeprecated.A utility method called to unregister a subclass from its controller, thus allowing both to be garbage collected.voidDeprecated.OverridesPViewDataChangeListener.
-
Field Details
-
mDel
Deprecated. -
mComponentController
Deprecated.
-
-
Constructor Details
-
PComponentImpl
Deprecated.Creates an instance of the implementation object to delegate to thePViewComponentinterface. Any implementations ofPViewComponentmust delegate to this object. Because this implementation provides the remote object behavior, there is some delegation back to thePAppComponentsubclass as well.- Parameters:
comp- the derivitive ofPViewComponentfor which this instance implements remote behavior- Throws:
RemoteException- thrown for all problems
-
-
Method Details
-
setModelHandle
Deprecated.Sets thePModelHandleproperty. This data is forwarded to the controller as well.- Specified by:
setModelHandlein interfacePComponent- Parameters:
data- the new model handle- Throws:
RemoteException- thrown for all problems
-
getModelHandle
Deprecated.Gets the model handle.- Specified by:
getModelHandlein interfacePComponent- Returns:
- A
PModelHandle. - Throws:
RemoteException- thrown for all problems
-
isLight
Deprecated.Determines whether this is a lightweight component. Lightweight components do not have their own model. Instead, they use the model of their container. This means thatgetModelHandle()always returns null,setModelHandle()is ignored, and no property change events are generated.- Specified by:
isLightin interfacePComponent- Returns:
- True if component is lightweight; false otherwise.
- Throws:
RemoteException- thrown for all problems
-
getControllerClassName
Deprecated.Gets the name for the controller of this class. The default is to add the word "Controller" to the component's class name. This should be overridden by the delegator to use other names.- Specified by:
getControllerClassNamein interfacePComponent- Returns:
- A
Stringwith the component's controller class name. - Throws:
RemoteException- thrown for all problems
-
viewDataChange
Deprecated.OverridesPViewDataChangeListener. 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 appropriategetmethods on the controller to get the data, as the() PViewDataChangeEventparameter is no longer used. The default behavior handles async errors.- Specified by:
viewDataChangein interfacePViewDataChangeListener- Parameters:
event- thePViewDataChangeEventevent that describes the change. No longer used. By default, the value passed in is always set to null.- Throws:
RemoteException- thrown for errors
-
setComponentController
Deprecated.An internal method called by the BAS server to assign the created controller.- Specified by:
setComponentControllerin interfacePRemoteComponent- Parameters:
controller- the new controller object- Throws:
RemoteException- thrown for problems
-
getComponentController
Deprecated.Gets the controller. Sometimes called by a delegator for special direct access.- Specified by:
getComponentControllerin interfacePRemoteComponent- Returns:
- A
PComponentControllerobject. - Throws:
RemoteException- thrown for all problems
-
setResourceName
Deprecated.Sets the base resource name.- Parameters:
name- aStringwith the resource name
-
getResourceName
Deprecated.Gets the base resource name. If one has not been set for this component specifically, it returns one set in a parent object.- Returns:
- A
Stringthat contains the resource base name, if any; null otherwise.
-
getTools
Deprecated.Gets a list of Actions supported by this component. When subclassed, the override class should call its superclass, then add its actions to the returned list. This preserves actions supplied by base classes. The default, supplied here, includes help for this component.- Returns:
- A
Vectorthat contains Action objects.
-
getResource
Deprecated.Gets the resource string associated with the parameter. Takes the base resource name into account.- Parameters:
tag- the resource tag- Returns:
- A
Stringresource. If none is found, returns the tag. - Throws:
RemoteException- thrown for errors
-
register
Deprecated.A utility method called to retrieve the name of a subclass and register it as a new GUI component.- Throws:
RemoteException- thrown for errors
-
unregister
Deprecated.A utility method called to unregister a subclass from its controller, thus allowing both to be garbage collected.- Throws:
RemoteException
-
sendDataActionEvent
Deprecated.A utility method used to send actions to the controller to be handled.- Parameters:
command- the action command for the controller to handledata- the data for the controller to use- Returns:
- The result, if any, of the action performed.
- Throws:
RemoteException- thrown for errors
-
setProperty
Deprecated.Sets the value of an arbitrary property. The property has meaning only to a specific subclass.- Parameters:
prop- aStringproperty nameval- the property value- Throws:
RemoteException- thrown for all problems
-
getProperty
Deprecated.Gets the value of an arbitrary property. The property has meaning only to a specific subclass.- Parameters:
prop- aStringproperty name- Returns:
- The property value.
- Throws:
RemoteException- thrown for all problems
-
getRemoteListenerHandle
Deprecated.Gets a remote listener handle from the controller. Can be used to add a remote listener to another component.- Parameters:
type- the listener's type- Returns:
- The listener's handle.
- Throws:
RemoteException- thrown for all problems
-
addRemoteListener
Deprecated.Adds a controller-side event listener.- Parameters:
remoteListenerHandle- a handle to a controller-side listener- Throws:
RemoteException- thrown for all problems
-
removeRemoteListener
Deprecated.Removes a controller-side event listener.- Parameters:
remoteListenerHandle- a handle to a controller-side listener- Throws:
RemoteException- thrown for all problems
-
releaseRemoteListener
Deprecated.Releases a remote listener handle.- Parameters:
remoteListenerHandle- the listener's handle- Throws:
RemoteException- thrown for all problems
-
getArraySpecRange
Deprecated.Given a model and a specification for an array in that model, get the range of actual elements in the array. The return array will contain the lowest element number in [0], and the highest in [1]. If the array is sparse, each element is iterated starting in [2] otherwise, only the range is provided.- Parameters:
mh- aPModelHandlespec- a field description- Returns:
- An int array, where indexes 0 and 1 contain the low and high
bounds (if the array has a single element, only the low bound is
given). If the array doesn't contain consecutive indices,
then indices 2 and up contain the specific element number
used in the
SparseArray. - Throws:
RemoteException- thrown for errors
-
getArraySpecEnum
Deprecated.Gets an enumeration for an array description, given a set of possible index values. The enumeration produces string descriptions of specific array elements.- Parameters:
spec- a field description string that describes an arrayvals- possible array index values- Returns:
- An
Enumerationobject.
-
getElementOfSpec
Deprecated.A helper function which, given an array specification string and an index, returns aStringwith the index used in the array.- Parameters:
spec- a field description string that describes an arrayelement- a specific element in the array- Returns:
- The specified
String, with the array element replaced by the specified new element.
-
PComponentImplis deprecated and replaced byPComponentDelegate.