public static class DataValue.UtilityFactory extends Object
DataValueimplementations with customized meta information must provide a static final member called
UTILTIYof this class.
|Modifier||Constructor and Description|
Only subclasses are allowed to instantiate this class.
|Modifier and Type||Method and Description|
Derived classes should override this and provide a
Get an icon representing this value.
Returns a family of all renderers this type natively supports.
Convenience method to allow subclasses to load their icon.
public Icon getIcon()
It is recommended to override this method and return an appropriate icon of size 16x16px.
protected DataValueRendererFamily getRendererFamily(DataColumnSpec spec)
Views that rely on renderer implementations will get a list of all
available renderers by invoking
DataType.getRenderer(DataColumnSpec) on the column's
which makes sure that all renderer implementations of compatible
values are returned.
DataColumnSpecof the column for which the renderers are used. Most of the renderer implementations won't need column domain information but some do. For instance a class that renders the double value in the column according to the min/max values in the column domain.
protected DataValueComparator getComparator()
DataValueComparatorthat compares the respective
nullis returned the cell implementing the
DataValueinterface is said to be not comparable with respect to this
DataValueinterface. If none of the implemented
DataValueinterfaces is comparable, the fallback comparator based on the cell's
toString()method is used.
ViewUtils.loadIcon(Class, String)for details.
className- The class object, from which to retrieve the
path- The icon path relative to package associated with the class argument.
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.