|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.guvnor.client.widgets.drools.decoratedgrid.data.DynamicData
public class DynamicData
A simple container for rows of data.
| Constructor Summary | |
|---|---|
DynamicData()
|
|
| Method Summary | |
|---|---|
void |
addColumn(int index,
List<CellValue<? extends Comparable<?>>> columnData,
boolean isVisible)
Add column to data |
DynamicDataRow |
addRow()
Add an empty row of data to the end of the table |
void |
addRow(DynamicDataRow rowData)
Add a row of data at the end of the table |
void |
addRow(int index,
DynamicDataRow rowData)
Add a row of data at the specified index |
void |
applyModelGrouping(CellValue<?> startCell)
Apply grouping by collapsing applicable rows |
void |
assertModelMerging()
Ensure merging and indexing is reflected in the entire model. |
void |
clear()
|
void |
deleteColumn(int index)
Delete column data |
DynamicDataRow |
deleteRow(int index)
|
CellValue<? extends Comparable<?>> |
get(Coordinate c)
Get the CellValue at the given coordinate |
DynamicDataRow |
get(int index)
|
DynamicData |
getFlattenedData()
Return grid's data. |
int |
indexOf(DynamicDataRow row)
|
boolean |
isMerged()
Return the state of merging |
Iterator<DynamicDataRow> |
iterator()
|
List<DynamicDataRow> |
removeModelGrouping(CellValue<?> startCell)
Remove grouping by expanding applicable rows |
void |
set(Coordinate c,
Object value)
Set the value at the specified coordinate |
void |
setColumnVisibility(int index,
boolean isVisible)
Set whether a columns is Visible |
void |
setMerged(boolean isMerged)
Set whether the grid's data is merged or not. |
int |
size()
|
void |
sort(List<SortConfiguration> sortConfig)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DynamicData()
| Method Detail |
|---|
public void addColumn(int index,
List<CellValue<? extends Comparable<?>>> columnData,
boolean isVisible)
index - columnData - public DynamicDataRow addRow()
public void addRow(int index,
DynamicDataRow rowData)
index - rowData - public void addRow(DynamicDataRow rowData)
rowData - public void applyModelGrouping(CellValue<?> startCell)
startCell - public void clear()
public void deleteColumn(int index)
index - public DynamicDataRow deleteRow(int index)
public CellValue<? extends Comparable<?>> get(Coordinate c)
c -
public DynamicDataRow get(int index)
public DynamicData getFlattenedData()
public int indexOf(DynamicDataRow row)
public boolean isMerged()
public Iterator<DynamicDataRow> iterator()
iterator in interface Iterable<DynamicDataRow>public List<DynamicDataRow> removeModelGrouping(CellValue<?> startCell)
startCell -
public void set(Coordinate c,
Object value)
c - value -
public void setColumnVisibility(int index,
boolean isVisible)
index - index of columnisVisible - True if the column is visiblepublic void setMerged(boolean isMerged)
isMerged - public int size()
public void sort(List<SortConfiguration> sortConfig)
public void assertModelMerging()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||