PFieldComponentImpl
is deprecated and
replaced by PFieldDelegate
.public class PFieldComponentImpl extends PComponentImpl implements Serializable
PFieldComponentImpl
is a PAppComponent
that directly displays the
contents of a field.
This class was used as the base for displaying field contents, for example,
single field controls, list boxes, and tables.mComponentController, mDel
Constructor and Description |
---|
PFieldComponentImpl(PFieldComponent comp)
Deprecated.
Creates the default instance of a
PFieldComponent . |
Modifier and Type | Method and Description |
---|---|
String |
formatData(Object val)
Deprecated.
Formats data for the component.
|
String |
getAssociatedClass()
Deprecated.
Gets the class name to associate with this component.
|
String |
getDisplayFieldDescription()
Deprecated.
Gets the data field description used by the component.
|
String |
getDisplayFieldFormat()
Deprecated.
Gets the display format.
|
PInfranetMessageFormat |
getFormatter()
Deprecated.
Gets a formatter for component data.
|
String |
getHelpID()
Deprecated.
Gets the current help ID for this component.
|
String |
getModelFieldDescription()
Deprecated.
Gets the data field description used by the component.
|
PFieldComponentRenderer |
getRenderer()
Deprecated.
Gets a
PFieldComponentRenderer for this component. |
void |
register()
Deprecated.
Overloads the
register method. |
void |
setAssociatedClass(String name)
Deprecated.
Sets the class name to associate with this component.
|
void |
setDisplayFieldDescription(String fieldDisp)
Deprecated.
Sets the description of the field of the data model that is most
important to this component.
|
void |
setDisplayFieldFormat(String fieldForm)
Deprecated.
Sets the format used to display the field(s) described by the
DisplayFieldDescription methods. |
void |
setHelpID(String id)
Deprecated.
Sets the help ID for this component.
|
void |
setModelFieldDescription(String fieldDesc)
Deprecated.
Sets the description of the field of the data model that is most
important to this component.
|
addRemoteListener, getArraySpecEnum, getArraySpecRange, getComponentController, getControllerClassName, getElementOfSpec, getModelHandle, getProperty, getRemoteListenerHandle, getResource, getResourceName, getTools, isLight, releaseRemoteListener, removeRemoteListener, sendDataActionEvent, setComponentController, setModelHandle, setProperty, setResourceName, unregister, viewDataChange
public PFieldComponentImpl(PFieldComponent comp) throws RemoteException
PFieldComponent
.comp
- the PFieldComponent
objectRemoteException
- thrown for all problemspublic void register() throws RemoteException
register
method. Forwards field descriptions
to the controller.register
in class PComponentImpl
RemoteException
- thrown for all problemspublic void setModelFieldDescription(String fieldDesc) throws RemoteException
fieldDesc
- a String
that describes the
field(s) used by this componentRemoteException
- thrown for all problemspublic String getModelFieldDescription() throws RemoteException
String
description of the
field(s) used by this component.RemoteException
- thrown for all problemspublic void setDisplayFieldDescription(String fieldDisp) throws RemoteException
fieldDisp
- a String
that describes the
field(s) used by this componentRemoteException
- thrown for all problemspublic String getDisplayFieldDescription() throws RemoteException
String
description of the fields
used by this component.RemoteException
- thrown for all problemspublic void setDisplayFieldFormat(String fieldForm) throws RemoteException
DisplayFieldDescription
methods. This is a standard Java
MessageFormat
string.fieldForm
- the format string, or resource tag for formatRemoteException
- thrown for all problemspublic String getDisplayFieldFormat() throws RemoteException
String
that describes the
message format.RemoteException
- thrown for all problemspublic void setHelpID(String id)
id
- a String
help IDpublic String getHelpID()
String
help ID.public void setAssociatedClass(String name)
name
- a String
with the class name to associatepublic String getAssociatedClass()
String
with the associated class name.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 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 PFieldComponentRenderer getRenderer() throws IllegalComponentStateException
PFieldComponentRenderer
for this component. The renderer uses
an Portal-aware, permissions-based formatter, and is suitable for lists or
tables.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.