#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) |
YCPString | getValidChars () |
const char * | shortcutProperty () |
Protected Attributes | |
YCPString | label |
YCPString | validChars |
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.
Notice: You can and should set a keyboard shortcut within the label. When the user presses the hotkey, the corresponding text entry widget will get the keyboard focus.
|
Creates a new text entry with a label and an initial text. |
|
Implements the ui command changeWidget for the widget specific properties. string Value the field's contents ( the user input ) string Label label above the field string ValidChars valid input characters 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. |
|
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. |
|
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. |
|
Returns a descriptive name of this widget class for logging, debugging etc. Reimplemented from YWidget. |
|
The text entry label |
|
Valid input characters |