public abstract class ContextProvider extends Object
IResult.getResultMetaData() to provide additional information
about rows in a report.IContextObject,
IContextObjectSet| Constructor and Description |
|---|
ContextProvider(ContextProvider template)
Constructor using copying values from the give template context provider.
|
ContextProvider(String label)
Creates a ContextProvider which will be queried later to find out
more details about a row in a report.
|
ContextProvider(String label,
ContextDerivedData.DerivedOperation... operations)
Creates a ContextProvider which will be queried later to find out
more details about a row in a report.
|
| Modifier and Type | Method and Description |
|---|---|
abstract IContextObject |
getContext(Object row)
Return the context object associated with the specified row.
|
URL |
getIcon()
Returns an icon which could be used on context menus as a top level
to represent this entire type of data available from an
IStructuredResult. |
String |
getLabel()
The label for this context provider.
|
ContextDerivedData.DerivedOperation[] |
getOperations()
Extra operations to calculate more columns.
|
boolean |
hasSameTarget(ContextProvider other)
Used to see if two context providers are the same.
|
boolean |
isDefault()
The default context provider is that for the whole snapshot.
|
public ContextProvider(String label)
label - The label used for context menus.public ContextProvider(String label, ContextDerivedData.DerivedOperation... operations)
label - The label used for context menus.operations - operations which can be used to calculate extra column informationpublic ContextProvider(ContextProvider template)
template - a similar ContextProviderpublic String getLabel()
public final boolean isDefault()
public final boolean hasSameTarget(ContextProvider other)
other - the other context provider to comparepublic ContextDerivedData.DerivedOperation[] getOperations()
public URL getIcon()
IStructuredResult.public abstract IContextObject getContext(Object row)
row - the row requested