public class PFieldDelegate extends PComponentDelegate implements Serializable
PFieldDelegate is a helper class for components that implement the
PFieldBean interface. It can be used by delegating
the PFieldBean interface methods to their corresponding
PFieldDelegate methods. Ordinarily, most UI components are derived from a
Swing class and implement the methods of an
interface.mComponentController, mDel| Constructor and Description |
|---|
PFieldDelegate(PAppFieldComponent comp)
Creates the default instance of
PFieldDelegate. |
| Modifier and Type | Method and Description |
|---|---|
String |
formatData(Object val)
Formats data for the component.
|
String |
getDisplayFieldFormat()
Gets the display format.
|
PInfranetMessageFormat |
getFormatter()
Gets a formatter for the component's data.
|
String |
getHelpID()
Gets the current help ID for this component.
|
PFieldComponentRenderer |
getRenderer()
Gets a renderer for this component.
|
void |
setCurrencyFormat(NumberFormat newFormat)
Changes the currency format.
|
void |
setDisplayFieldFormat(String fieldForm)
Sets the format used to display the field(s) described by the
DisplayFieldDescription. |
void |
setFormatter(PInfranetMessageFormat format)
Sets the format for component data.
|
void |
setHelpID(String id)
Sets the help ID for this component.
|
getController, getControllerClassName, getElementOfSpec, getRemoteComponent, getResource, getResourceName, getTools, isLight, register, setController, setResourceName, unregisterpublic PFieldDelegate(PAppFieldComponent comp) throws RemoteException
PFieldDelegate.comp - the field componentRemoteException - thrown for all problemspublic void setDisplayFieldFormat(String fieldForm) throws RemoteException
DisplayFieldDescription. This is a standard Java
MessageFormat string.fieldForm - the format string, or resource tag for the formatRemoteException - thrown for all problemspublic String getDisplayFieldFormat() throws RemoteException
String with the message format.RemoteException - thrown for all problemspublic void setHelpID(String id)
id - the new help IDpublic String getHelpID()
String with the help ID.public PInfranetMessageFormat getFormatter() throws IllegalComponentStateException
PInfranetMessageFormat
object that can deal with permissions.IllegalComponentStateException - thrown if the component
is not yet a child of a valid view
tree, for example, before
addNotify() is calledpublic void setFormatter(PInfranetMessageFormat format)
format - a new PInfranetMessageFormat objectpublic String formatData(Object val) throws IllegalComponentStateException
val - the data to be formatted. If the
format needs multiple parameters,
then val should be a
Vector or an
Object array.String.IllegalComponentStateException - thrown if the component
is not yet a child of a valid view
tree, for example, before
addNotify() is calledpublic void setCurrencyFormat(NumberFormat newFormat)
newFormat - the new currency formatpublic PFieldComponentRenderer getRenderer() throws IllegalComponentStateException
PFieldComponentRenderer object.IllegalComponentStateException - thrown if the component
is not yet a child of a valid view
tree, for example, before
addNotify() is calledCopyright © 2003, 2023, Oracle and/or its affiliates.