Package com.portal.bas
Class PFieldComponentImpl
java.lang.Object
com.portal.bas.PComponentImpl
com.portal.bas.PFieldComponentImpl
- All Implemented Interfaces:
PComponent
,PRemoteComponent
,PViewDataChangeListener
,Serializable
,Remote
,EventListener
Deprecated.
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.- Version:
- 3
- Author:
- Larry Lynch-Freshner
- See Also:
-
Field Summary
Fields inherited from class com.portal.bas.PComponentImpl
mComponentController, mDel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformatData
(Object val) Deprecated.Formats data for the component.Deprecated.Gets the class name to associate with this component.Deprecated.Gets the data field description used by the component.Deprecated.Gets the display format.Deprecated.Gets a formatter for component data.Deprecated.Gets the current help ID for this component.Deprecated.Gets the data field description used by the component.Deprecated.Gets aPFieldComponentRenderer
for this component.void
register()
Deprecated.Overloads theregister
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 theDisplayFieldDescription
methods.void
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.Methods inherited from class com.portal.bas.PComponentImpl
addRemoteListener, getArraySpecEnum, getArraySpecRange, getComponentController, getControllerClassName, getElementOfSpec, getModelHandle, getProperty, getRemoteListenerHandle, getResource, getResourceName, getTools, isLight, releaseRemoteListener, removeRemoteListener, sendDataActionEvent, setComponentController, setModelHandle, setProperty, setResourceName, unregister, viewDataChange
-
Constructor Details
-
PFieldComponentImpl
Deprecated.Creates the default instance of aPFieldComponent
.- Parameters:
comp
- thePFieldComponent
object- Throws:
RemoteException
- thrown for all problems
-
-
Method Details
-
register
Deprecated.Overloads theregister
method. Forwards field descriptions to the controller.- Overrides:
register
in classPComponentImpl
- Throws:
RemoteException
- thrown for all problems
-
setModelFieldDescription
Deprecated.Sets the description of the field of the data model that is most important to this component.- Parameters:
fieldDesc
- aString
that describes the field(s) used by this component- Throws:
RemoteException
- thrown for all problems
-
getModelFieldDescription
Deprecated.Gets the data field description used by the component.- Returns:
- A
String
description of the field(s) used by this component. - Throws:
RemoteException
- thrown for all problems
-
setDisplayFieldDescription
Deprecated.Sets the description of the field of the data model that is most important to this component.- Parameters:
fieldDisp
- aString
that describes the field(s) used by this component- Throws:
RemoteException
- thrown for all problems
-
getDisplayFieldDescription
Deprecated.Gets the data field description used by the component.- Returns:
- A
String
description of the fields used by this component. - Throws:
RemoteException
- thrown for all problems
-
setDisplayFieldFormat
Deprecated.Sets the format used to display the field(s) described by theDisplayFieldDescription
methods. This is a standard JavaMessageFormat
string.- Parameters:
fieldForm
- the format string, or resource tag for format- Throws:
RemoteException
- thrown for all problems
-
getDisplayFieldFormat
Deprecated.Gets the display format.- Returns:
- A
String
that describes the message format. - Throws:
RemoteException
- thrown for all problems
-
setHelpID
Deprecated.Sets the help ID for this component.- Parameters:
id
- aString
help ID
-
getHelpID
Deprecated.Gets the current help ID for this component.- Returns:
- A
String
help ID.
-
setAssociatedClass
Deprecated.Sets the class name to associate with this component.- Parameters:
name
- aString
with the class name to associate
-
getAssociatedClass
Deprecated.Gets the class name to associate with this component.- Returns:
- A
String
with the associated class name.
-
getFormatter
Deprecated.Gets a formatter for component data.- Returns:
- A
PInfranetMessageFormat
object that can deal with permissions. - Throws:
IllegalComponentStateException
- thrown if the component is not yet a child of a valid view tree, for example, beforeaddNotify()
is called
-
formatData
Deprecated.Formats data for the component.- Parameters:
val
- the data to be formatted. If the format needs multiple parameters, thenval
should be aVector
or anObject
array.- Returns:
- A formatted
String
. - Throws:
IllegalComponentStateException
- thrown if the component is not yet a child of a valid view tree, for example, beforeaddNotify()
is called
-
getRenderer
Deprecated.Gets aPFieldComponentRenderer
for this component. The renderer uses an Portal-aware, permissions-based formatter, and is suitable for lists or tables.- Returns:
- A new
PFieldComponentRenderer
object. - Throws:
IllegalComponentStateException
- thrown if the component is not yet a child of a valid view tree, for example, beforeaddNotify()
is called
-
PFieldComponentImpl
is deprecated and replaced byPFieldDelegate
.