Class WTSchema
- All Implemented Interfaces:
ActionListener,Externalizable,Serializable,EventListener
WTSchema object stores display information for a modeled Windchill
business class. It can be used to specify a schema used by
WTQuery and WTMultiList objects. It is necessary
to create this class with a properly formatted string that contains a fully
qualified class name as well as attributes that will be displayed. When
defining a schema to be used by a WTQuery object, the formatted string
specifies which attributes get displayed in the Tab panel and results list
area. When defining a schema to be used by a WTMultiList object, the formatted
string specifes the attributes associated with the columns in the list.
The format string is broken up into records. There is a one character code followed by a colon at the beginning of each record, a semi-colon and space combination are used as a separator between records. The one character codes are C, G, A and D.
C is used to specify a fully qualified class name. This must be the first record in the format string.
G is used to specify Text for the search criteria tabs. All attributes that follow will be grouped on that tab, until the next G record.
A is used to specify an attribute used in both the search criteria Tab panel and the results list area. Attributes are displayed in the order they appear in the string.
D is used to specify an attribute used in a multi column list. This includes
defining a column in a WTMultiList object and the results
list area of a WTQuery object.
For example when defining the schema to be used by a WTQuery object:
"C:wt.doc.WTDocument; G:Search Criteria; A:name; D:versionIdentifier; G:More Search Criteria; A:description;"designates
wt.doc.WTDocument as the class that will be
queried. The tab panel will contain two tabs labeled Search Criteria and More Search Criteria. The
Search Criteria tab will contain an input field for name and versionIdentifier. The More Search Criteria tab will
contain an input field for description. The results list area will be set up with columns for
name, versionIdentifier and description.
Supported API: true
Extendable: false
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
WTSchema
Constructor specifying a formatted string. The format string is broken up into records. There is a one character code followed by a colon at the beginning of each record, a semi-colon and space combination are used as a separator between records. The one character codes are C, G, A and D.C is used to specify a fully qualified class name. This must be the first record in the format string.
G is used to specify Text for the search criteria tabs. All attributes that follow will be grouped on that tab, until the next G record.
A is used to specify an attribute used in both the search criteria Tab panel and the results list area. Attributes are displayed in the order they appear in the string.
D is used to specify an attribute used in a multi column list. This includes defining a column in a
WTMultiListobject and the results list area of aWTQueryobject.For example when defining the schema to be used by a
WTQueryobject:"C:wt.doc.WTDocument; G:Search Criteria; A:name; D:versionIdentifier; G:More Search Criteria; A:description;"
designateswt.doc.WTDocumentas the class that will be queried. The tab panel will contain two tabs labeled Search Criteria and More Search Criteria. The Search Criteria tab will contain an input field for name and versionIdentifier. The More Search Criteria tab will contain an input field for description. The results list area will be set up with columns for name, versionIdentifier and description.
Supported API: true- Parameters:
a_schema- A formatted string.
-
WTSchema
public WTSchema()Default no-arg constructor. If you use this constructor it is necessary to call thesetSchema()method.
Supported API: true
-
-
Method Details
-
setSchema
Set the formatted string to be stored in theWTSchemaobject.
Supported API: true- Parameters:
a_definition_string- A formatted string containing attributes defined for a modeled Windchill business class that are to be used for display purposes.
-