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 PFieldSpecificationGets the field specification used to define the fields accessed by this control.getField()Gets the value of the field referred to in thedisplayFieldDescriptionprotected PDataFieldSpecificationGets the field specification used to define the fields accessed by this control.Gets the data field description used by the component.voidvoidrevertToPrimary(int primary) Reverts converted currency data back to the primary representationvoidsetAssociatedClass(String name) Sets the associated class, if any, for this field.voidsetDisplayFieldDescription(String fieldDisp) Sets the description of the field of the data model that is most important to this component.voidSets the value of the field referred to in themodelFieldDescription.voidsetModelFieldDescription(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 theBEIDManagerto 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, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
setModelFieldDescriptionin interfacePFieldBean- Parameters:
fieldDesc- aStringthat 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:
getModelFieldDescriptionin interfacePFieldBean- Returns:
- A
Stringdescription 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:
setDisplayFieldDescriptionin interfacePFieldBean- Parameters:
fieldDisp- aStringdescription of the fields used by this component- Throws:
RemoteException- thrown for errors
-
getDisplayFieldDescription
Gets the data field description used by the component.- Specified by:
getDisplayFieldDescriptionin interfacePFieldBean- Returns:
- A
Stringdescription 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:
setAssociatedClassin 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:
getAssociatedClassin 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:
setFieldin 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:
getFieldin interfacePFieldBean- Returns:
- The field's value.
- Throws:
RemoteException- thrown for errors
-
togglePrimaryToSecondary
Causes the widget to use theBEIDManagerto convert its data.- Specified by:
togglePrimaryToSecondaryin 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:
revertToPrimaryin 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 themodelFieldDescriptionset 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 thedisplayFieldDescriptionset in the client.- Returns:
- A field specification object.
-