#include <YTextEntry.h>
Inheritance diagram for YTextEntry:

Public Member Functions | |
| YTextEntry (const YWidgetOpt &opt, const YCPString &label) | |
| virtual char * | widgetClass () |
| YCPValue | changeWidget (const YCPSymbol &property, const YCPValue &newvalue) |
| YCPValue | queryWidget (const YCPSymbol &property) |
| virtual void | setText (const YCPString &text)=0 |
| virtual YCPString | getText ()=0 |
| virtual void | setLabel (const YCPString &label) |
| YCPString | getLabel () |
| virtual void | setValidChars (const YCPString &validChars) |
| virtual void | setInputMaxLength (const YCPInteger &numberOfChars) |
| YCPString | getValidChars () |
| const char * | shortcutProperty () |
| const char * | userInputProperty () |
| bool | passwordMode () const |
Protected Attributes | |
| YCPString | label |
| YCPString | validChars |
| bool | _passwordMode |
Private Member Functions | |
| virtual void | saveUserInput (YMacroRecorder *macroRecorder) |
TextEntry Password
This widget is a one line text entry field with a label above it. An initial text can be provided.
| YTextEntry::YTextEntry | ( | const YWidgetOpt & | opt, | |
| const YCPString & | label | |||
| ) |
Creates a new text entry with a label and an initial text.
| virtual char* YTextEntry::widgetClass | ( | ) | [inline, virtual] |
Returns a descriptive name of this widget class for logging, debugging etc.
Reimplemented from YWidget.
| YCPValue YTextEntry::changeWidget | ( | const YCPSymbol & | property, | |
| const YCPValue & | newvalue | |||
| ) | [virtual] |
Implements the ui command changeWidget for the widget specific properties.
Reimplemented from YWidget.
Implements the ui command changeWidget for the widget specific properties.
Reimplemented from YWidget.
| virtual void YTextEntry::setText | ( | const YCPString & | text | ) | [pure virtual] |
Set the text in the entry to a new value
| virtual YCPString YTextEntry::getText | ( | ) | [pure virtual] |
get the text currently entered in the text entry
| void YTextEntry::setLabel | ( | const YCPString & | label | ) | [virtual] |
change the label of the text entry. Overload this, but call YTextEntry::setLabel at the end of your own function.
| YCPString YTextEntry::getLabel | ( | ) |
Get the current label of the text entry. This method cannot be overidden. The value of the label cannot be changed other than by calling setLabel, i.e. not by the ui. Therefore setLabel stores the current label in label.
| void YTextEntry::setValidChars | ( | const YCPString & | validChars | ) | [virtual] |
Change the valid input characters.
Overload this, but call YTextEntry::setValidChars at the end of your own method.
| void YTextEntry::setInputMaxLength | ( | const YCPInteger & | numberOfChars | ) | [virtual] |
Specify the amount of characters which can be inserted.
Overload this to limit the input.
| YCPString YTextEntry::getValidChars | ( | ) |
Get the valid input characters.
| const char* YTextEntry::shortcutProperty | ( | ) | [inline, virtual] |
| const char* YTextEntry::userInputProperty | ( | ) | [inline, virtual] |
| bool YTextEntry::passwordMode | ( | ) | const [inline] |
Returns 'true' if this text entry is in password mode, i.e. there should be no on-screen echo or only a '*' for each character typed
| void YTextEntry::saveUserInput | ( | YMacroRecorder * | macroRecorder | ) | [private, virtual] |
YCPString YTextEntry::label [protected] |
The text entry label
YCPString YTextEntry::validChars [protected] |
Valid input characters
bool YTextEntry::_passwordMode [protected] |
Flag: password mode (-> true) or plain text entry?
1.5.0