Package com.ptc.core.components.factory
Class AbstractDataUtility
java.lang.Object
com.ptc.core.components.factory.AbstractDataUtility
- All Implemented Interfaces:
DataUtility
- Direct Known Subclasses:
com.ptc.core.components.factory.dataUtilities.AbstractAttributeDataUtility,AbstractBooleanValueDataUtility,AutomateFastTrackDataUtility,BusinessRuleConflictsDataUtility,ChangeLinkAttributeDataUtility,com.ptc.core.components.factory.dataUtilities.DefaultDataUtility,NmActionDataUtility,PersistedCollectionCustomAttributesDelegate,VisualizationDataUtility,WorkItemAttributeDataUtility
Helper class that provides default implementations for some DataUtility methods.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptiongetColumnDescriptor(String component_id, ModelContext mc) Get the column descriptor.getLabel(String component_id, ModelContext mc) Get a default label for the component id.getToolTip(String component_id, ModelContext mc) No-op implementation of getTooltip
Supported API: true
Extendable: truevoidsetModelData(String component_id, List<?> objects, ModelContext mc) No-op implementation of setModelData
Supported API: true
Extendable: trueMethods 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
getDataValue
-
Method Details
-
setModelData
No-op implementation of setModelData
Supported API: true
Extendable: true- Specified by:
setModelDatain interfaceDataUtility- Parameters:
component_id- The identifier of the component that requested this data utilityobjects- The data objects that will subsequently be processed by calls to getDataValue.- Throws:
WTException- If a problem happens while batch processing the data objects.
-
getLabel
Get a default label for the component id. First looks in the component type default resource bundle for a label. If it cannot find one there, then uses introspection to find a label. If that does not work, then the component id itself is returned.- Specified by:
getLabelin interfaceDataUtility- Parameters:
component_id- The component to get a label formc- The model context- Returns:
- A default label
Supported API: true
Extendable: true - Throws:
WTException
-
getToolTip
No-op implementation of getTooltip
Supported API: true
Extendable: true- Specified by:
getToolTipin interfaceDataUtility- Parameters:
component_id-mc-- Returns:
- a String tooltip
- Throws:
WTException
-
getColumnDescriptor
Get the column descriptor. The default will be used unless otherwise specified. The default is created from the factory. DataUtilities can override this method and call other column descriptors for use with their columns. Attributes which a datautility may want to change could be the width of the column or whether it is able to be resizable or not. These can be override the default.
Supported API: true
Extendable: true- Specified by:
getColumnDescriptorin interfaceDataUtility- Parameters:
mc- The model context is used for getting the component descriptor.- Returns:
- A column descriptor that is suitable for this column.
-