Advanced Attribute Panel
This example demonstrates how to create a non-layout-based advanced attribute panel using a Java builder class. It constructs a panel for an object of type “AttributePanelExampleObject,” a fake business object type that has getter methods for all the attributes displayed in the panel.
The builder class has the builder id ComponendId.ATTRIBUTES_ID, which is the id used for the common action “attributes” to display the More Attributes panel on information pages. So that the system will use this builder instead of the AbstractAttributesComponentBuilder (which has the same id) for the panel, it has a TypeBased annotation specifying it is for the AttributePanelExampleObject type.
If you take a look at the getter methods of the AttributePanelExampleObject class, you will notice that some of them return GuiComponents for the attribute value. Although this would not typically be done in a production client, the Windchill Client Architecture framework will handle these values.
See Solution – Create a Simple or Advanced Attribute Panel Using a Configuration Created in a Java Builder Class for more information on creating non-layout-based advanced attribute panels.
Location of Example
To navigate to this example in the product, go to Customization > Component Catalog > Attribute Panel > Advanced Attribute Panel.
Actions for this Example
Action Name
Object Type Name
File
attributePanel
carambola
<WT_HOME>/codebase/config/actions/Carambola-actions.xml
Action Models for this Example
None
Files Used in This Example
Source File
Description
/com/ptc/mvc/builders/carambola/CarambolaAttributePanelBuilder.java
Builder that creates the configuration and datum object for the panel
/com/ptc/carambola/customization/examples/attributePanel/AttributePanelExampleObject.java
The Java class for the object type represented in the panel
<WT_HOME>/codebase/config/actions/Carambola-actions.xml
Contains the action for the example
Was this helpful?