de.tif.jacob.screen
Class RecordLabelProvider
java.lang.Object
de.tif.jacob.screen.RecordLabelProvider
- All Implemented Interfaces:
- ILabelProvider
public class RecordLabelProvider
- extends java.lang.Object
- implements ILabelProvider
Default implementation for IDataTableRecord.
Provide the text and/or image for the label of a given record.
Used by IRecordTReeDialog.
|
Method Summary |
java.lang.String |
getImage(IClientContext context,
java.lang.Object record)
Returns the resource name of the image for the label of the given element. |
java.lang.String |
getText(IClientContext context,
java.lang.Object record)
Returns the text for the label of the given IDataTableRecord. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RecordLabelProvider
public RecordLabelProvider()
getImage
public java.lang.String getImage(IClientContext context,
java.lang.Object record)
- Returns the resource name of the image for the label of the given element.
The image must be stored in the java package
jacob.resources.*
Example: if you return Task you must provide
an image named Task.png or Task.gif
in the java package jacob.resources.*
- Specified by:
getImage in interface ILabelProvider
- Parameters:
context - the current client contextrecord - the record for which to provide the label image
- Returns:
- the resource name of the image, or
null
if there is no image for the given object
getText
public java.lang.String getText(IClientContext context,
java.lang.Object record)
- Returns the text for the label of the given
IDataTableRecord.
- Specified by:
getText in interface ILabelProvider
- Parameters:
context - the current client contextrecord - the record for which to provide the label text
- Returns:
- the text string used to label the element, or
null
if there is no text label for the given object