public class WidthCalculator<V> extends Object
Constructor and Description |
---|
WidthCalculator(com.google.gwt.cell.client.Cell<V> cell)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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
|
public WidthCalculator(com.google.gwt.cell.client.Cell<V> cell)
cell
- The Cell used to render contentpublic void setMinimumWidth(int minWidth)
minWidth
- public int getMaximumElementWidth(List<? extends V> values)
values
- public int getElementWidth(V value)
value
- Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.