libyui
3.0.10
|
#include <YSimpleInputField.h>
Public Member Functions | |
virtual | ~YSimpleInputField () |
virtual std::string | value ()=0 |
virtual void | setValue (const std::string &text)=0 |
std::string | label () const |
virtual void | setLabel (const std::string &label) |
virtual bool | setProperty (const std::string &propertyName, const YPropertyValue &val) |
virtual YPropertyValue | getProperty (const std::string &propertyName) |
virtual const YPropertySet & | propertySet () |
virtual std::string | shortcutString () const |
virtual void | setShortcutString (const std::string &str) |
const char * | userInputProperty () |
Protected Member Functions | |
YSimpleInputField (YWidget *parent, const std::string &label) |
Abstract base class for simple input fields with a label above the field and a text value.
Definition at line 37 of file YSimpleInputField.h.
YSimpleInputField::YSimpleInputField | ( | YWidget * | parent, |
const std::string & | label | ||
) | [protected] |
Constructor.
Definition at line 45 of file YSimpleInputField.cc.
YSimpleInputField::~YSimpleInputField | ( | ) | [virtual] |
Destructor.
Definition at line 56 of file YSimpleInputField.cc.
YPropertyValue YSimpleInputField::getProperty | ( | const std::string & | propertyName | ) | [virtual] |
Get a property. Reimplemented from YWidget.
This method may throw YUIPropertyExceptions.
Reimplemented from YWidget.
Definition at line 112 of file YSimpleInputField.cc.
std::string YSimpleInputField::label | ( | ) | const |
Get the label (the caption above the input field).
Definition at line 62 of file YSimpleInputField.cc.
const YPropertySet & YSimpleInputField::propertySet | ( | ) | [virtual] |
Return this class's property set. This also initializes the property upon the first call.
Reimplemented from YWidget.
Reimplemented from YWidget.
Definition at line 76 of file YSimpleInputField.cc.
void YSimpleInputField::setLabel | ( | const std::string & | label | ) | [virtual] |
Set the label (the caption above the input field).
Derived classes are free to reimplement this, but they should call this base class method at the end of the overloaded function.
Definition at line 68 of file YSimpleInputField.cc.
bool YSimpleInputField::setProperty | ( | const std::string & | propertyName, |
const YPropertyValue & | val | ||
) | [virtual] |
Set a property. Reimplemented from YWidget.
This function may throw YUIPropertyExceptions.
This function returns 'true' if the value was successfully set and 'false' if that value requires special handling (not in error cases: those are covered by exceptions).
Reimplemented from YWidget.
Definition at line 96 of file YSimpleInputField.cc.
virtual void YSimpleInputField::setShortcutString | ( | const std::string & | str | ) | [inline, virtual] |
Set the string of this widget that holds the keyboard shortcut.
Reimplemented from YWidget.
Reimplemented from YWidget.
Definition at line 121 of file YSimpleInputField.h.
virtual void YSimpleInputField::setValue | ( | const std::string & | text | ) | [pure virtual] |
Set the current value (the text entered by the user or set from the outside) of this input field.
Derived classes are required to implement this.
virtual std::string YSimpleInputField::shortcutString | ( | ) | const [inline, virtual] |
Get the string of this widget that holds the keyboard shortcut.
Reimplemented from YWidget.
Reimplemented from YWidget.
Definition at line 114 of file YSimpleInputField.h.
const char* YSimpleInputField::userInputProperty | ( | ) | [inline, virtual] |
The name of the widget property that will return user input. Inherited from YWidget.
Reimplemented from YWidget.
Definition at line 128 of file YSimpleInputField.h.
virtual std::string YSimpleInputField::value | ( | ) | [pure virtual] |
Get the current value (the text entered by the user or set from the outside) of this input field.
Derived classes are required to implement this.