#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
|
Creates a new new label
|
|
Implements the ui command changeWidget. Reimplemented from YWidget. |
|
Returns a descriptive label of this widget instance for debugging. Reimplemented from YWidget since a YLabel doesn't have a shortcut property. 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 YLabel::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 |