Class WTableCell
- java.lang.Object
-
public class WTableCell extends WContainerWidget
A container widget that represents a cell in a table.A
WTableprovides a table of WTableCell container widgets. A WTableCell may overspan more than one grid location in the table, by specifying arowSpanandcolumnSpan. Table cells at overspanned positions are hidden. You cannot directly create a WTableCell, instead, they are created automatically by a table.A WTableCell acts as any other
WContainerWidget, except that both the vertical and horizontal alignment of contents may be specified byWContainerWidget#setContentAlignment().CSS
The widget corresponds to the HTML
<td>or<th>tag, depending on whether the cell is a plain cell or a header cell. The widget does not provide styling, and can be styled using inline or external CSS as appropriate.- See Also:
WTable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class eu.webtoolkit.jwt.WObject
WObject.FormData
-
-
Field Summary
-
Fields inherited from class eu.webtoolkit.jwt.WInteractWidget
dragTouchEndSlot_, dragTouchSlot_, noDefault
-
Fields inherited from class eu.webtoolkit.jwt.WWidget
WT_GETEXTRAMS_JS
-
-
Constructor Summary
Constructors Constructor Description WTableCell()Create a table cell.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumn()Returns the column index of this cell.intgetColumnSpan()Returns the column span.intgetRow()Returns the row index of this cell.intgetRowSpan()Returns the row span.WTablegetTable()Returns the table containing this cell.WTableColumngetTableColumn()Returns the table column containing this cell.WTableRowgetTableRow()Returns the table row containing this cell.booleanisVisible()Returns whether the widget is visible.voidsetColumnSpan(int colSpan)Sets the column span.voidsetRowSpan(int rowSpan)Sets the row span.-
Methods inherited from class eu.webtoolkit.jwt.WContainerWidget
addWidget, clear, createDomElement, getContentAlignment, getCount, getDomChanges, getIndexOf, getLayout, getPadding, getScrollLeft, getScrollTop, getWidget, insertBefore, insertWidget, isGlobalUnfocussed, isList, isOrderedList, isUnorderedList, iterateChildren, parentResized, remove, removeWidget, scrolled, setContentAlignment, setContentAlignment, setFormData, setGlobalUnfocused, setLayout, setList, setList, setOverflow, setOverflow, setOverflow, setPadding, setPadding, setPadding
-
Methods inherited from class eu.webtoolkit.jwt.WInteractWidget
clicked, doubleClicked, enterPressed, escapePressed, gestureChanged, gestureEnded, gestureStarted, getMouseOverDelay, isEnabled, keyPressed, keyWentDown, keyWentUp, load, mouseDragged, mouseMoved, mouseWentDown, mouseWentOut, mouseWentOver, mouseWentUp, mouseWheel, propagateSetEnabled, render, setDraggable, setDraggable, setDraggable, setDraggable, setMouseOverDelay, setPopup, touchEnded, touchMoved, touchStarted, unsetDraggable
-
Methods inherited from class eu.webtoolkit.jwt.WWebWidget
addStyleClass, beingDeleted, blurred, callJavaScriptMember, childrenChanged, doJavaScript, enableAjax, escapeText, escapeText, escapeText, escapeText, find, findById, focussed, getAttributeValue, getBaseZIndex, getChildren, getClearSides, getDecorationStyle, getFloatSide, getHeight, getHtmlTagName, getId, getJavaScriptMember, getLineHeight, getMargin, getMaximumHeight, getMaximumWidth, getMinimumHeight, getMinimumWidth, getOffset, getPositionScheme, getScrollVisibilityMargin, getStyleClass, getTabIndex, getToolTip, getVerticalAlignment, getVerticalAlignmentLength, getWidth, hasFocus, hasStyleClass, hideToolTip, isCanReceiveFocus, isDisabled, isHidden, isHiddenKeepsGeometry, isInline, isLoaded, isPopup, isRendered, isScrollVisibilityEnabled, isScrollVisible, isSetFirstFocus, isThemeStyleEnabled, jsStringLiteral, jsStringLiteral, manageWidget, parentResized, propagateSetVisible, refresh, removeScript, removeStyleClass, resize, scrollVisibilityChanged, setAttributeValue, setBaseZIndex, setCanReceiveFocus, setClearSides, setDecorationStyle, setDeferredToolTip, setDisabled, setFlexBox, setFloatSide, setFocus, setHidden, setHiddenKeepsGeometry, setHtmlTagName, setId, setInline, setJavaScriptMember, setLineHeight, setLoadLaterWhenInvisible, setMargin, setMaximumSize, setMinimumSize, setObjectName, setOffsets, setParentWidget, setPositionScheme, setScrollVisibilityEnabled, setScrollVisibilityMargin, setSelectable, setStyleClass, setTabIndex, setThemeStyleEnabled, setToolTip, setVerticalAlignment, showToolTip, showToolTipOnHover, unescapeText, updateSignalConnection, voidEventSignal, widgetAdded, widgetRemoved
-
Methods inherited from class eu.webtoolkit.jwt.WWidget
acceptDrops, acceptDrops, addCssRule, addCssRule, addJSignal, addStyleClass, animateHide, animateShow, applyThemeStyles, boxBorder, boxPadding, createJavaScript, disable, dropEvent, enable, getDropTouch, getJsRef, getParent, hide, htmlText, isExposed, isGlobalWidget, isLayoutSizeAware, layoutSizeChanged, needsRerender, positionAt, positionAt, positionAt, positionAt, removeFromParent, removeStyleClass, render, resize, scheduleRender, scheduleRender, scheduleRender, scheduleThemeStyleApply, setClearSides, setDeferredToolTip, setFocus, setHeight, setHidden, setLayoutSizeAware, setMargin, setMargin, setMargin, setMargin, setMargin, setOffsets, setOffsets, setOffsets, setOffsets, setOffsets, setToolTip, setVerticalAlignment, setWidth, show, stopAcceptDrops, toggleStyleClass, toggleStyleClass, tr
-
Methods inherited from class eu.webtoolkit.jwt.WObject
getObjectName
-
-
-
-
Method Detail
-
setRowSpan
public void setRowSpan(int rowSpan)
Sets the row span.The row span indicates how many table rows this
WTableCelloverspans. By default, aWTableCellhas a row span of 1, only occupying its own grid cell. A row span greater than 1 indicates that table cells below this one are overspanned.
-
getRowSpan
public int getRowSpan()
Returns the row span.- See Also:
setRowSpan(int rowSpan)
-
setColumnSpan
public void setColumnSpan(int colSpan)
Sets the column span.The column span indicates how many table columns this
WTableCelloverspans. By default, aWTableCellhas a column span of 1, only occupying its own grid cell. A column span greater than 1 indicates that table cells to the right of this one are overspanned.
-
getColumnSpan
public int getColumnSpan()
Returns the column span.- See Also:
setColumnSpan(int colSpan)
-
getRow
public int getRow()
Returns the row index of this cell.
-
getColumn
public int getColumn()
Returns the column index of this cell.
-
getTable
public WTable getTable()
Returns the table containing this cell.
-
getTableRow
public WTableRow getTableRow()
Returns the table row containing this cell.
-
getTableColumn
public WTableColumn getTableColumn()
Returns the table column containing this cell.
-
isVisible
public boolean isVisible()
Description copied from class:WWidgetReturns whether the widget is visible.A widget is visible if it is not hidden, and none of its ancestors are hidden. This method returns the true visibility, while
isHidden()returns whether a widget has been explicitly hidden.Note that a widget may be at the same time not hidden, and not visible, in case one of its ancestors was hidden.
- Overrides:
isVisiblein classWWebWidget- See Also:
WWidget.isHidden()
-
-