public interface IVizCellContentProvider
TableViewer
, we often require a
CellLabelProvider
to generate labels for table cells and an
EditingSupport
to enable editing the values in those cells. An
ICellContentProvider
provides the necessary methods to link
these to the underlying model so that the code that touches the model resides
primarily in the content provider.Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.graphics.Image |
getImage(java.lang.Object element)
Gets an
Image representing the specified element. |
java.lang.String |
getText(java.lang.Object element)
Gets the string to display for the specified element's cell.
|
java.lang.String |
getToolTipText(java.lang.Object element)
Gets the string to display for the specified element's cell tool tip.
|
java.lang.Object |
getValue(java.lang.Object element)
Gets the current value associated with the specified element.
|
boolean |
isEnabled(java.lang.Object element)
Gets whether or not the specified element's cell should be enabled.
|
boolean |
isValid(java.lang.Object element)
Gets whether or not the specified element is a valid
Object
to be put in a cell. |
boolean |
setValue(java.lang.Object element,
java.lang.Object value)
Sets a new value for the specified element.
|
boolean isValid(java.lang.Object element)
Object
to be put in a cell.element
- The element to test.boolean isEnabled(java.lang.Object element)
element
- The element to test.java.lang.String getText(java.lang.Object element)
element
- The element that needs a string.null
.java.lang.String getToolTipText(java.lang.Object element)
element
- The element that needs a tool tip.null
.org.eclipse.swt.graphics.Image getImage(java.lang.Object element)
Image
representing the specified element. This will
be placed in its cell.element
- The element that needs a cell Image
.Image
for the cell, or null if Image
s are not supported.java.lang.Object getValue(java.lang.Object element)
element
- The element whose value is requested.boolean setValue(java.lang.Object element, java.lang.Object value)
element
- The element whose value is being set.value
- The value that should be set for the element. This is expected
to match the underlying element's value type.