Package com.ptc.core.components.util
Class ComponentUtility
java.lang.Object
com.ptc.core.components.util.ComponentUtility
- All Implemented Interfaces:
RemoteAccess
Deprecated.
This class is deprecated in 9.0. It is replace by the class
ClientArchitecture/CommonComponents/src/com/ptc/core/components/CreateAndEditModelGetter.
This class contains methods for creating the data models needed for attributes tables in
create and edit wizards
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionstatic ArrayListgetItemAttributes(ComponentDescriptor compDescriptor, NmCommandBean cb, com.ptc.netmarkets.util.misc.NmContext nmcontext) Deprecated.This method is deprecated in 9.0.
-
Method Details
-
getItemAttributes
@Deprecated public static ArrayList getItemAttributes(ComponentDescriptor compDescriptor, NmCommandBean cb, com.ptc.netmarkets.util.misc.NmContext nmcontext) throws WTException Deprecated.This method is deprecated in 9.0. It is replaced by the method ClientArchitecture/CommonComponents/src/com/ptc/core/components/CreateAndEditModelGetter.getItemAttributes()Gets a TypeInstance for a wizard table displaying the attributes of an object being created or edited. The table can be view-only or editable. The TypeInstance is used by the data utilities to provide localized attribute labels; default and pregenerated values for create operations, existing attribute values for edit operations; and information as to the visibility of and constraints on an attribute.
This method is typically invoked from a jsp page using the getModel tag. For example:
<jca:getModel var="tableModel" descriptor="${attributesTableDescriptor}"
serviceName="com.ptc.core.components.util.ComponentUtility"
methodName="getItemAttributes">
<jca:addServiceArgument value="${attributesTableDescriptor}" type="com.ptc.core.components.descriptor.ComponentDescriptor"/>
<jca:addServiceArgument value="${commandBean}" type="com.ptc.netmarkets.util.beans.NmCommandBean"/>
<jca:addServiceArgument value="${nmcontext.context}" type="com.ptc.netmarkets.util.misc.NmContext"/>
</jca:getModel>- Parameters:
compDescriptor- - Descriptor for the table to be displayed. This contains descriptors for each attribute to be displayed. Required. Input.cb- - Bean holding the identity of the object being displayed and its form data. Required. Input.nmcontext- - The NmContext for the current jsp page. Required. Input- Returns:
- a List containing one TypeInstance
Supported API: true
Extendable: false - Throws:
WTException
-