Package com.portal.bas
Class PFieldControllerBean
java.lang.Object
com.portal.bas.PControllerImpl
com.portal.bas.PFieldControllerBean
- All Implemented Interfaces:
PControllerBean
,PFieldBean
,Serializable
,Remote
,Unreferenced
- Direct Known Subclasses:
PIAFieldBean
,PIASpecSpreadSheetBeanImpl
,PIASpreadSheetBeanImpl
PFieldControllerBean
is the default controller for field
components. It extends the base component functionality in PControllerImpl
by adding features that are specified in PFieldBean
.
As of Release 6.1, PFieldControllerBean
replaces PFieldController
.- Version:
- %version: 7 % %date_modified: Mon Nov 05 11:18:42 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 associated class, if any, for this field.Gets the data field description used by the component.protected PFieldSpecification
Gets the field specification used to define the fields accessed by this control.getField()
Gets the value of the field referred to in thedisplayFieldDescription
protected PDataFieldSpecification
Gets the field specification used to define the fields accessed by this control.Gets the data field description used by the component.void
void
revertToPrimary
(int primary) Reverts converted currency data back to the primary representationvoid
setAssociatedClass
(String name) Sets the associated class, if any, for this field.void
setDisplayFieldDescription
(String fieldDisp) Sets the description of the field of the data model that is most important to this component.void
Sets the value of the field referred to in themodelFieldDescription
.void
setModelFieldDescription
(String fieldDesc) Sets the description of the field of the data model that is most important to this component.togglePrimaryToSecondary
(int prim, int sec) Causes the widget to use theBEIDManager
to convert its data.Methods inherited from class com.portal.bas.PControllerImpl
addRemoteListener, closeSecContext, createClientException, distributeEventToListeners, fireModelChangeEvent, getAppController, getArrayRange, getContext, getField, getField, getField, getFieldWithRestriction, getFieldWithRestriction, getFieldWithRestriction, getModel, getRemoteListenerHandle, getSecContext, handleDistributeToListener, isLight, register, releaseContext, releaseRemoteListener, removeRemoteListener, setField, setField, setModel, unreferenced, update
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.portal.bas.PControllerBean
getSelectionDataFor
-
Constructor Details
-
PFieldControllerBean
Creates an instance ofPFieldControllerBean
.- Throws:
RemoteException
- thrown for errors
-
-
Method Details
-
setModelFieldDescription
Sets the description of the field of the data model that is most important to this component.- Specified by:
setModelFieldDescription
in interfacePFieldBean
- Parameters:
fieldDesc
- aString
that describes the field(s) used by this component- Throws:
RemoteException
- thrown for errors
-
getModelFieldDescription
Gets the data field description used by the component.- Specified by:
getModelFieldDescription
in interfacePFieldBean
- Returns:
- A
String
description of the fields used by this component. - Throws:
RemoteException
- thrown for errors
-
setDisplayFieldDescription
Sets the description of the field of the data model that is most important to this component.- Specified by:
setDisplayFieldDescription
in interfacePFieldBean
- Parameters:
fieldDisp
- aString
description of the fields used by this component- Throws:
RemoteException
- thrown for errors
-
getDisplayFieldDescription
Gets the data field description used by the component.- Specified by:
getDisplayFieldDescription
in interfacePFieldBean
- Returns:
- A
String
description of the fields used by this component. - Throws:
RemoteException
- thrown for errors
-
releaseSpecifications
- Throws:
RemoteException
-
setAssociatedClass
Sets the associated class, if any, for this field.- Specified by:
setAssociatedClass
in interfacePFieldBean
- Parameters:
name
- the class name to associate with this field- Throws:
RemoteException
- thrown for errors
-
getAssociatedClass
Gets the associated class, if any, for this field.- Specified by:
getAssociatedClass
in interfacePFieldBean
- Returns:
- The class name or null.
- Throws:
RemoteException
- thrown for errors
-
setField
Sets the value of the field referred to in themodelFieldDescription
.- Specified by:
setField
in interfacePFieldBean
- Parameters:
value
- the field's value- Throws:
RemoteException
- thrown for errors
-
getField
Gets the value of the field referred to in thedisplayFieldDescription
- Specified by:
getField
in interfacePFieldBean
- Returns:
- The field's value.
- Throws:
RemoteException
- thrown for errors
-
togglePrimaryToSecondary
Causes the widget to use theBEIDManager
to convert its data.- Specified by:
togglePrimaryToSecondary
in interfacePFieldBean
- Parameters:
prim
-sec
-from
- assumed to be the current currency ID used to display the datato
- the new currency ID to use to display the data- Returns:
- The converted value.
- Throws:
RemoteException
- thrown for errors- Since:
- Release 6.2
-
revertToPrimary
Reverts converted currency data back to the primary representation- Specified by:
revertToPrimary
in interfacePFieldBean
- Parameters:
primary
- The primary currency ID- Throws:
RemoteException
-
getFieldSpec
Gets the field specification used to define the fields accessed by this control. Use this method to retrieve themodelFieldDescription
set in the client.- Returns:
- A field specification object.
-
getDisplaySpec
Gets the field specification used to define the fields accessed by this control. Use this method to retrieve thedisplayFieldDescription
set in the client.- Returns:
- A field specification object.
-