public class VScrollTablePatched.HeaderCell
extends com.google.gwt.user.client.ui.Widget
Modifier and Type | Field and Description |
---|---|
protected com.google.gwt.dom.client.Element |
captionContainer |
Constructor and Description |
---|
HeaderCell(String colId,
String headerText) |
Modifier and Type | Method and Description |
---|---|
void |
disableAutoWidthCalculation() |
char |
getAlign() |
String |
getCaption() |
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(com.google.gwt.user.client.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(com.google.gwt.user.client.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) |
protected void |
setSorted(boolean sorted) |
void |
setText(String headerText) |
void |
setUndefinedWidth() |
void |
setWidth(int w,
boolean ensureDefinedWidth)
Sets width to the header cell.
|
protected void |
updateStyleNames(String primaryStyleName) |
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
public void setSortable(boolean b)
public void resizeCaptionContainer(int rightSpacing)
public void setNaturalMinimumColumnWidth(int w)
protected void updateStyleNames(String primaryStyleName)
public void disableAutoWidthCalculation()
public void setWidth(int w, boolean ensureDefinedWidth)
VScrollTablePatched.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(String headerText)
public String getColKey()
protected void setSorted(boolean sorted)
public void onBrowserEvent(com.google.gwt.user.client.Event event)
onBrowserEvent
in interface com.google.gwt.user.client.EventListener
onBrowserEvent
in class com.google.gwt.user.client.ui.Widget
protected void handleCaptionEvent(com.google.gwt.user.client.Event event)
public int getMinWidth()
public 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 detectedpublic void setExpandRatio(float floatAttribute)
public float getExpandRatio()
public boolean isSorted()
Copyright © 2020 Magnolia International Ltd.. All rights reserved.