|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPanel
com.vaadin.client.ui.VScrollTable.VScrollTableBody
public class VScrollTable.VScrollTableBody
This Panel can only contain VScrollTableRow type of widgets. This "simulates" very large table, keeping spacers which take room of unrendered rows.
| Nested Class Summary | |
|---|---|
protected class |
VScrollTable.VScrollTableBody.VScrollTableGeneratedRow
|
class |
VScrollTable.VScrollTableBody.VScrollTableRow
|
| Field Summary | |
|---|---|
static int |
DEFAULT_ROW_HEIGHT
|
| Constructor Summary | |
|---|---|
protected |
VScrollTable.VScrollTableBody()
|
| Method Summary | |
|---|---|
protected void |
calculateMaxIndent()
This method exists for the needs of VTreeTable only. |
protected VScrollTable.VScrollTableBody.VScrollTableRow |
createRow(UIDL uidl,
char[] aligns2)
|
protected void |
ensureCacheFilled()
Ensure we have the correct set of rows on client side, e.g. |
protected void |
ensureFocus()
Ensure the component has a focus. |
int |
getAvailableWidth()
|
int |
getColWidth(int columnIndex)
Returns the width available for column content. |
int |
getFirstRendered()
|
int |
getLastRendered()
|
protected int |
getMaxIndent()
This method exists for the needs of VTreeTable only. |
int |
getRequiredHeight()
|
VScrollTable.VScrollTableBody.VScrollTableRow |
getRowByRowIndex(int indexInTable)
|
double |
getRowHeight()
|
double |
getRowHeight(boolean forceUpdate)
|
int |
getTableHeight()
|
int |
indexOf(Widget row)
|
protected java.util.List<VScrollTable.VScrollTableBody.VScrollTableRow> |
insertAndReindexRows(UIDL rowData,
int firstIndex,
int rows)
|
protected java.util.List<VScrollTable.VScrollTableBody.VScrollTableRow> |
insertRows(UIDL rowData,
int firstIndex,
int rows)
Inserts rows as provided in the rowData starting at firstIndex. |
protected void |
insertRowsDeleteBelow(UIDL rowData,
int firstIndex,
int rows)
|
java.util.Iterator<Widget> |
iterator()
|
void |
moveCol(int oldIndex,
int newIndex)
|
boolean |
remove(Widget w)
|
void |
renderInitialRows(UIDL rowData,
int firstIndex,
int rows)
|
void |
renderRows(UIDL rowData,
int firstIndex,
int rows)
|
void |
setColWidth(int colIndex,
int w)
Sets the content width of a column. |
void |
setLastRendered(int lastRendered)
|
protected void |
unlinkAllRowsStartingAt(int index)
|
protected void |
unlinkAndReindexRows(int firstIndex,
int count)
|
protected boolean |
unlinkRow(boolean fromBeginning)
|
protected void |
unlinkRows(int firstIndex,
int count)
|
protected void |
updateStyleNames(java.lang.String primaryStyleName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_ROW_HEIGHT
| Constructor Detail |
|---|
protected VScrollTable.VScrollTableBody()
| Method Detail |
|---|
public void setLastRendered(int lastRendered)
public int getLastRendered()
public int getFirstRendered()
public VScrollTable.VScrollTableBody.VScrollTableRow getRowByRowIndex(int indexInTable)
public int getRequiredHeight()
protected void updateStyleNames(java.lang.String primaryStyleName)
public int getAvailableWidth()
public void renderInitialRows(UIDL rowData,
int firstIndex,
int rows)
public void renderRows(UIDL rowData,
int firstIndex,
int rows)
protected void ensureCacheFilled()
protected java.util.List<VScrollTable.VScrollTableBody.VScrollTableRow> insertRows(UIDL rowData,
int firstIndex,
int rows)
rowData - firstIndex - rows - the number of rows
protected java.util.List<VScrollTable.VScrollTableBody.VScrollTableRow> insertAndReindexRows(UIDL rowData,
int firstIndex,
int rows)
protected void insertRowsDeleteBelow(UIDL rowData,
int firstIndex,
int rows)
protected VScrollTable.VScrollTableBody.VScrollTableRow createRow(UIDL uidl,
char[] aligns2)
public java.util.Iterator<Widget> iterator()
protected boolean unlinkRow(boolean fromBeginning)
protected void unlinkRows(int firstIndex,
int count)
protected void unlinkAndReindexRows(int firstIndex,
int count)
protected void unlinkAllRowsStartingAt(int index)
public boolean remove(Widget w)
public double getRowHeight()
public double getRowHeight(boolean forceUpdate)
public int getTableHeight()
public int getColWidth(int columnIndex)
columnIndex -
public void setColWidth(int colIndex,
int w)
colIndex - w - protected int getMaxIndent()
VTreeTable only. May be
removed or replaced in the future. Returns the maximum
indent of the hierarcyColumn, if applicable.
VScrollTable#getHierarchyColumnIndex()}protected void calculateMaxIndent()
VTreeTable only. May be
removed or replaced in the future. Calculates the maximum
indent of the hierarcyColumn, if applicable.
public void moveCol(int oldIndex,
int newIndex)
public int indexOf(Widget row)
protected void ensureFocus()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||