Package com.portal.bas.comp
Class PIAFieldBean
java.lang.Object
com.portal.bas.PControllerImpl
com.portal.bas.PFieldControllerBean
com.portal.bas.comp.PIAFieldBean
- All Implemented Interfaces:
PControllerBean
,PFieldBean
,PLightComponent
,PropertyChangeListener
,Serializable
,Remote
,Unreferenced
,EventListener
- Direct Known Subclasses:
PIACanonFieldBeanImpl
,PIAGroupTreeBeanImpl
,PIAListBeanImpl
,PIAObjectFieldBeanImpl
,PIAPaymentFieldBeanImpl
,PIAPaymentOnFileFieldBeanImpl
public class PIAFieldBean
extends PFieldControllerBean
implements PropertyChangeListener, PLightComponent
- Version:
- %version: 2 % %date_modified: Thu Apr 19 17:43:25 2001 %
- Author:
- larrylf
- See Also:
-
Field Summary
Fields inherited from class com.portal.bas.PControllerImpl
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the data field description used by the component.Gets the lightweight data object.If the component's controller can listen for events from other controllers,getRemoteListenerHandle
posts a listener and returns a handle to identify it.getSelectionDataFor
(String dataItem, int index) Given the name of a display data item and an optional index, returns the information needed for a selection event.void
void
setLightData
(Object value) Sets the lightweight data object.void
Updates the field according to thedisplayFieldDescription
property, if present.Methods inherited from class com.portal.bas.PFieldControllerBean
getAssociatedClass, getDisplayFieldDescription, getDisplaySpec, getField, getFieldSpec, getModelFieldDescription, releaseSpecifications, revertToPrimary, setAssociatedClass, setDisplayFieldDescription, setField, setModelFieldDescription, togglePrimaryToSecondary
Methods inherited from class com.portal.bas.PControllerImpl
addRemoteListener, closeSecContext, createClientException, distributeEventToListeners, fireModelChangeEvent, getAppController, getArrayRange, getContext, getField, getField, getField, getFieldWithRestriction, getFieldWithRestriction, getFieldWithRestriction, getModel, getSecContext, handleDistributeToListener, isLight, register, releaseContext, releaseRemoteListener, removeRemoteListener, setField, setField, setModel, unreferenced
-
Constructor Details
-
PIAFieldBean
- Throws:
RemoteException
-
-
Method Details
-
getDataDescriptor
Gets the data field description used by the component.- Specified by:
getDataDescriptor
in interfacePLightComponent
- Returns:
- A
String
description of the fields used by this component or null if there is none. - Throws:
RemoteException
- thrown for errors
-
getLightData
Gets the lightweight data object.- Specified by:
getLightData
in interfacePLightComponent
- Returns:
- The lightweight component's display value or null.
-
setLightData
Sets the lightweight data object. This is usually called by framework support as part of the lightweight component implementation.- Specified by:
setLightData
in interfacePLightComponent
- Parameters:
value
- the lightweight component's display data
-
update
Updates the field according to thedisplayFieldDescription
property, if present.- Specified by:
update
in classPControllerImpl
- Parameters:
reason
- the reason for the updatedata
- the updated object- Throws:
RemoteException
- thrown for all errors
-
getSelectionDataFor
Given the name of a display data item and an optional index, returns the information needed for a selection event. The information returned is usually model data.- Specified by:
getSelectionDataFor
in interfacePControllerBean
- Parameters:
dataItem
- the name of a data item. Must match the name of an item changed by sending aPViewDataChangeEvent
.index
- an optional index into an array data item- Returns:
- The model handle for the selected field or null.
- Throws:
RemoteException
- thrown for errors
-
getRemoteListenerHandle
If the component's controller can listen for events from other controllers,getRemoteListenerHandle
posts a listener and returns a handle to identify it.- Specified by:
getRemoteListenerHandle
in interfacePControllerBean
- Overrides:
getRemoteListenerHandle
in classPControllerImpl
- Parameters:
type
- the type of listener to get- Returns:
- An object handle to identify this controller's listener, or null.
- Throws:
RemoteException
- thrown for all problems
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-