YLabel Class Reference

Simple static text. More...

#include <YLabel.h>

Inheritance diagram for YLabel:

YWidget List of all members.

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

Detailed Description

Simple static text.

Implementation of the Label and Heading widgets


Constructor & Destructor Documentation

YLabel::YLabel const YWidgetOpt opt,
YCPString  text
 

Creates a new new label

Parameters:
text the initial text of the label


Member Function Documentation

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

Implements the ui command changeWidget.

Reimplemented from YWidget.

std::string YLabel::debugLabel  )  [virtual]
 

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.

YCPString YLabel::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 YLabel::queryWidget const YCPSymbol property  )  [virtual]
 

Implements the ui command queryWidget

Reimplemented from YWidget.

void YLabel::setLabel const YCPString label  )  [virtual]
 

Change the label text. Overload this, but call YLabel::setLabel at the end of your own function.

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

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

Reimplemented from YWidget.


Member Data Documentation

YCPString YLabel::text [protected]
 

Current label text


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