public static final class ResultMetaData.Builder extends Object
ResultMetaData
factoryConstructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ResultMetaData.Builder |
addContext(ContextProvider provider)
Add a named
ContextProvider to display additional context
menus. |
ResultMetaData.Builder |
addDerivedData(ContextDerivedData.DerivedOperation action)
Extra data for the result
|
ResultMetaData.Builder |
addDetailResult(DetailResultProvider provider)
Add a
DetailResultProvider which can provide enhanced information about a result. |
ResultMetaData |
build()
Creates and returns the ResultMetaData object, with
the context providers list made unmodifiable.
|
ResultMetaData.Builder |
setIsPreSortedBy(int columnIndex,
Column.SortDirection direction)
Indicates that the table or tree is already sorted by the query and
(a) prevents sorting by the UI and (b) sets the sort indicators to
the right columns.
|
public ResultMetaData.Builder addContext(ContextProvider provider)
ContextProvider
to display additional context
menus.
For example, a row may represent two different sets of object(s) and
in a query menu it may be useful for the user to choose which set before running
the next query on a selection.provider
- the ContextProvider to add to the resultpublic ResultMetaData.Builder addDetailResult(DetailResultProvider provider)
DetailResultProvider
which can provide enhanced information about a result.provider
- for enhanced informationpublic ResultMetaData.Builder setIsPreSortedBy(int columnIndex, Column.SortDirection direction)
columnIndex
- the column indexdirection
- how to sort the columnpublic ResultMetaData.Builder addDerivedData(ContextDerivedData.DerivedOperation action)
action
- the way of adding the extra informationpublic ResultMetaData build()