Package com.portal.browse
Class DataTemplate
java.lang.Object
com.portal.browse.DataTemplate
- All Implemented Interfaces:
Serializable
The data template class is used to encapsulate the FList/POID/array
data to display along with a display format description.
- Version:
- %version: 11 % %date_modified: Wed Oct 11 09:01:09 2000 %
- Author:
- Larry Lynch-Freshner, Monica Gaines
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDataTemplate
(Object data) Create a data template object.DataTemplate
(Object parent, Object data, String fldName) Create a data template object.DataTemplate
(Object data, String[] order) Create a data template object. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether the given object is the same as this data templategetChild()
Returns a child object of the data template.Returns the field name for the child object of the data template.getData()
Returns the actual data assoicated with the data template.getName()
Returns the name used to describe this data template.String[]
Returns an array of the ordered fields.Returns the orginial data that was used to create this template.Returns the string used to describe the data template.Object[]
void
void
setOrderedFields
(String[] oFields) Sets the ordered fields array.void
Sets the string to be used for describing the data template.void
setSubOrder
(Object[] objs) toString()
Returns a string representation of this object.
-
Constructor Details
-
DataTemplate
Create a data template object.- Parameters:
data
- the data to be encapsulatedorder
- the order to display the fields
-
DataTemplate
Create a data template object.- Parameters:
data
- the data to be encapsulated
-
DataTemplate
Create a data template object.- Parameters:
parent
- the data to be encapsulateddata
- a child object, usually a SparseArray or SubStructfldName
- the field name for the child object
-
-
Method Details
-
setString
Sets the string to be used for describing the data template.- Parameters:
str
- the string to describle the data template
-
getString
Returns the string used to describe the data template.- Returns:
- the string that describes this data template.
-
setData
-
getData
Returns the actual data assoicated with the data template.- Returns:
- the actual data
-
getOrigData
Returns the orginial data that was used to create this template. -
getName
Returns the name used to describe this data template.- Returns:
- the name of the data template
-
getSubOrder
-
setSubOrder
-
getOrderedFields
Returns an array of the ordered fields.- Returns:
- An array containing the ordered fields
-
setOrderedFields
Sets the ordered fields array.- Parameters:
oFields
- An array containing the ordered fields
-
equals
Returns whether the given object is the same as this data template -
toString
Returns a string representation of this object. -
getChild
Returns a child object of the data template. This only gets set in the constructor and is typically used for SparseArrays or substructs.- Parameters:
the
- child object
-
getChildFldName
Returns the field name for the child object of the data template. This only gets set in the constructor and is typically used for SparseArrays or substructs.- Parameters:
field
- name for the child object
-