YColoredLabel Class Reference

Simple static text with specified background and foreground color. More...

#include <YColoredLabel.h>

Inheritance diagram for YColoredLabel:

YWidget List of all members.

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

Detailed Description

Simple static text with specified background and foreground color.

Implementation of the YColoredLabel widget


Constructor & Destructor Documentation

YColoredLabel::YColoredLabel const YWidgetOpt opt,
YCPString  text
 

Creates a new new label

Parameters:
text the initial text of the label


Member Function Documentation

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

Implements the ui command changeWidget.

Reimplemented from YWidget.

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.

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

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.

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

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

Reimplemented from YWidget.


Member Data Documentation

YCPString YColoredLabel::text [protected]
 

Current label text


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 18:07:46 2006 for yast2-core by  doxygen 1.4.6