TKLabel Class Reference
[Components]

Basic class containing a chunk of text. More...

Inheritance diagram for TKLabel:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 __construct ($text, $inline=false)
 Creates a new label with the given text.

Static Public Member Functions

static createFromXML ($attrs, $contents, $node)

Protected Member Functions

 renderComponent ($class, $style, $events, $id)


Detailed Description

Basic class containing a chunk of text.

The label can be used to fill slots in containers where only text is needed. It can also be styled, in which case it will contain the text in a div or a span, depending on whether the inline() property is set to false (div) or true (span). It is preferrable to use TKComponent::addText if you are adding just plain text.

Properties:
  • text string: the text of the label; can contain HTML
  • inline boolean: whether to use span (true) or div (false: default)

Definition at line 17 of file TKLabel.php5.


Constructor & Destructor Documentation

TKLabel::__construct ( text,
inline = false 
)

Creates a new label with the given text.

Parameters:
$text [string]: initial text of label
$inline [boolean]: whether to use span (true) or div (false)

Reimplemented in TKNCSILink.

Definition at line 24 of file TKLabel.php5.

References TKComponent::addProperty().


Member Function Documentation

static TKLabel::createFromXML ( attrs,
contents,
node 
) [static]

For internal use only.

Reimplemented from TKComponent.

Definition at line 56 of file TKLabel.php5.

TKLabel::renderComponent ( class,
style,
events,
id 
) [protected]

For internal use only.

Reimplemented from TKComponent.

Reimplemented in TKNCSILink.

Definition at line 40 of file TKLabel.php5.

References TKComponent::getId().


The documentation for this class was generated from the following file:

Generated on Wed Nov 24 02:07:01 2010 for Common by  doxygen 1.5.6