public class PIAComponentCollection extends Object implements PAppComponent, PCollectDataListener, Serializable
PIAComponentCollection
is a PAppComponent
delegate that provides the View for Portal-aware GUI components.Modifier and Type | Field and Description |
---|---|
protected PIACollectionBean |
mColl |
protected Map |
mComponents |
protected PCollectingModelHandle |
mData |
protected LinkedList |
mHeavyList |
protected LinkedList |
mLightList |
protected PClientServices |
mServices |
Constructor and Description |
---|
PIAComponentCollection()
The default constructor does not create the controller for this component
collection.
|
PIAComponentCollection(String classname)
Calls
createController to construct the controller for this collection. |
Modifier and Type | Method and Description |
---|---|
void |
addChild(Object key,
PLightComponentHelper c) |
void |
addChild(PClientComponent c) |
void |
addChild(PLightComponentHelper c) |
protected void |
addChildInt(PAppComponent c) |
protected void |
addChildInt(PViewComponent c) |
void |
collectData(PCollectDataEvent event)
Overrides
PCollectDataListener . |
void |
createController(String classname)
Creates the controller for this collection.
|
PLightComponentHelper |
getChild(Object key) |
PCollectingModelHandle |
getCollectedData() |
PControllerBean |
getController() |
String |
getControllerClassName()
Retrieves the class name of this component's controller.
|
PModelHandle |
getModelHandle()
Retrieves the
PModelHandle for this component. |
Remote |
getRemoteComponent()
Gets a reference to the remote component for this object.
|
String |
getResourceName()
Returns the base resource name used to look up a resource.
|
PClientServices |
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).
|
Vector |
getTools()
Gets the list of actions supported by this component.
|
boolean |
isLight()
Determines whether this is a lightweight component.
|
Iterator |
iterator() |
Iterator |
keyIterator() |
void |
removeChild(PClientComponent c) |
void |
removeChild(PLightComponentHelper c) |
protected void |
removeChildInt(PAppComponent c) |
protected void |
removeChildInt(PViewComponent c) |
void |
revertToPrimary(int primary) |
void |
setModelHandle(PModelHandle data)
Establishes the
PModelHandle for this collection
of components. |
void |
setResourceName(String name)
Sets the base resource name used to look up resources.
|
void |
setServices(PClientServices pCS)
Sets the client service instance for this component
for an application uses which uses multiple services (WebKit)
|
PModelHandle[] |
startMultipleModelDataCollection(int why) |
PModelHandle |
startSingleModelDataCollection(int why,
PModelHandle model) |
Object |
togglePrimaryToSecondary(int primary,
int secondary)
Walks the component hierarchy to toggle the currency for any
component that displays currency data.
|
void |
unregister()
Causes the component's remote component (Controller) to be disassociated
from the component);
|
void |
viewDataChange(PViewDataChangeEvent evt)
Overrides
PViewDataChangeListener . |
protected transient PIACollectionBean mColl
protected transient PCollectingModelHandle mData
protected transient LinkedList mHeavyList
protected transient LinkedList mLightList
protected transient Map mComponents
protected transient PClientServices mServices
public PIAComponentCollection()
To create the controller, call createController( String classname )
.
public PIAComponentCollection(String classname)
createController
to construct the controller for this collection.classname
- the class name of the controller to be createdcreateController( String classname )
public void unregister() throws RemoteException
PClientComponent
unregister
in interface PClientComponent
RemoteException
public void setServices(PClientServices pCS)
service
- the client services instancepublic void createController(String classname)
classname
- the class name of the controller to be created. If it's
null, getControllerClassName
is used to
instantiate the controller.getControllerClassName()
,
PIAComponentCollection(String classname)
public void setModelHandle(PModelHandle data) throws RemoteException
PModelHandle
for this collection
of components.setModelHandle
in interface PComponent
data
- the new PModelHandle
from which to extract the informationRemoteException
- thrown for errorspublic PModelHandle getModelHandle() throws RemoteException
PModelHandle
for this component.getModelHandle
in interface PComponent
PModelHandle
associated
with this component.RemoteException
- thrown for errorspublic 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 errorspublic String getControllerClassName() throws RemoteException
getControllerClassName
in interface PComponent
String
with the value
"com.portal.bas.comp.PIAComponentCollectionBean".RemoteException
- thrown for errorspublic PClientServices getServices() throws RemoteException
RemoteException
public Vector getTools()
getTools
in interface PClientComponent
Vector
that contains Action
objectspublic void setResourceName(String name)
setResourceName
in interface PClientComponent
name
- the new base resource namepublic String getResourceName()
getResourceName
in interface PClientComponent
String
with the resource name.public Remote getRemoteComponent()
getRemoteComponent
in interface PAppComponent
Remote
component.public void viewDataChange(PViewDataChangeEvent evt)
PViewDataChangeListener
. Called by the
controller to update the field data. This event is passed along to all descendants.viewDataChange
in interface PViewDataChangeListener
event
- the PViewDataChange
event that describes
the changeRemoteException
- thrown for errorspublic void addChild(Object key, PLightComponentHelper c) throws RemoteException
RemoteException
public PLightComponentHelper getChild(Object key)
public void addChild(PLightComponentHelper c) throws RemoteException
RemoteException
public void removeChild(PLightComponentHelper c) throws RemoteException
RemoteException
public void addChild(PClientComponent c) throws RemoteException
RemoteException
public void removeChild(PClientComponent c) throws RemoteException
RemoteException
protected void addChildInt(PViewComponent c) throws RemoteException
RemoteException
protected void addChildInt(PAppComponent c) throws RemoteException
RemoteException
protected void removeChildInt(PViewComponent c) throws RemoteException
RemoteException
protected void removeChildInt(PAppComponent c) throws RemoteException
RemoteException
public PCollectingModelHandle getCollectedData()
public PControllerBean getController()
public PModelHandle startSingleModelDataCollection(int why, PModelHandle model) throws RemoteException
RemoteException
public PModelHandle[] startMultipleModelDataCollection(int why) throws RemoteException
RemoteException
public void collectData(PCollectDataEvent event)
PCollectDataListener
. Forwarded to all contained
GUI components that are also PCollectDataListeners
.collectData
in interface PCollectDataListener
event
- the PCollectDataEvent
data eventpublic Object togglePrimaryToSecondary(int primary, int secondary) throws RemoteException
primary
- the current currency ID used to
display the datasecondary
- the new currency ID to use to
display the dataRemoteException
- thrown for errorspublic void revertToPrimary(int primary) throws RemoteException
RemoteException
public Iterator keyIterator()
public Iterator iterator()
Copyright © 2003, 2023, Oracle and/or its affiliates.