Basic Customization > User Interface Customization > Customizing HTML Clients Using the Windchill JSP Framework > Attribute Panels > Solutions > Solution – Create an Advanced Attribute Panel Using Any Layout Defined in the Type and Attribute Management Utility > Procedure – Creating the Attribute Panel > Extending the TypedAttributesPanelBuilder
  
Extending the TypedAttributesPanelBuilder
The panel produced by this builder by default is described in Solution – Create an Advanced Attribute Panel Using the Create, Edit, or More Attributes Screen Type Layout.
This builder calls the TypedAttrLayOutFactory to create the AttributePanelConfig and nested GroupConfigs and AttributeConfigs for the panel. In your custom builder you can modify the screen type used to look up the layout for the panel or the view used to render the panel.
Typically, the configuration of the group(s) and attributes in the panel should be done in the Type and Attribute Management utility layout for consistency of the product. However, on rare cases you might have the need to modify a configuration property. For such a special use case, you can also postprocess the config objects created by the factory to modify configuration properties, such as the title of a group, the display mode of an attribute (editable/view-only), or the selection list style of a Boolean attribute. Most of the group and attribute configuration properties set in the Type and Attribute Management utility can be overridden in the builder class by setting properties on the GroupConfigs or AttributeConfigs. See Customization Points for a list of configurable properties.
Modifying the Panel Configuration
To modify the panel configuation, override the buildAttributePanelConfig() method. The buildAttributePanelConfig() method creates an AttributePanelConfig.
Examples of some configuration changes you might want to make are:
The Type and Attribute Management utility layout to be used for the panel.
To use a different screen type for the layout lookup, use the TypedAttrLayOutFactory to retrieve a different AttributePanelConfig :
getTypedAttrLayOutFactory().getAttributePanelConfig(getComponentConfigFactory(),
params, ScreenDefinitionName.<your screen type>);
The class ScreenDefinitionName lists the available screen types.
Change the ComponentMode of one or more of the attribute fields to view-only in an editable attribute panel or vice versa.
If the component mode is not specifically set on the attribute’s ComponentConfig, the component mode defined for the panel will be used.
See Modifying a Property of an AttributeConfig in an AttributePanelConfig Created by the TypedAttrLayOutFactory example code in for how to make a single field editable or view-only.
The label for a group within the panel or an individual attribute.
This can be specified by calling setLabel() method on the group or attribute config.
Modifying the Panel View (JSP)
See How to Modify the Panel View JSP
Modifying the Panel Context Object
See How to Modify the Panel Context Object