diff -r 716254ccbcc0 -r 7848c135d915 org.symbian.tools.wrttools.doc.WRTKit/html/WRTKit_Label_Class-GUID-64730e7f-835f-443a-9322-6753fa72fd09.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org.symbian.tools.wrttools.doc.WRTKit/html/WRTKit_Label_Class-GUID-64730e7f-835f-443a-9322-6753fa72fd09.html Fri Mar 05 19:31:41 2010 -0800 @@ -0,0 +1,295 @@ + + +
+ + + + + + + + + + ++ + The Label class implements a control that displays a simple piece of text. A label + is used in situations where there's a caption-value pair that needs to be displayed, + e.g. "Name: John Smith". +
+ + + ++ + +Control +
+ ++[Label] new Label(String id, String caption, String text)+ +
+ + Creates a new instance of the Label class. +
+ ++id
+ + + ++ + Unique identifier for the control. Can be retrieved using the id property defined + in the UIElement class that this control inherits from. Useful for example to + identify the source of an event in event callback functions or to apply a CSS + rule to only this particular control. The identifier can be null, in which case + no id will be set for the control. +
+ + ++caption
+ + + ++ + The caption text for the control. A null caption can be used to hide the + caption area. This is not recommended for a label since without a caption + the value of the label doesn't make sense to the user. + The value is an XHTML string. +
+ + ++text
+ + + ++ + The content for the label. If the argument is omitted or null then the content + area will be empty. The value is an XHTML string. +
+ + ++ + A new instance of the Label class. +
+ ++[String] Label.getText(void)+ +
+ + Retrieves the current text value of the label. + The value is an XHTML string. +
+ ++ + This method does not take any arguments. +
+ ++ + The current text value of the label. +
+ ++[void] Label.setText(String text)+ +
+ + Sets the text value of the label. + The value is an XHTML string. +
+ ++text
+ + + ++ + The text to be displayed as the value of the label. Passing null + results in no text. +
+ + ++ + This method does not return a value. +
+ +