libyui  3.0.10
YSimpleInputField Class Reference

#include <YSimpleInputField.h>

Inheritance diagram for YSimpleInputField:
Collaboration diagram for YSimpleInputField:

List of all members.

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 YPropertySetpropertySet ()
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)

Detailed Description

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.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 45 of file YSimpleInputField.cc.

Here is the call graph for this function:

Destructor.

Definition at line 56 of file YSimpleInputField.cc.


Member Function Documentation

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.

Here is the call graph for this function:

std::string YSimpleInputField::label ( ) const

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

Definition at line 62 of file YSimpleInputField.cc.

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

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.


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