com.ptc.core.components.util
Class ComponentUtility

java.lang.Object
  extended by 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.

public class ComponentUtility
extends Object
implements RemoteAccess

This class contains methods for creating the data models needed for attributes tables in create and edit wizards

Supported API: true

Extendable: false


Method Summary
static ArrayList getItemAttributes(com.ptc.core.components.descriptor.ComponentDescriptor compDescriptor, NmCommandBean cb, NmContext nmcontext)
          Deprecated. This method is deprecated in 9.0. It is replaced by the method ClientArchitecture/CommonComponents/src/com/ptc/core/components/CreateAndEditModelGetter.getItemAttributes()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getItemAttributes

public static ArrayList getItemAttributes(com.ptc.core.components.descriptor.ComponentDescriptor compDescriptor,
                                          NmCommandBean cb,
                                          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