Top Description Fields Constructors Methods
org.controlsfx.control.spreadsheet

public Class ClipboardCell

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.ByteArrayOutputStream, .IOException, .ObjectOutputStream, .Serializable, javafx.scene.input.Clipboard

This class will holds a cell value when we do a copy in the SpreadsheetView. It is internally used by the SpreadsheetView but developpers may want to tweak the behavior of retrieve the content of the Clipboard.
See Also
SpreadsheetView

Field Summary

Modifier and TypeField and Description
private final int
private final String
private final int
private Object

Constructor Summary

AccessConstructor and Description
public
ClipboardCell(int
the row of this ClipboardCell
row
,
int
the column of this ClipboardCell
column
,
SpreadsheetCell
the SpreadsheetCell which value will be serialized
spc
)

Constructor of a ClipboardCell for a cell.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the column of this cell.
getColumn
()

Returns the column of this cell.

public String

Returns:

the html version of the value
getHtmlVersion
()

If the original cell had its SpreadsheetCell#isCellGraphic() to true, the cell HTML content will be here and the string version in getValue().

public int

Returns:

the row of this cell.
getRow
()

Returns the row of this cell.

public Object

Returns:

the value of this cell.
getValue
()

Returns the value of this cell.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

columnback to summary
private final int column
htmlVersionback to summary
private final String htmlVersion
rowback to summary
private final int row
valueback to summary
private Object value

Constructor Detail

ClipboardCellback to summary
public ClipboardCell(int row, int column, SpreadsheetCell spc)

Constructor of a ClipboardCell for a cell. The SpreadsheetCell item must be serializable.

Parameters
row:int

the row of this ClipboardCell

column:int

the column of this ClipboardCell

spc:SpreadsheetCell

the SpreadsheetCell which value will be serialized

Method Detail

getColumnback to summary
public int getColumn()

Returns the column of this cell.

Returns:int

the column of this cell.

getHtmlVersionback to summary
public String getHtmlVersion()

If the original cell had its SpreadsheetCell#isCellGraphic() to true, the cell HTML content will be here and the string version in getValue().

Returns:String

the html version of the value

getRowback to summary
public int getRow()

Returns the row of this cell.

Returns:int

the row of this cell.

getValueback to summary
public Object getValue()

Returns the value of this cell.

Returns:Object

the value of this cell.