54 const std::string &
text,
74 std::string
text()
const;
80 std::string label()
const {
return text(); }
88 virtual void setText(
const std::string & newText );
94 void setLabel(
const std::string & newLabel ) {
setText( newLabel ); }
138 virtual bool setProperty(
const std::string & propertyName,
bool isHeading() const
Return 'true' if this is a Heading widget, i.e., it should display its text in a bold and/or larger f...
std::string value() const
Aliases for text().
virtual void setText(const std::string &newText)
Set the text the widget displays.
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.
Implementation of the Label, Heading and OutputField widgets.
Transport class for the value of simple properties.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
A set of properties to check names and types against.
virtual std::string debugLabel() const
Returns a descriptive label of this widget instance for debugging.
bool useBoldFont() const
Return 'true' if a bold font should be used.
virtual const YPropertySet & propertySet()
Return this class's property set.
YLabel(YWidget *parent, const std::string &text, bool isHeading=false, bool isOutputField=false)
Constructor.
std::string text() const
Return the text the widget displays.
void setValue(const std::string &newValue)
Aliases for setText().
virtual void setUseBoldFont(bool bold=true)
Switch bold font on or off.
virtual ~YLabel()
Destructor.
virtual const char * widgetClass() const
Returns a descriptive name of this widget class for logging, debugging etc.
bool isOutputField() const
Return 'true' if this is an OutputField widget, i.e., it should display its text similar to an InputF...