org.drools.guvnor.client.widgets.drools.decoratedgrid
Class CellValue.GroupedCellValue

java.lang.Object
  extended by org.drools.guvnor.client.widgets.drools.decoratedgrid.CellValue<T>
      extended by org.drools.guvnor.client.widgets.drools.decoratedgrid.CellValue.GroupedCellValue
All Implemented Interfaces:
Comparable<CellValue<T>>
Enclosing class:
CellValue<T extends Comparable<T>>

public class CellValue.GroupedCellValue
extends CellValue<T>

A grouped cell, containing a list of grouped cells. If a cell spanning three rows is grouped, the normal CellValue is replaced with a GroupedCellValue (within a GroupedDynamicDataRow). In addition to the GroupedCellValue's value the new GroupedCellValue contains a list of the original three cells.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.drools.guvnor.client.widgets.drools.decoratedgrid.CellValue
CellValue.CellState, CellValue.GroupedCellValue
 
Constructor Summary
CellValue.GroupedCellValue(T value)
          Constructor, nothing to see here, move on
 
Method Summary
 void addCellToGroup(CellValue<T> cell)
          Add a cell to the group of cells
 void addState(CellValue.CellState state)
          Ensure the children (or grouped) Cells' State reflects the parent Grouped Cell's State change
 boolean hasMultipleValues()
          Does this grouped cell contain multiple values
 void removeState(CellValue.CellState state)
          Ensure the children (or grouped) Cells' State reflects the parent Grouped Cell's State change
 void setValue(Object value)
          Ensure the children (or grouped) Cells' value reflects the parent Grouped Cell's value change
 
Methods inherited from class org.drools.guvnor.client.widgets.drools.decoratedgrid.CellValue
compareTo, convertToGroupedCell, equals, getCoordinate, getHtmlCoordinate, getPhysicalCoordinate, getRowSpan, getValue, hashCode, isEmpty, isGrouped, isOtherwise, isSelected, setCoordinate, setHtmlCoordinate, setPhysicalCoordinate, setRowSpan
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellValue.GroupedCellValue

public CellValue.GroupedCellValue(T value)
Constructor, nothing to see here, move on

Parameters:
value -
row -
col -
Method Detail

addCellToGroup

public void addCellToGroup(CellValue<T> cell)
Add a cell to the group of cells

Parameters:
cell -

addState

public void addState(CellValue.CellState state)
Ensure the children (or grouped) Cells' State reflects the parent Grouped Cell's State change

Overrides:
addState in class CellValue<T extends Comparable<T>>

hasMultipleValues

public boolean hasMultipleValues()
Does this grouped cell contain multiple values

Returns:

removeState

public void removeState(CellValue.CellState state)
Ensure the children (or grouped) Cells' State reflects the parent Grouped Cell's State change

Overrides:
removeState in class CellValue<T extends Comparable<T>>

setValue

public void setValue(Object value)
Ensure the children (or grouped) Cells' value reflects the parent Grouped Cell's value change

Overrides:
setValue in class CellValue<T extends Comparable<T>>


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