public interface PFieldBean extends Remote
PFieldBean
is an interface that describes the abilities needed
for field components.
Components implementing this interface will also have API methods provided by the
swing API for populating/retrieving data.In case you are using the methods of this
interface it is not advisable to use the regular swing API methods to populate/retrieve
the data from these components as it might result in data corruption.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.
|
Object |
getField()
Gets the value of the field referred to in the
displayFieldDescription . |
String |
getModelFieldDescription()
Gets the data field description used by the component.
|
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 primary,
int secondary)
Causes the widget to use the
BEIDManager to convert
its data. |
void setModelFieldDescription(String fieldDesc) throws RemoteException
fieldDesc
- a String
that describes the
field(s) used by this componentRemoteException
- thrown for errorsString getModelFieldDescription() throws RemoteException
String
description of the fields
used by this component.RemoteException
- thrown for errorsvoid setDisplayFieldDescription(String fieldDisp) throws RemoteException
fieldDisp
- a String
that describes the fieldRemoteException
- thrown for errorsString getDisplayFieldDescription() throws RemoteException
String
description of the fields
used by this component.RemoteException
- thrown for errorsvoid setAssociatedClass(String name) throws RemoteException
name
- the class nameRemoteException
- thrown for errorsString getAssociatedClass() throws RemoteException
RemoteException
- thrown for errorsvoid setField(Object value) throws RemoteException
modelFieldDescription
.value
- the field's valueRemoteException
- thrown for errorsObject getField() throws RemoteException
displayFieldDescription
.RemoteException
- thrown for errorsObject togglePrimaryToSecondary(int primary, int secondary) throws RemoteException
BEIDManager
to convert
its data.primary
- the primary currency IDsecondary
- the secondary currency IDRemoteException
void revertToPrimary(int primary) throws RemoteException
primary
- the primary currency IDRemoteException
Copyright © 2003, 2023, Oracle and/or its affiliates.