Package com.ptc.core.components.forms
Class DefaultAttributePopulator
java.lang.Object
com.ptc.core.components.forms.DefaultAttributePopulator
- All Implemented Interfaces:
com.ptc.core.components.forms.AttributePopulator,Externalizable,Serializable
- Direct Known Subclasses:
com.ptc.windchill.enterprise.change2.forms.populators.ChangeObjectAttributePopulator,CreateFromTemplateAttributePopulator,CreateNewInformationElementPopulator,DocAttributePopulator,DocTemplateAttributePopulator,DynamicDocumentTemplateAttributePopulator,EditPartAttributePopulator,ExternalFormDataPopulator,PartAttributePopulator,PartAttributePopulator,PromotionNameAttributePopulator
public class DefaultAttributePopulator
extends Object
implements com.ptc.core.components.forms.AttributePopulator, Externalizable
A default implementation of the AttributePopulator interface intended for subclassing.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionprotected voidsetAttributeState(TypeInstance ti, AttributeIdentifier ai, Object value, State state) Set the value specified against the attribute identifier in the TypeInstance.
-
Method Details
-
setAttributeState
protected void setAttributeState(TypeInstance ti, AttributeIdentifier ai, Object value, State state) throws WTException Set the value specified against the attribute identifier in the TypeInstance. The value will only be set if the state of the attribute in the TypeInstance is set toState.UNINITIALIZEDorState.DEFAULT. Upon setting the value in the TypeInstance, the state of the attribute will be set to the passed-in state.
Supported API: true- Parameters:
ti- The type instance.ai- The attribute to set in the type instancevalue- The value to set to attribute in the type instance to.state- The state to set the attribute in the type instance to.- Throws:
WTException
-