Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Examples

YLabel Class Reference

Simple static text. More...

#include <YLabel.h>

Inheritance diagram for YLabel:

YWidget List of all members.

Public Member Functions

 YLabel (const YWidgetOpt &opt, YCPString text)
virtual char * widgetClass ()
YCPValue changeWidget (const YCPSymbol &property, const YCPValue &newvalue)
YCPValue queryWidget (const YCPSymbol &property)
virtual void setLabel (const YCPString &label)
YCPString getLabel ()

Protected Attributes

YCPString text

Detailed Description

Simple static text.

Implementation of the Label and Heading widgets


Constructor & Destructor Documentation

YLabel::YLabel const YWidgetOpt opt,
YCPString  text
 

Creates a new new label

Parameters:
text the initial text of the label


Member Function Documentation

YCPValue YLabel::changeWidget const YCPSymbol property,
const YCPValue newvalue
[virtual]
 

Implements the ui command changeWidget.

string Value the label text

Reimplemented from YWidget.

YCPString YLabel::getLabel  ) 
 

Get the current label text. This method cannot be overidden. The value of the label cannot be changed other than by calling setLabel, i.e. not by the ui. Therefore setLabel stores the current label in #label.

YCPValue YLabel::queryWidget const YCPSymbol property  )  [virtual]
 

Implements the ui command queryWidget

Reimplemented from YWidget.

void YLabel::setLabel const YCPString label  )  [virtual]
 

Change the label text. Overload this, but call YLabel::setLabel at the end of your own function.

virtual char* YLabel::widgetClass  )  [inline, virtual]
 

Returns a descriptive name of this widget class for logging, debugging etc.

Reimplemented from YWidget.


Member Data Documentation

YCPString YLabel::text [protected]
 

Current label text


The documentation for this class was generated from the following files:
Generated on Fri Nov 9 18:15:25 2007 for yast2-core by doxygen 1.3.6