public class CollectionsUtil
extends java.lang.Object
ReportCollection
, ReportLine
instances.Modifier and Type | Method and Description |
---|---|
static boolean |
contains(ReportCollection collection,
com.centrasite.control.Item item)
Determines if the given collection contains the given item.
|
static int |
getLineNumberForItem(ReportCollection collection,
com.centrasite.control.Item item)
Returns the line number of the line containing the specified item.
|
static com.centrasite.control.Item |
getSelectedItem(ReportCollection reportCollection)
Retrieves the first selected item in the given
ReportCollection . |
static java.util.Collection<com.centrasite.control.Item> |
getSelectedItems(ReportCollection reportCollection)
Retrieves the selected items in the given
ReportCollection . |
static boolean |
isNullItem(TextGridAdapter.ItemLine line)
Determine if the given line represents null item.
|
static int |
referencesItem(ReportCollection collection,
com.centrasite.control.Item item,
int change)
Determines if the given item is referenced by the given collection.
|
static void |
refreshValue(ReportCollection collection,
com.centrasite.control.ReportInterface report)
Reinitialize the collection with the given
ReportInterface . |
static void |
setRows(ReportCollection collection,
com.centrasite.control.RowIterator rowIt)
Sets the rows coming from the given
RowIterator
as lines in the given ReportCollection . |
public static int referencesItem(ReportCollection collection, com.centrasite.control.Item item, int change)
collection
- item
- change
- public static boolean contains(ReportCollection collection, com.centrasite.control.Item item)
collection
- item
- public static boolean isNullItem(TextGridAdapter.ItemLine line)
null
or if getItem() returns null
.line
- public static java.util.Collection<com.centrasite.control.Item> getSelectedItems(ReportCollection reportCollection)
ReportCollection
.reportCollection
- public static com.centrasite.control.Item getSelectedItem(ReportCollection reportCollection)
ReportCollection
.reportCollection
- public static void setRows(ReportCollection collection, com.centrasite.control.RowIterator rowIt)
RowIterator
as lines in the given ReportCollection
.collection
- rowIt
- public static void refreshValue(ReportCollection collection, com.centrasite.control.ReportInterface report)
ReportInterface
.
This includes initialize the ReportCollectionListener if present or
clearing all lines, executing the report and populating the lines
again.collection
- report
- public static int getLineNumberForItem(ReportCollection collection, com.centrasite.control.Item item)
item
- item to check for