#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
|
Creates a new new label
|
|
Implements the ui command changeWidget. Reimplemented from YWidget. |
|
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. |
|
Implements the ui command queryWidget Reimplemented from YWidget. |
|
Change the label text. Overload this, but call YColoredLabel::setLabel at the end of your own function. |
|
Returns a descriptive name of this widget class for logging, debugging etc. Reimplemented from YWidget. |
|
Current label text |