|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.ui.Grid.StaticSection<ROWTYPE>
ROWTYPE - the type of the rows in the sectionpublic abstract static class Grid.StaticSection<ROWTYPE extends Grid.StaticSection.StaticRow<?>>
Abstract base class for Grid header and footer sections.
| Nested Class Summary | |
|---|---|
static class |
Grid.StaticSection.StaticRow<CELLTYPE extends com.vaadin.ui.Grid.StaticSection.StaticCell>
Abstract base class for Grid header and footer rows. |
| Field Summary | |
|---|---|
protected Grid |
grid
|
protected java.util.List<ROWTYPE> |
rows
|
| Constructor Summary | |
|---|---|
Grid.StaticSection()
|
|
| Method Summary | |
|---|---|
protected void |
addColumn(java.lang.Object propertyId)
Adds a column for given property id to the section. |
ROWTYPE |
addRowAt(int index)
Inserts a new row at the given position. |
ROWTYPE |
appendRow()
Adds a new row at the bottom of this section. |
protected abstract ROWTYPE |
createRow()
|
ROWTYPE |
getRow(int rowIndex)
Gets row at given index. |
int |
getRowCount()
Gets the amount of rows in this section. |
protected abstract com.vaadin.shared.ui.grid.GridStaticSectionState |
getSectionState()
|
boolean |
isVisible()
Returns the visibility of this section. |
protected void |
markAsDirty()
Informs the grid that state has changed and it should be redrawn. |
ROWTYPE |
prependRow()
Adds a new row at the top of this section. |
protected void |
readDesign(org.jsoup.nodes.Element tableSectionElement,
DesignContext designContext)
Writes the declarative design from the given table section element. |
protected void |
removeColumn(java.lang.Object propertyId)
Removes a column for given property id from the section. |
ROWTYPE |
removeRow(int rowIndex)
Removes the row at the given position. |
void |
removeRow(ROWTYPE row)
Removes the given row from the section. |
protected void |
sanityCheck()
Performs a sanity check that section is in correct state. |
void |
setVisible(boolean visible)
Sets the visibility of the whole section. |
protected void |
writeDesign(org.jsoup.nodes.Element tableSectionElement,
DesignContext designContext)
Writes the declarative design to the given table section element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Grid grid
protected java.util.List<ROWTYPE extends Grid.StaticSection.StaticRow<?>> rows
| Constructor Detail |
|---|
public Grid.StaticSection()
| Method Detail |
|---|
public void setVisible(boolean visible)
visible - true to show this section, false to hidepublic boolean isVisible()
public ROWTYPE removeRow(int rowIndex)
rowIndex - the position of the row
java.lang.IllegalArgumentException - if no row exists at given indexremoveRow(StaticRow),
addRowAt(int),
appendRow(),
prependRow()public void removeRow(ROWTYPE row)
row - the row to be removed
java.lang.IllegalArgumentException - if the row does not exist in this sectionremoveRow(int),
addRowAt(int),
appendRow(),
prependRow()public ROWTYPE getRow(int rowIndex)
rowIndex - 0 based index for row. Counted from top to bottom
public ROWTYPE prependRow()
appendRow(),
addRowAt(int),
removeRow(StaticRow),
removeRow(int)public ROWTYPE appendRow()
prependRow(),
addRowAt(int),
removeRow(StaticRow),
removeRow(int)public ROWTYPE addRowAt(int index)
index - the position at which to insert the row
java.lang.IndexOutOfBoundsException - if the index is out of boundsappendRow(),
prependRow(),
removeRow(StaticRow),
removeRow(int)public int getRowCount()
protected abstract com.vaadin.shared.ui.grid.GridStaticSectionState getSectionState()
protected abstract ROWTYPE createRow()
protected void markAsDirty()
protected void removeColumn(java.lang.Object propertyId)
propertyId - property to be removedprotected void addColumn(java.lang.Object propertyId)
propertyId - property to be added
protected void sanityCheck()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if merged cells are not i n continuous range
protected void writeDesign(org.jsoup.nodes.Element tableSectionElement,
DesignContext designContext)
tableSectionElement - Element to write design todesignContext - the design context
protected void readDesign(org.jsoup.nodes.Element tableSectionElement,
DesignContext designContext)
throws DesignException
tableSectionElement - Element to read design fromdesignContext - the design context
DesignException - if the table section contains unexpected children
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||