Constructor
new TableCell()
A single cell in a Java Table.
Methods
click(buttonopt, modifieropt) → {Promise.<void>}
Clicks the cell using the specified MouseButton.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
button |
MouseButton |
<optional> |
MouseButton.left | Either the Left or Right value of MouseButton. |
modifier |
Java.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(buttonopt, modifieropt) → {Promise.<void>}
Double clicks the cell using the specified MouseButton.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
button |
MouseButton |
<optional> |
MouseButton.left | Either the Left or Right value of MouseButton. |
modifier |
Java.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, buttonopt, modifieropt) → {Promise.<void>}
Drags and drops this cell to the specified target Java.TableCell
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
targetCell |
Java.TableCell | The target Java.TableCell on which this Java.TableCell is dropped. | ||
button |
MouseButton |
<optional> |
MouseButton.left | Either the Left or Right value of MouseButton. |
modifier |
Java.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:
Name | Type | Description |
---|---|---|
value |
Object | The 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>