Guvnor web application Drools 6.0.0-SNAPSHOT

org.drools.guvnor.client.widgets.drools.decoratedgrid.data
Class GroupedDynamicDataRow

java.lang.Object
  extended by org.drools.guvnor.client.widgets.drools.decoratedgrid.data.DynamicDataRow
      extended by org.drools.guvnor.client.widgets.drools.decoratedgrid.data.GroupedDynamicDataRow
All Implemented Interfaces:
Iterable<CellValue<? extends Comparable<?>>>

public class GroupedDynamicDataRow
extends DynamicDataRow

A grouped row of data in the Decision Table. This object represents the row within the table that is visible. It contains a collection of grouped rows excluding the first row of the grouped block. For example: A set of five rows grouped results in one GroupedDynamicDataRow containing four child DynamicDataRows


Constructor Summary
GroupedDynamicDataRow()
           
 
Method Summary
 boolean add(CellValue<? extends Comparable<?>> e)
          Add a value.
 void add(int index, CellValue<? extends Comparable<?>> element)
          Add a value at the given index.
 boolean addChildRow(DynamicDataRow childRow)
           
 CellValue<? extends Comparable<?>> get(int index)
           
 List<DynamicDataRow> getChildRows()
           
 void move(int targetColumnIndex, int sourceColumnIndex)
          Move an element at the given source index to the given target index.
 CellValue<? extends Comparable<?>> remove(int index)
          Remove a value at the given index
 CellValue<? extends Comparable<?>> set(int index, CellValue<? extends Comparable<?>> element)
          Set a value at the given index.
 
Methods inherited from class org.drools.guvnor.client.widgets.drools.decoratedgrid.data.DynamicDataRow
iterator, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupedDynamicDataRow

public GroupedDynamicDataRow()
Method Detail

get

public CellValue<? extends Comparable<?>> get(int index)
Overrides:
get in class DynamicDataRow

getChildRows

public List<DynamicDataRow> getChildRows()

set

public CellValue<? extends Comparable<?>> set(int index,
                                              CellValue<? extends Comparable<?>> element)
Set a value at the given index. All grouped child cells will be set to the same value. Caution should be exercised if the value was first read from a GroupedDynamicDataRow as the value will be a GroupedCellValue which, if added back to the row, will not give the desired result.

Overrides:
set in class DynamicDataRow
Parameters:
index -
element - The CellValue

add

public boolean add(CellValue<? extends Comparable<?>> e)
Add a value. Child cells will be created and set to the same value. Caution should be exercised if the value was first read from a GroupedDynamicDataRow as the value will be a GroupedCellValue which, if added back to the row, will not give the desired result.

Overrides:
add in class DynamicDataRow
Parameters:
element - The CellValue

add

public void add(int index,
                CellValue<? extends Comparable<?>> element)
Add a value at the given index. Child cells will be created and set to the same value. Caution should be exercised if the value was first read from a GroupedDynamicDataRow as the value will be a GroupedCellValue which, if added back to the row, will not give the desired result.

Overrides:
add in class DynamicDataRow
Parameters:
index -
element - The CellValue

addChildRow

public boolean addChildRow(DynamicDataRow childRow)

remove

public CellValue<? extends Comparable<?>> remove(int index)
Remove a value at the given index

Overrides:
remove in class DynamicDataRow

move

public void move(int targetColumnIndex,
                 int sourceColumnIndex)
Move an element at the given source index to the given target index. This should be used in preference to calling add\remove when repositioning elements is required.

Overrides:
move in class DynamicDataRow
Parameters:
targetColumnIndex -
sourceColumnIndex -

Guvnor web application Drools 6.0.0-SNAPSHOT

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.