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 aPFieldComponentRendererfor this component.voidregister()Deprecated.Overloads theregistermethod.voidsetAssociatedClass(String name) Deprecated.Sets the class name to associate with this component.voidsetDisplayFieldDescription(String fieldDisp) Deprecated.Sets the description of the field of the data model that is most important to this component.voidsetDisplayFieldFormat(String fieldForm) Deprecated.Sets the format used to display the field(s) described by theDisplayFieldDescriptionmethods.voidDeprecated.Sets the help ID for this component.voidsetModelFieldDescription(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- thePFieldComponentobject- Throws:
RemoteException- thrown for all problems
-
-
Method Details
-
register
Deprecated.Overloads theregistermethod. Forwards field descriptions to the controller.- Overrides:
registerin 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- aStringthat 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
Stringdescription 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- aStringthat 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
Stringdescription 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 theDisplayFieldDescriptionmethods. This is a standard JavaMessageFormatstring.- Parameters:
fieldForm- the format string, or resource tag for format- Throws:
RemoteException- thrown for all problems
-
getDisplayFieldFormat
Deprecated.Gets the display format.- Returns:
- A
Stringthat describes the message format. - Throws:
RemoteException- thrown for all problems
-
setHelpID
Deprecated.Sets the help ID for this component.- Parameters:
id- aStringhelp ID
-
getHelpID
Deprecated.Gets the current help ID for this component.- Returns:
- A
Stringhelp ID.
-
setAssociatedClass
Deprecated.Sets the class name to associate with this component.- Parameters:
name- aStringwith the class name to associate
-
getAssociatedClass
Deprecated.Gets the class name to associate with this component.- Returns:
- A
Stringwith the associated class name.
-
getFormatter
Deprecated.Gets a formatter for component data.- Returns:
- A
PInfranetMessageFormatobject 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, thenvalshould be aVectoror anObjectarray.- 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 aPFieldComponentRendererfor this component. The renderer uses an Portal-aware, permissions-based formatter, and is suitable for lists or tables.- Returns:
- A new
PFieldComponentRendererobject. - Throws:
IllegalComponentStateException- thrown if the component is not yet a child of a valid view tree, for example, beforeaddNotify()is called
-
PFieldComponentImplis deprecated and replaced byPFieldDelegate.