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

Public Member Functions | |
| YColoredLabel (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 |
Implementation of the YColoredLabel widget
| YColoredLabel::YColoredLabel | ( | const YWidgetOpt & | opt, | |
| YCPString | text | |||
| ) |
Creates a new new label
| text | the initial text of the label |
| virtual char* YColoredLabel::widgetClass | ( | ) | [inline, virtual] |
Returns a descriptive name of this widget class for logging, debugging etc.
Reimplemented from YWidget.
| YCPValue YColoredLabel::changeWidget | ( | const YCPSymbol & | property, | |
| const YCPValue & | newvalue | |||
| ) | [virtual] |
Implements the ui command changeWidget.
Reimplemented from YWidget.
Implements the ui command queryWidget
Reimplemented from YWidget.
| void YColoredLabel::setLabel | ( | const YCPString & | label | ) | [virtual] |
Change the label text. Overload this, but call YColoredLabel::setLabel at the end of your own function.
| YCPString YColoredLabel::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.
YCPString YColoredLabel::text [protected] |
Current label text
1.5.0