#include <YLabel.h>
Inheritance diagram for YLabel:

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 () |
| virtual std::string | debugLabel () |
Protected Attributes | |
| YCPString | text |
Implementation of the Label and Heading widgets
| YLabel::YLabel | ( | const YWidgetOpt & | opt, | |
| YCPString | text | |||
| ) |
Creates a new new label
| text | the initial text of the label |
| virtual char* YLabel::widgetClass | ( | ) | [inline, virtual] |
Returns a descriptive name of this widget class for logging, debugging etc.
Reimplemented from YWidget.
Implements the ui command changeWidget.
Reimplemented from YWidget.
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.
| 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.
| std::string YLabel::debugLabel | ( | ) | [virtual] |
YCPString YLabel::text [protected] |
Current label text
1.5.0