Package com.portal.bas.comp
Class PIAComponentCollection
java.lang.Object
com.portal.bas.comp.PIAComponentCollection
- All Implemented Interfaces:
PAppComponent,PClientComponent,PCollectDataListener,PComponent,PViewDataChangeListener,Serializable,EventListener
public class PIAComponentCollection
extends Object
implements PAppComponent, PCollectDataListener, Serializable
PIAComponentCollection is a PAppComponent
delegate that provides the View for Portal-aware GUI components.- Version:
- %version: 11 % %date_modified: Tue Dec 18 19:37:13 2001 %
- Author:
- larrylf
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PIACollectionBeanprotected Mapprotected PCollectingModelHandleprotected LinkedListprotected LinkedListprotected PClientServices -
Constructor Summary
ConstructorsConstructorDescriptionThe default constructor does not create the controller for this component collection.PIAComponentCollection(String classname) CallscreateControllerto construct the controller for this collection. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidaddChild(Object key, PLightComponentHelper c) protected voidprotected voidvoidcollectData(PCollectDataEvent event) OverridesPCollectDataListener.voidcreateController(String classname) Creates the controller for this collection.Retrieves the class name of this component's controller.Retrieves thePModelHandlefor this component.Gets a reference to the remote component for this object.Returns the base resource name used to look up a resource.If an application uses multiple services (WebKit) then this method retrieves the client service associated with this component else it will return the one instance of client service for applications that use one client service (Customer Center).getTools()Gets the list of actions supported by this component.booleanisLight()Determines whether this is a lightweight component.iterator()voidvoidprotected voidprotected voidvoidrevertToPrimary(int primary) voidsetModelHandle(PModelHandle data) Establishes thePModelHandlefor this collection of components.voidsetResourceName(String name) Sets the base resource name used to look up resources.voidSets the client service instance for this component for an application uses which uses multiple services (WebKit)startMultipleModelDataCollection(int why) startSingleModelDataCollection(int why, PModelHandle model) togglePrimaryToSecondary(int primary, int secondary) Walks the component hierarchy to toggle the currency for any component that displays currency data.voidCauses the component's remote component (Controller) to be disassociated from the component);voidOverridesPViewDataChangeListener.
-
Field Details
-
mColl
-
mData
-
mHeavyList
-
mLightList
-
mComponents
-
mServices
-
-
Constructor Details
-
PIAComponentCollection
public PIAComponentCollection()The default constructor does not create the controller for this component collection.To create the controller, call
createController( String classname ).- See Also:
-
PIAComponentCollection
CallscreateControllerto construct the controller for this collection.- Parameters:
classname- the class name of the controller to be created- See Also:
-
-
Method Details
-
unregister
Description copied from interface:PClientComponentCauses the component's remote component (Controller) to be disassociated from the component);- Specified by:
unregisterin interfacePClientComponent- Throws:
RemoteException
-
setServices
Sets the client service instance for this component for an application uses which uses multiple services (WebKit)- Parameters:
service- the client services instance
-
createController
Creates the controller for this collection.- Parameters:
classname- the class name of the controller to be created. If it's null,getControllerClassNameis used to instantiate the controller.- See Also:
-
setModelHandle
Establishes thePModelHandlefor this collection of components.- Specified by:
setModelHandlein interfacePComponent- Parameters:
data- the newPModelHandlefrom which to extract the information- Throws:
RemoteException- thrown for errors
-
getModelHandle
Retrieves thePModelHandlefor this component.- Specified by:
getModelHandlein interfacePComponent- Returns:
- The
PModelHandleassociated with this component. - Throws:
RemoteException- thrown for errors
-
isLight
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 thatgetModelHandlealways returns null,setModelHandleis ignored, and no property change events are generated.- Specified by:
isLightin interfacePComponent- Returns:
- False, by default.
- Throws:
RemoteException- thrown for errors
-
getControllerClassName
Retrieves the class name of this component's controller.- Specified by:
getControllerClassNamein interfacePComponent- Returns:
- A
Stringwith the value "com.portal.bas.comp.PIAComponentCollectionBean". - Throws:
RemoteException- thrown for errors
-
getServices
If an application uses multiple services (WebKit) then this method retrieves the client service associated with this component else it will return the one instance of client service for applications that use one client service (Customer Center).- Returns:
- PClientService for this component
- Throws:
RemoteException
-
getTools
Gets the list of actions supported by this component. When subclassed, the overriding class should call its superclass method first, then add its actions to the returned list. This preserves the actions supplied by base classes. The default, supplied here, includes help for this component.- Specified by:
getToolsin interfacePClientComponent- Returns:
- A
Vectorthat containsActionobjects
-
setResourceName
Sets the base resource name used to look up resources. The resource name consists of this base, followed by a dot, followed by the local name (label).- Specified by:
setResourceNamein interfacePClientComponent- Parameters:
name- the new base resource name
-
getResourceName
Returns the base resource name used to look up a resource.- Specified by:
getResourceNamein interfacePClientComponent- Returns:
- A
Stringwith the resource name.
-
getRemoteComponent
Gets a reference to the remote component for this object. The remote component is used to interface with this component's controller.- Specified by:
getRemoteComponentin interfacePAppComponent- Returns:
- A
Remotecomponent.
-
viewDataChange
OverridesPViewDataChangeListener. Called by the controller to update the field data. This event is passed along to all descendants.- Specified by:
viewDataChangein interfacePViewDataChangeListener- Parameters:
evt- thePViewDataChangeEventevent that describes the change. No longer used. By default, the value passed in is always set to null.event- thePViewDataChangeevent that describes the change- Throws:
RemoteException- thrown for errors
-
addChild
- Throws:
RemoteException
-
getChild
-
addChild
- Throws:
RemoteException
-
removeChild
- Throws:
RemoteException
-
addChild
- Throws:
RemoteException
-
removeChild
- Throws:
RemoteException
-
addChildInt
- Throws:
RemoteException
-
addChildInt
- Throws:
RemoteException
-
removeChildInt
- Throws:
RemoteException
-
removeChildInt
- Throws:
RemoteException
-
getCollectedData
-
getController
-
startSingleModelDataCollection
public PModelHandle startSingleModelDataCollection(int why, PModelHandle model) throws RemoteException - Throws:
RemoteException
-
startMultipleModelDataCollection
- Throws:
RemoteException
-
collectData
OverridesPCollectDataListener. Forwarded to all contained GUI components that are alsoPCollectDataListeners.- Specified by:
collectDatain interfacePCollectDataListener- Parameters:
event- thePCollectDataEventdata event
-
togglePrimaryToSecondary
Walks the component hierarchy to toggle the currency for any component that displays currency data.- Parameters:
primary- the current currency ID used to display the datasecondary- the new currency ID to use to display the data- Throws:
RemoteException- thrown for errors- Since:
- Release 6.2
-
revertToPrimary
- Throws:
RemoteException
-
keyIterator
-
iterator
-