CSFlexTableCellHtmlContent
extends CSFlexTableCellContent
in package
Represents a Flex Table HTML Cell Content
Tags
Table of Contents
- CONTENT_TYPE_ATTRIBUTE_VALUE = 5
- Defines attribute value content
- CONTENT_TYPE_HTML = 4
- Defines html content
- CONTENT_TYPE_IMAGE = 2
- Defines image content
- CONTENT_TYPE_ITEM_VALUE = 3
- Defines item value content
- CONTENT_TYPE_TEXT = 1
- Defines text content
- __call() : mixed
- Internal method for handling friend class calls
- __construct() : void
- Constructor
- addStyleName() : void
- Adds a unique style name to the list of styles for the cell content
- getCell() : CSFlexTableCell
- Returns the parent cell of the content object.
- getHtml() : string
- Returns the currently set html code for this content object.
- getIndex() : int
- Returns the Index of the content object within the Cell
- getPathIdentifier() : string
- Returns the path identifier for the current content object. The identifier has the following format:
- getStyleNames() : array<string|int, mixed>
- Returns all style names assigned to the cell content.
- getType() : int
- Returns the type of the content object.
- setHtml() : void
- Sets the html for this content object.
- setStyleName() : void
- Sets the style name of the cell.
- setStyleNames() : void
- Sets a list of style names for the cell content.
Constants
CONTENT_TYPE_ATTRIBUTE_VALUE
Defines attribute value content
public
mixed
CONTENT_TYPE_ATTRIBUTE_VALUE
= 5
Tags
CONTENT_TYPE_HTML
Defines html content
public
mixed
CONTENT_TYPE_HTML
= 4
Tags
CONTENT_TYPE_IMAGE
Defines image content
public
mixed
CONTENT_TYPE_IMAGE
= 2
Tags
CONTENT_TYPE_ITEM_VALUE
Defines item value content
public
mixed
CONTENT_TYPE_ITEM_VALUE
= 3
Tags
CONTENT_TYPE_TEXT
Defines text content
public
mixed
CONTENT_TYPE_TEXT
= 1
Tags
Methods
__call()
Internal method for handling friend class calls
public
__call(mixed $sMethodName, mixed $aMethodParams) : mixed
Parameters
- $sMethodName : mixed
- $aMethodParams : mixed
Tags
Return values
mixed —__construct()
Constructor
public
__construct([string $sHtml = '' ]) : void
Parameters
- $sHtml : string = ''
-
The html code that should be assigned to this content object.
Tags
Return values
void —addStyleName()
Adds a unique style name to the list of styles for the cell content
public
addStyleName(string $sStyleName) : void
Parameters
- $sStyleName : string
Tags
Return values
void —getCell()
Returns the parent cell of the content object.
public
final getCell() : CSFlexTableCell
Tags
Return values
CSFlexTableCell —A reference to the parent cell.
getHtml()
Returns the currently set html code for this content object.
public
getHtml() : string
Tags
Return values
string —The html code that is currently assigned to this content object.
getIndex()
Returns the Index of the content object within the Cell
public
getIndex() : int
Tags
Return values
int —The index of the content object
getPathIdentifier()
Returns the path identifier for the current content object. The identifier has the following format:
public
final getPathIdentifier() : string
d:0:0:0
where the chunks separated by the ':' are defined as follows:
d: The type of the row to return (d: data, h: header, f: footer) 0: The row index relative to the parent table 0: The cell index relative to the parent row 0: The content object index relative to the parent cell
Tags
Return values
string —The path identifier of the current content object
getStyleNames()
Returns all style names assigned to the cell content.
public
getStyleNames() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —A list of style names assigned to the cell content.
getType()
Returns the type of the content object.
public
getType() : int
Tags
Return values
int —CSFlexTableCellContent::CONTENT_TYPE_HTML
setHtml()
Sets the html for this content object.
public
setHtml(string $sHtml) : void
Parameters
- $sHtml : string
-
The html code that should be set for this content object.
Tags
Return values
void —setStyleName()
Sets the style name of the cell.
public
setStyleName(string $sStyleName) : void
Parameters
- $sStyleName : string
-
The style name of the cell.
Tags
Return values
void —setStyleNames()
Sets a list of style names for the cell content.
public
setStyleNames(array<string|int, mixed> $aStyleNames) : void
Parameters
- $aStyleNames : array<string|int, mixed>
-
The style names that should be assigned to the cell content.
