cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

How to configure AttributePanel width value when customize a AttributesComponentBuilder?

TZ
1-Newbie
1-Newbie

How to configure AttributePanel width value when customize a AttributesComponentBuilder?

dear all

I encounter a cusomization prolbem with AbstractAttributesComponentBuilder for build a wtdocument in wizard step.

After I configure universal language . The html table sytle is not as expected.

This is piecess source code.The attribute attach customize dataUtility.

@TypeBased({"com.XXXXXXX.XXXXXXXXXXXXXXXXXXX"})

@ComponentBuilder({"XXXXXXXXXXXXXXXX.MaterialSpecSchedule"})

public class XXXXXXXXXXXX extends AbstractAttributesComponentBuilder{

@Override

public AttributePanelConfig buildAttributesComponentConfig(ComponentParams paramComponentParams) throws WTException{

Object obj= paramComponentParams.getContextObject();

ComponentConfigFactory localComponentConfigFactory = getComponentConfigFactory();

com.ptc.jca.mvc.components.JcaTypedAttrLayOutFactory tfactory= new com.ptc.jca.mvc.components.JcaTypedAttrLayOutFactory();

AttributePanelConfig localAttributePanelConfig =localComponentConfigFactory.newAttributePanelConfig();

String s = com.ptc.jca.mvc.components.JcaComponentParamsUtils.getInstance().getContextObjectClassName((com.ptc.jca.mvc.components.JcaComponentParams)paramComponentParams);

localAttributePanelConfig.setType(s);

localAttributePanelConfig.setComponentType(ComponentType.WIZARD_ATTRIBUTES_TABLE);

GroupConfig localGroupConfig2 = localComponentConfigFactory.newGroupConfig("lwcGroupNameOutputVoltageCurrentGroup");

localGroupConfig2.setLabel("Output Voltage & Current");

com.ptc.mvc.components.AttributeConfig columnConfig= localComponentConfigFactory.newAttributeConfig("outputVoltageCurrent");

columnConfig.setDataUtilityId("voltageDataUtility");

localGroupConfig2.addComponent(columnConfig);

localAttributePanelConfig.addComponent(localGroupConfig2);

return localAttributePanelConfig;

}

protected ComponentType getComponentType(ComponentParams paramComponentParams, ComponentMode paramComponentMode){

return ComponentType.WIZARD_ATTRIBUTES_TABLE;

}

}

I also try to disable all customlize.The result is same.

How can I do to delete the style value ?

0 REPLIES 0
Top Tags