TableCell

Java. TableCell

TableCell

Constructor

new TableCell()

A single cell in a Java Table.

Methods

click(button[opt], modifier[opt]) → {Promise.<void>}

Clicks the cell using the specified MouseButton.
Parameters:
NameTypeAttributesDefaultDescription
buttonMouseButton <optional>
MouseButton.left Either the Left or Right value of MouseButton.
modifierJava.TableKeyModifier <optional>
A Java.TableKeyModifier value indicating keys to be pressed and held while the operation is performed.
Returns:
a promise that is fulfilled when the click operation ends.
Type
Promise.<void>

columnHeader() → {Promise.<string>}

The column header name of this cell.
Returns:
a promise that is fulfilled with the column header name of this cell.
Type
Promise.<string>

doubleClick(button[opt], modifier[opt]) → {Promise.<void>}

Double clicks the cell using the specified MouseButton.
Parameters:
NameTypeAttributesDefaultDescription
buttonMouseButton <optional>
MouseButton.left Either the Left or Right value of MouseButton.
modifierJava.TableKeyModifier <optional>
A Java.TableKeyModifier value indicating keys to be pressed and held while the operation is performed.
Returns:
a promise that is fulfilled when the doubleClick operation ends.
Type
Promise.<void>

dragAndDropOn(targetCell, button[opt], modifier[opt]) → {Promise.<void>}

Drags and drops this cell to the specified target Java.TableCell
Parameters:
NameTypeAttributesDefaultDescription
targetCellJava.TableCellThe target Java.TableCell on which this Java.TableCell is dropped.
buttonMouseButton <optional>
MouseButton.left Either the Left or Right value of MouseButton.
modifierJava.TableKeyModifier <optional>
A Java.TableKeyModifier value indicating keys to be pressed and held while the operation is performed.
Returns:
a promise that is fulfilled when the doubleClick operation ends.
Type
Promise.<void>

setValue(value) → {Promise.<void>}

Sets the cell value.
Parameters:
NameTypeDescription
valueObjectThe value to set.
Returns:
a promise that is fulfilled when the setValue operation ends.
Type
Promise.<void>

value() → {Promise.<Object>}

The content of this cell.
Returns:
a promise that is fulfilled with the content of this cell.
Type
Promise.<Object>