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 PIACollectionBean
protected Map
protected PCollectingModelHandle
protected LinkedList
protected LinkedList
protected PClientServices
-
Constructor Summary
ConstructorsConstructorDescriptionThe default constructor does not create the controller for this component collection.PIAComponentCollection
(String classname) CallscreateController
to construct the controller for this collection. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
addChild
(Object key, PLightComponentHelper c) protected void
protected void
void
collectData
(PCollectDataEvent event) OverridesPCollectDataListener
.void
createController
(String classname) Creates the controller for this collection.Retrieves the class name of this component's controller.Retrieves thePModelHandle
for 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.boolean
isLight()
Determines whether this is a lightweight component.iterator()
void
void
protected void
protected void
void
revertToPrimary
(int primary) void
setModelHandle
(PModelHandle data) Establishes thePModelHandle
for this collection of components.void
setResourceName
(String name) Sets the base resource name used to look up resources.void
Sets 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.void
Causes the component's remote component (Controller) to be disassociated from the component);void
OverridesPViewDataChangeListener
.
-
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
CallscreateController
to 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:PClientComponent
Causes the component's remote component (Controller) to be disassociated from the component);- Specified by:
unregister
in 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,getControllerClassName
is used to instantiate the controller.- See Also:
-
setModelHandle
Establishes thePModelHandle
for this collection of components.- Specified by:
setModelHandle
in interfacePComponent
- Parameters:
data
- the newPModelHandle
from which to extract the information- Throws:
RemoteException
- thrown for errors
-
getModelHandle
Retrieves thePModelHandle
for this component.- Specified by:
getModelHandle
in interfacePComponent
- Returns:
- The
PModelHandle
associated 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 thatgetModelHandle
always returns null,setModelHandle
is ignored, and no property change events are generated.- Specified by:
isLight
in interfacePComponent
- Returns:
- False, by default.
- Throws:
RemoteException
- thrown for errors
-
getControllerClassName
Retrieves the class name of this component's controller.- Specified by:
getControllerClassName
in interfacePComponent
- Returns:
- A
String
with 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:
getTools
in interfacePClientComponent
- Returns:
- A
Vector
that containsAction
objects
-
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:
setResourceName
in interfacePClientComponent
- Parameters:
name
- the new base resource name
-
getResourceName
Returns the base resource name used to look up a resource.- Specified by:
getResourceName
in interfacePClientComponent
- Returns:
- A
String
with 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:
getRemoteComponent
in interfacePAppComponent
- Returns:
- A
Remote
component.
-
viewDataChange
OverridesPViewDataChangeListener
. Called by the controller to update the field data. This event is passed along to all descendants.- Specified by:
viewDataChange
in interfacePViewDataChangeListener
- Parameters:
evt
- thePViewDataChangeEvent
event that describes the change. No longer used. By default, the value passed in is always set to null.event
- thePViewDataChange
event 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:
collectData
in interfacePCollectDataListener
- Parameters:
event
- thePCollectDataEvent
data 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
-