org.drools.guvnor.client.widgets.drools.decoratedgrid
Class CellHeightCalculatorImpl

java.lang.Object
  extended by org.drools.guvnor.client.widgets.drools.decoratedgrid.CellHeightCalculatorImpl
Direct Known Subclasses:
CellHeightCalculatorImplIE, CellHeightCalculatorImplSafari

public class CellHeightCalculatorImpl
extends Object

Default implementation of utility class to calculate the height of a merged cell in a VerticalMergedGrid widget. IE and Mozilla don't have any common ground on how to calculate the height of a HTML table cell spanning multiple rows. After much trying deferred bindings offered a simple, and arguably more elegant, approach.


Field Summary
protected static DecisionTableResources resource
           
protected static DecisionTableResources.DecisionTableStyle style
           
 
Constructor Summary
CellHeightCalculatorImpl()
           
 
Method Summary
 int calculateHeight(int rowSpan)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resource

protected static final DecisionTableResources resource

style

protected static final DecisionTableResources.DecisionTableStyle style
Constructor Detail

CellHeightCalculatorImpl

public CellHeightCalculatorImpl()
Method Detail

calculateHeight

public int calculateHeight(int rowSpan)


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