Class XViewerPreComputedColumnAdapter
java.lang.Object
org.eclipse.nebula.widgets.xviewer.XViewerPreComputedColumnAdapter
- All Implemented Interfaces:
IXViewerPreComputedColumn
public abstract class XViewerPreComputedColumnAdapter extends java.lang.Object implements IXViewerPreComputedColumn
-
Constructor Summary
Constructors Constructor Description XViewerPreComputedColumnAdapter()
-
Method Summary
Modifier and Type Method Description java.lang.String
getText(java.lang.Object obj, java.lang.Long key, java.lang.String cachedValue)
Optional method available to make other checks during loading or otherwise change the cached value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.nebula.widgets.xviewer.IXViewerPreComputedColumn
getKey, populateCachedValues
-
Constructor Details
-
XViewerPreComputedColumnAdapter
public XViewerPreComputedColumnAdapter()
-
-
Method Details
-
getText
public java.lang.String getText(java.lang.Object obj, java.lang.Long key, java.lang.String cachedValue)Description copied from interface:IXViewerPreComputedColumn
Optional method available to make other checks during loading or otherwise change the cached value. If this method returns null, populateCachedValues will be called one more time to attempt to resolve a possibly new object. If null is returned, then empty string will be stored in preComputedValueMap for successive calls. This will handle cases where a parent in the table expands to show an object that was not in the original objects sent to populateCachedValues OR a new element is added to the viewer.- Specified by:
getText
in interfaceIXViewerPreComputedColumn
key
- returned from getKey callcachedValue
- that will be used if this method isn't overridden or returns null- Returns:
- string to display
-