|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.guvnor.client.widgets.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 |
DynamicDataRow |
addRow(int index,
List<CellValue<? extends Comparable<?>>> rowData)
Add a row of data at the specified index |
DynamicDataRow |
addRow(List<CellValue<? extends Comparable<?>>> rowData)
Add a row of data at the end of the table |
void |
applyModelGrouping(CellValue<?> startCell)
Apply grouping by collapsing applicable rows |
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. |
void |
setOnRowChangeCommand(com.google.gwt.user.client.Command cmd)
Configure a command that can be executed whenever a row is added\deleted. |
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 DynamicDataRow addRow(int index, List<CellValue<? extends Comparable<?>>> rowData)
index
- rowData
-
public DynamicDataRow addRow(List<CellValue<? extends Comparable<?>>> 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 void setOnRowChangeCommand(com.google.gwt.user.client.Command cmd)
cmd
- public int size()
public void sort(List<SortConfiguration> sortConfig)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |