libyui
|
#include <YSimpleInputField.h>
Public Member Functions | |
virtual | ~YSimpleInputField () |
virtual string | value ()=0 |
virtual void | setValue (const string &text)=0 |
string | label () const |
virtual void | setLabel (const string &label) |
virtual bool | setProperty (const string &propertyName, const YPropertyValue &val) |
virtual YPropertyValue | getProperty (const string &propertyName) |
virtual const YPropertySet & | propertySet () |
virtual string | shortcutString () const |
virtual void | setShortcutString (const string &str) |
const char * | userInputProperty () |
Protected Member Functions | |
YSimpleInputField (YWidget *parent, const string &label) |
Abstract base class for simple input fields with a label above the field and a text value.
YSimpleInputField::YSimpleInputField | ( | YWidget * | parent, |
const string & | label | ||
) | [protected] |
Constructor.
YSimpleInputField::~YSimpleInputField | ( | ) | [virtual] |
Destructor.
YPropertyValue YSimpleInputField::getProperty | ( | const string & | propertyName | ) | [virtual] |
string YSimpleInputField::label | ( | ) | const |
Get the label (the caption above the input field).
const YPropertySet & YSimpleInputField::propertySet | ( | ) | [virtual] |
void YSimpleInputField::setLabel | ( | const 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.
bool YSimpleInputField::setProperty | ( | const string & | propertyName, |
const YPropertyValue & | val | ||
) | [virtual] |
virtual void YSimpleInputField::setShortcutString | ( | const string & | str | ) | [inline, virtual] |
virtual void YSimpleInputField::setValue | ( | const 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 string YSimpleInputField::shortcutString | ( | ) | const [inline, virtual] |
const char* YSimpleInputField::userInputProperty | ( | ) | [inline, virtual] |
virtual 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.