public abstract class PFieldControllerBean extends PControllerImpl implements PFieldBean
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
.mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY
Constructor and Description |
---|
PFieldControllerBean()
Creates an instance of
PFieldControllerBean . |
Modifier and Type | Method and Description |
---|---|
String |
getAssociatedClass()
Gets the associated class, if any, for this field.
|
String |
getDisplayFieldDescription()
Gets the data field description used by the component.
|
protected PFieldSpecification |
getDisplaySpec()
Gets the field specification used to define the fields accessed
by this control.
|
Object |
getField()
Gets the value of the field referred to in the
displayFieldDescription |
protected PDataFieldSpecification |
getFieldSpec()
Gets the field specification used to define the fields accessed
by this control.
|
String |
getModelFieldDescription()
Gets the data field description used by the component.
|
void |
releaseSpecifications() |
void |
revertToPrimary(int primary)
Reverts converted currency data back to the primary representation
|
void |
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 |
setField(Object value)
Sets the value of the field referred to in the
modelFieldDescription . |
void |
setModelFieldDescription(String fieldDesc)
Sets the description of the field of the data model that is most
important to this component.
|
Object |
togglePrimaryToSecondary(int prim,
int sec)
Causes the widget to use the
BEIDManager to convert
its data. |
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSelectionDataFor
public PFieldControllerBean() throws RemoteException
PFieldControllerBean
.RemoteException
- thrown for errorspublic void setModelFieldDescription(String fieldDesc) throws RemoteException
setModelFieldDescription
in interface PFieldBean
fieldDesc
- a String
that describes the field(s)
used by this componentRemoteException
- thrown for errorspublic String getModelFieldDescription() throws RemoteException
getModelFieldDescription
in interface PFieldBean
String
description of the fields
used by this component.RemoteException
- thrown for errorspublic void setDisplayFieldDescription(String fieldDisp) throws RemoteException
setDisplayFieldDescription
in interface PFieldBean
fieldDisp
- a String
description of the fields
used by this componentRemoteException
- thrown for errorspublic String getDisplayFieldDescription() throws RemoteException
getDisplayFieldDescription
in interface PFieldBean
String
description of the fields
used by this component.RemoteException
- thrown for errorspublic void releaseSpecifications() throws RemoteException
RemoteException
public void setAssociatedClass(String name) throws RemoteException
setAssociatedClass
in interface PFieldBean
name
- the class name to associate with this fieldRemoteException
- thrown for errorspublic String getAssociatedClass() throws RemoteException
getAssociatedClass
in interface PFieldBean
RemoteException
- thrown for errorspublic void setField(Object value) throws RemoteException
modelFieldDescription
.setField
in interface PFieldBean
value
- the field's valueRemoteException
- thrown for errorspublic Object getField() throws RemoteException
displayFieldDescription
getField
in interface PFieldBean
RemoteException
- thrown for errorspublic Object togglePrimaryToSecondary(int prim, int sec) throws RemoteException
BEIDManager
to convert
its data.togglePrimaryToSecondary
in interface PFieldBean
from
- assumed to be the current currency ID used to
display the datato
- the new currency ID to use to display the dataprim
- sec
- RemoteException
- thrown for errorspublic void revertToPrimary(int primary) throws RemoteException
revertToPrimary
in interface PFieldBean
primary
- The primary currency IDRemoteException
protected PDataFieldSpecification getFieldSpec()
modelFieldDescription
set in the client.protected PFieldSpecification getDisplaySpec()
displayFieldDescription
set in the client.Copyright © 2003, 2023, Oracle and/or its affiliates.