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

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

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

Reimplemented from YWidget.

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

Implements the ui command changeWidget.

Reimplemented from YWidget.

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.

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.

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.


Member Data Documentation

YCPString YLabel::text [protected]

Current label text


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