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