#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.
|
Creates a new text entry with a label and an initial text. |
|
Implements the ui command changeWidget for the widget specific properties. Reimplemented from YWidget. |
|
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. |
|
get the text currently entered in the text entry |
|
Get the valid input characters. |
|
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 |
|
Implements the ui command changeWidget for the widget specific properties. Reimplemented from YWidget. |
|
Save the widget's user input to a macro recorder. Intentionally declared as "private" so all macro recording internals are handled by the abstract libyui level, not by a specific UI. Reimplemented from YWidget. |
|
Specify the amount of characters which can be inserted. Overload this to limit the input. |
|
change the label of the text entry. Overload this, but call YTextEntry::setLabel at the end of your own function. |
|
Set the text in the entry to a new value |
|
Change the valid input characters. Overload this, but call YTextEntry::setValidChars at the end of your own method. |
|
The name of the widget property that holds the keyboard shortcut. Inherited from YWidget. Reimplemented from YWidget. |
|
The name of the widget property that will return user input. Inherited from YWidget. Reimplemented from YWidget. |
|
Returns a descriptive name of this widget class for logging, debugging etc. Reimplemented from YWidget. |
|
Flag: password mode (-> true) or plain text entry? |
|
The text entry label |
|
Valid input characters |