libyui
Public Member Functions | Protected Member Functions

YSimpleInputField Class Reference

#include <YSimpleInputField.h>

Inheritance diagram for YSimpleInputField:
YWidget YDateField YTimeField

List of all members.

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 YPropertySetpropertySet ()
virtual string shortcutString () const
virtual void setShortcutString (const string &str)
const char * userInputProperty ()

Protected Member Functions

 YSimpleInputField (YWidget *parent, const string &label)

Detailed Description

Abstract base class for simple input fields with a label above the field and a text value.


Constructor & Destructor Documentation

YSimpleInputField::YSimpleInputField ( YWidget parent,
const string &  label 
) [protected]

Constructor.

YSimpleInputField::~YSimpleInputField ( ) [virtual]

Destructor.


Member Function Documentation

YPropertyValue YSimpleInputField::getProperty ( const string &  propertyName) [virtual]

Get a property. Reimplemented from YWidget.

This method may throw YUIPropertyExceptions.

Reimplemented from YWidget.

string YSimpleInputField::label ( ) const

Get the label (the caption above the input field).

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.

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]

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.

virtual void YSimpleInputField::setShortcutString ( const string &  str) [inline, virtual]

Set the string of this widget that holds the keyboard shortcut.

Reimplemented from YWidget.

Reimplemented from YWidget.

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]

Get the string of this widget that holds the keyboard shortcut.

Reimplemented from YWidget.

Reimplemented from YWidget.

const char* YSimpleInputField::userInputProperty ( ) [inline, virtual]

The name of the widget property that will return user input. Inherited from YWidget.

Reimplemented from YWidget.

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.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations Friends