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

ColoredLabel

ColoredLabel1.ycp ColoredLabel2.ycp ColoredLabel3.ycp ColoredLabel4.ycp

Very much the same as a `Label except you specify foreground and background colors and margins. This widget is only available on graphical UIs with at least 15 bit color depth (32767 colors).

Note:
This is a "special" widget, i.e. not all UIs necessarily support it. Check for availability with HasSpecialWidget( `ColoredLabel ) before using it.

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

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.

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.

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.


Member Data Documentation

YCPString YColoredLabel::text [protected]

Current label text


The documentation for this class was generated from the following files:
Generated on Tue Nov 6 01:27:48 2007 for yast2-core by  doxygen 1.5.3