class CAknIntegerEdwin : public CAknNumericEdwin |
The CAknIntegerEdwin class implements an editor for an integer values.
The editor has an associated resource struct AVKON_INTEGER_EDWIN and control factory identifier EAknCtIntegerEdwin.
Series 60 0.9
Public Member Functions | |
---|---|
IMPORT_C TBool | CheckNumber() |
IMPORT_C void | ConstructFromResourceL(TResourceReader &) |
IMPORT_C void | ConstructL(TInt, TInt, TInt) |
IMPORT_C TValidationStatus | GetTextAsInteger(TInt &) |
IMPORT_C void | HandlePointerEventL(const TPointerEvent &) |
IMPORT_C void | HandleResourceChange(TInt) |
IMPORT_C CAknIntegerEdwin * | NewL(TInt, TInt, TInt) |
IMPORT_C TKeyResponse | OfferKeyEventL(const TKeyEvent &, TEventCode) |
IMPORT_C void | PrepareForFocusLossL() |
IMPORT_C void | SetMaximumIntegerValue(TInt) |
IMPORT_C void | SetMinimumIntegerValue(TInt) |
IMPORT_C void | SetUnsetValue(TInt) |
IMPORT_C void | SetValueL(TInt) |
Private Member Functions | |
---|---|
void | CommonConstructL(TInt, TInt, TInt, TInt, TInt) |
IMPORT_C void * | ExtensionInterface(TUid) |
void | RefreshFromLocale() |
IMPORT_C void | Reserved_3() |
Private Attributes | |
---|---|
TDigitType | iDigitType |
TInt | iMaximumValue |
TInt | iMinimumValue |
TInt | iSpare_Integer_2 |
TAny * | iUnsetText |
TInt | iUnsetValue |
IMPORT_C TBool | CheckNumber | ( | ) |
Checks if the number of the editor is within the min and max boundaries. If not, the method set the number to closest legal value and highlights the number text in the editor.
void | CommonConstructL | ( | TInt | aMin, |
TInt | aMax, | |||
TInt | aMaxChars, | |||
TInt | aFlags, | |||
TInt | aUnset | |||
) | [private] |
IMPORT_C void | ConstructFromResourceL | ( | TResourceReader & | aReader | ) | [virtual] |
Constructs controls from a resource file. Function reads needed values from a AVKON_INTEGER_EDWIN resource. Essential for Dialog/Form construction.
TResourceReader & aReader | The resource reader with which to access the control's resource values. |
IMPORT_C void | ConstructL | ( | TInt | aMin, |
TInt | aMax, | |||
TInt | aMaxChars | |||
) |
2nd phase constructor.
IMPORT_C void * | ExtensionInterface | ( | TUid | aInterface | ) | [private, virtual] |
From CAknControl
TUid aInterface |
IMPORT_C TValidationStatus | GetTextAsInteger | ( | TInt & | aValue | ) |
Gets the current value of the editor. Validity of the value is checked, if the editor is empty, the unset value is used. The value is put into aValue parameter even if it is not valid. Indicates the validation status.
TInt & aValue | Reference to the integer used to store the value got from the editor field. |
IMPORT_C void | HandlePointerEventL | ( | const TPointerEvent & | aPointerEvent | ) | [virtual] |
From CCoeControl.
Handles pointer events.
const TPointerEvent & aPointerEvent | Pointer event to respond to. |
IMPORT_C void | HandleResourceChange | ( | TInt | aType | ) | [virtual] |
From CCoeControl. Handles a change to the control's resources. Series 60 2.0
TInt aType | a message UID value. |
IMPORT_C CAknIntegerEdwin * | NewL | ( | TInt | aMin, |
TInt | aMax, | |||
TInt | aMaxChars | |||
) | [static] |
Two-phased constructor. Pointer to a fully constructed editor object.
IMPORT_C TKeyResponse | OfferKeyEventL | ( | const TKeyEvent & | aKeyEvent, |
TEventCode | aType | |||
) | [virtual] |
From CCoeControl. Handles key events. Called by framework when a key event occurs. Series 60 2.0
EKeyWasConsumed if the event was processed, EKeyWasNotConsumed if the event was not processed.
const TKeyEvent & aKeyEvent | The key event that occured. |
TEventCode aType | The type of key event that occured. |
IMPORT_C void | PrepareForFocusLossL | ( | ) | [virtual] |
From CCoeControl. Prepares for focus loss. Called by the framework just before focus is removed from the control.
IMPORT_C void | SetMaximumIntegerValue | ( | TInt | aMaximumValue | ) |
Sets the maximum allowable value of the editor.
TInt aMaximumValue | The maximum value. |
IMPORT_C void | SetMinimumIntegerValue | ( | TInt | aMinimumValue | ) |
Sets the minimum allowable value of the editor.
TInt aMinimumValue | The minimum value. |
IMPORT_C void | SetUnsetValue | ( | TInt | aUnsetValue | ) |
Sets the value that is returned when the editor field is left empty or is not valid.
TInt aUnsetValue | The default value to be returned. |
IMPORT_C void | SetValueL | ( | TInt | aValue | ) |
Sets the current value of the editor. The control is not redrawn.
TInt aValue | Current value of the editor. |