Class AbstractMailToDataUtility
java.lang.Object
com.ptc.core.components.factory.AbstractDataUtility
com.ptc.core.components.factory.dataUtilities.AbstractAttributeDataUtility
com.ptc.windchill.enterprise.object.dataUtilities.AbstractMailToDataUtility
- All Implemented Interfaces:
DataUtility,com.ptc.core.components.descriptor.GuiComponentFactory,LogicSeparatedDataUtility,com.ptc.core.components.factory.dataUtilities.AttributeGuiComponentFactory
public abstract class AbstractMailToDataUtility
extends com.ptc.core.components.factory.dataUtilities.AbstractAttributeDataUtility
Abstract data utility for icon columns whereby a mailto link is generated.
The actually participants and the tooltip text is determined by the implementing
class.
Supported API: true
Supported API: true
-
Field Summary
Fields inherited from interface com.ptc.core.components.descriptor.LogicSeparatedDataUtility
ASSIGNED_OPTIONALITY_CELL_RENDERER, BUILDSTATUS_CELL_RENDERER, CURRENT_LIFECYCLE_CELL_RENDERER, GRAPHICAL_ATTRIBUTE_CELL_RENDER, ICON_CELL_RENDERER, JSONOBJECT_CELL_RENDERER, LONG_DATE_MINUS_TIME_RENDER, REPLACEMENT_STATUS_CELL_RENDERER -
Method Summary
Modifier and TypeMethodDescriptiongetDataValue(String component_id, Object datum, ModelContext mc) Returns the IconComponent for the mailto link or null if not applicable.abstract List<WTPrincipalReference> getParticipants(Object obj) Retrieve the participant email for the object.abstract StringgetTooltip(List<WTPrincipalReference> refs) Generate a tooltip from the list of WTPrincipalReferences used by the mailto icon.Methods inherited from class com.ptc.core.components.factory.dataUtilities.AbstractAttributeDataUtility
convertToGuiValue, createAttributeDisplayCompositeComponent, createAttributeDisplayCompositeComponent, createAttributeInputCompositeComponent, createAttributeInputCompositeComponent, createComponentFactory, createSingleValueDisplayComponent, createSingleValueDisplayComponent, createSingleValueInputComponent, createSingleValueInputComponent, createSingleValueInputComponent, createSingleValueInputComponent, createSingleValueTextDisplayComponent, createSingleValueTextDisplayComponent, createValueDisplayComponent, createValueDisplayComponent, createValueInputComponent, createValueInputComponent, getBackingObject, getComponentFactory, getDefaultTruncationLength, getDefaultTruncationLength, getGuiComponent, getGuiValue, getInfoPageTruncationLength, getInfoPageTruncationLength, getPlainDataValue, getTruncationLength, getTruncationLength, initialize, setGuiComponentProperties, setGuiComponentPropertiesMethods inherited from class com.ptc.core.components.factory.AbstractDataUtility
getComponentBasedLabel, getIntrospectionBasedLabel, getLabel, getLabel, getLabelKey, getMainClassName, getModelAttributes, getPropertyDisplayName, getSoftLabel, getToolTip, initializeDescriptor, resolveJCAObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.ptc.core.components.descriptor.DataUtility
getLabel, getToolTip, initializeDescriptorMethods inherited from interface com.ptc.core.components.descriptor.LogicSeparatedDataUtility
getGWTEditorType, getGWTRendererType
-
Method Details
-
getParticipants
Retrieve the participant email for the object. A value of null should be returned if there is no email present.
Supported API: true- Parameters:
obj- The object to retrieve the email for.- Returns:
- String The email as specified by the implementing class.
-
getTooltip
Generate a tooltip from the list of WTPrincipalReferences used by the mailto icon. This should return "" if there is no tooltip.
Supported API: true- Parameters:
refs- The references to generate the tooltip from.- Returns:
- String
-
getDataValue
Returns the IconComponent for the mailto link or null if not applicable.
Current supported objects: Element
Supported API: true- Specified by:
getDataValuein interfaceDataUtility- Overrides:
getDataValuein classcom.ptc.core.components.factory.dataUtilities.AbstractAttributeDataUtility- Parameters:
component_id- The string component_iddatum- The object for which to generate the mailto link for.mc- The model context.- Returns:
- Object the icon component for the mailto link.
- Throws:
WTException- If a problem occurs while extracting the data
-