|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectWidget
com.vaadin.client.ui.VScrollTable.HeaderCell
public class VScrollTable.HeaderCell
| Constructor Summary | |
|---|---|
VScrollTable.HeaderCell(java.lang.String colId,
java.lang.String headerText)
|
|
| Method Summary | |
|---|---|
void |
disableAutoWidthCalculation()
|
char |
getAlign()
|
java.lang.String |
getCaption()
|
java.lang.String |
getColKey()
|
float |
getExpandRatio()
|
int |
getMinWidth()
|
int |
getNaturalColumnWidth(int columnIndex)
Detects the natural minimum width for the column of this header cell. |
int |
getWidth()
Returns the pixels width of the header cell. |
protected int |
getWidthWithIndent()
This method exists for the needs of VTreeTable only. |
protected void |
handleCaptionEvent(Event event)
|
boolean |
isDefinedWidth()
Detects if width is fixed by developer on server side or resized to current width by user. |
boolean |
isEnabled()
|
boolean |
isSorted()
|
void |
onBrowserEvent(Event event)
Handle column reordering. |
void |
resizeCaptionContainer(int rightSpacing)
Makes room for the sorting indicator in case the column that the header cell belongs to is sorted. |
protected void |
saveNaturalColumnWidthIfNotSaved(int columnIndex)
Saves natural column width if it hasn't been saved already. |
void |
setAlign(char c)
|
void |
setExpandRatio(float floatAttribute)
|
void |
setNaturalMinimumColumnWidth(int w)
|
void |
setSortable(boolean b)
|
void |
setText(java.lang.String headerText)
|
void |
setUndefinedWidth()
|
void |
setWidth(int w,
boolean ensureDefinedWidth)
Sets width to the header cell. |
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 |
| Constructor Detail |
|---|
public VScrollTable.HeaderCell(java.lang.String colId,
java.lang.String headerText)
| Method Detail |
|---|
public void setSortable(boolean b)
public void resizeCaptionContainer(int rightSpacing)
public void setNaturalMinimumColumnWidth(int w)
protected void updateStyleNames(java.lang.String primaryStyleName)
public void disableAutoWidthCalculation()
public void setWidth(int w,
boolean ensureDefinedWidth)
VScrollTable.VScrollTableBody.getMaxIndent().
w - required width of the cell sans indentationsensureDefinedWidth - disables expand ratio if requiredpublic void setUndefinedWidth()
public boolean isDefinedWidth()
protected int getWidthWithIndent()
VTreeTable only.
Returns the pixels width of the header cell. This includes the
indent, if applicable.
public int getWidth()
public void setText(java.lang.String headerText)
public java.lang.String getColKey()
public void onBrowserEvent(Event event)
protected void handleCaptionEvent(Event event)
public int getMinWidth()
public java.lang.String getCaption()
public boolean isEnabled()
public void setAlign(char c)
public char getAlign()
protected void saveNaturalColumnWidthIfNotSaved(int columnIndex)
columnIndex - public int getNaturalColumnWidth(int columnIndex)
columnIndex - column index hint, if -1 (unknown) it will be detected
public void setExpandRatio(float floatAttribute)
public float getExpandRatio()
public boolean isSorted()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||