com.vaadin.terminal.gwt.client.ui.
Class VScrollTable.FooterCell
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.vaadin.terminal.gwt.client.ui.VScrollTable.FooterCell
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget
Direct Known Subclasses:
Enclosing class:
- extends com.google.gwt.user.client.ui.Widget
public class VScrollTable.FooterCell
A cell in the footer
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
Field Summary |
---|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
VScrollTable.FooterCell(String colId,
String headerText)
|
Method Summary | |
---|---|
char |
getAlign()
Get the alignment of the text int the cell |
String |
getColKey()
Returns the column key of the column |
float |
getExpandRatio()
Returns the expand ration of the cell |
int |
getNaturalColumnWidth(int columnIndex)
Detects the natural minimum width for the column of this header cell. |
int |
getWidth()
Returns the pixels width of the footer cell. |
protected void |
handleCaptionEvent(com.google.gwt.user.client.Event event)
Handles a event on the captions |
boolean |
isDefinedWidth()
Detects if width is fixed by developer on server side or resized to current width by user. |
boolean |
isEnabled()
Is the cell enabled? |
void |
onBrowserEvent(com.google.gwt.user.client.Event event)
Handle column clicking |
void |
setAlign(char c)
Set alignment of the text in the cell |
void |
setExpandRatio(float floatAttribute)
Sets the expand ratio of the cell |
void |
setNaturalMinimumColumnWidth(int w)
|
void |
setText(String footerText)
Sets the text of the footer |
void |
setUndefinedWidth()
Sets the width to undefined |
void |
setWidth(int w,
boolean ensureDefinedWidth)
Sets the width of the cell. |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
VScrollTable.FooterCell
public VScrollTable.FooterCell(String colId,
String headerText)
Method Detail |
---|
setText
public void setText(String footerText)
- Parameters:
footerText
- The text in the footer
Sets the text of the footer
setAlign
public void setAlign(char c)
- Parameters:
c
- The alignment which can be ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT
Set alignment of the text in the cell
getAlign
public char getAlign()
- Returns:
- Returns either ALIGN_CENTER, ALIGN_LEFT or ALIGN_RIGHT
Get the alignment of the text int the cell
setWidth
public void setWidth(int w,
boolean ensureDefinedWidth)
- Parameters:
w
- The width of the cellensureDefinedWidth
- Ensures that the given width is not recalculated
Sets the width of the cell. This width should not include any
possible indent modifications that are present in
VScrollTable.VScrollTableBody.getMaxIndent()
.
setUndefinedWidth
public void setUndefinedWidth()
Sets the width to undefined
isDefinedWidth
public boolean isDefinedWidth()
- Returns:
- true if defined, false if "natural" width
Detects if width is fixed by developer on server side or resized to current width by user.
getWidth
public int getWidth()
- Returns:
- The width in pixels
Returns the pixels width of the footer cell.
setExpandRatio
public void setExpandRatio(float floatAttribute)
- Parameters:
floatAttribute
- The expand ratio
Sets the expand ratio of the cell
getExpandRatio
public float getExpandRatio()
- Returns:
- The expand ratio
Returns the expand ration of the cell
isEnabled
public boolean isEnabled()
- Returns:
- True if enabled else False
Is the cell enabled?
onBrowserEvent
public void onBrowserEvent(com.google.gwt.user.client.Event event)
- Specified by:
onBrowserEvent
in interfacecom.google.gwt.user.client.EventListener
- Overrides:
onBrowserEvent
in classcom.google.gwt.user.client.ui.Widget
Handle column clicking
handleCaptionEvent
protected void handleCaptionEvent(com.google.gwt.user.client.Event event)
- Parameters:
event
- The event to handle
Handles a event on the captions
getColKey
public String getColKey()
- Returns:
- The column key
Returns the column key of the column
getNaturalColumnWidth
public int getNaturalColumnWidth(int columnIndex)
- Parameters:
columnIndex
- column index hint, if -1 (unknown) it will be detected- Returns:
Detects the natural minimum width for the column of this header cell. If column is resized by user or the width is defined by server the actual width is returned. Else the natural min width is returned.
setNaturalMinimumColumnWidth
public void setNaturalMinimumColumnWidth(int w)