Drools Workbench - Guided Decision Table Editor - Client 6.2.0.CR3

org.drools.workbench.screens.guided.dtable.client.wizard.pages
Class WidthCalculator<V>

java.lang.Object
  extended by org.drools.workbench.screens.guided.dtable.client.wizard.pages.WidthCalculator<V>

public class WidthCalculator<V>
extends Object

A utility class to calculate the width of a Cell


Constructor Summary
WidthCalculator(com.google.gwt.cell.client.Cell<V> cell)
          Constructor
 
Method Summary
 int getElementWidth(V value)
          Get the width of a single item
 int getMaximumElementWidth(List<? extends V> values)
          Get the widest Cell from a list of content
 void setMinimumWidth(int minWidth)
          Set the minimum width
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WidthCalculator

public WidthCalculator(com.google.gwt.cell.client.Cell<V> cell)
Constructor

Parameters:
cell - The Cell used to render content
Method Detail

setMinimumWidth

public void setMinimumWidth(int minWidth)
Set the minimum width

Parameters:
minWidth -

getMaximumElementWidth

public int getMaximumElementWidth(List<? extends V> values)
Get the widest Cell from a list of content

Parameters:
values -
Returns:

getElementWidth

public int getElementWidth(V value)
Get the width of a single item

Parameters:
value -
Returns:

Drools Workbench - Guided Decision Table Editor - Client 6.2.0.CR3

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