CEikFloatingPointEditor Class Reference

API published in: S60 1st Ed

Link against: avkon.lib eikctl.lib eikcoctl.lib uiklaf.lib form.lib

Capability Information

Required Capabilities

None


#include <eikfpne.h>

Inherits CAknNumericEdwin.


Detailed Description

This class presents an editor modifying a real.

The decimal place can occur anywhere. Exponential notation is allowed.

Validation, consisting of a check that the contents are parsable as a number (using TLex::Val()) and a range check, is carried out when PrepareForFocusLossL is called. Invalid contents cause a leave of that method.

Value() only returns a value corresponding reliably to the value in the editor after a non-leaving call to PrepareForFocusLossL.


Public Member Functions

IMPORT_C  CEikFloatingPointEditor ()
  C++ constructor.
IMPORT_C void  ConstructL (const TReal &aMin, const TReal &aMax, TInt aTextLimit)
  2nd stage constructor
IMPORT_C TReal  Value () const
  Read out the value from the editor as a Real.
IMPORT_C TValidationStatus  GetValueAsReal (TReal &aValue)
  Read out the value from the editor as a Real.
IMPORT_C void  SetValueL (const TReal *aValue)
  Set the value in the editor.
IMPORT_C void  SetMinMax (TReal aMin, TReal aMax)
  Set minimum and maximum valid values.
IMPORT_C void  GetMinMax (TReal &aMin, TReal &aMax) const
  Get minimum and maximum valid values.
virtual IMPORT_C void  ConstructFromResourceL (TResourceReader &aReader)
  From resource constructor.
virtual IMPORT_C void  PrepareForFocusLossL ()
  Called by framework when focus is being taken off editor.
virtual IMPORT_C TCoeInputCapabilities  InputCapabilities () const
  Sets the input capabilities of the editor.
virtual IMPORT_C TKeyResponse  OfferKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType)
  Specific Key handling for numeric editor.
virtual IMPORT_C void  HandleResourceChange (TInt aType)
  Update contents of editor on certain resource change events.
IMPORT_C void  HandlePointerEventL (const TPointerEvent &aPointerEvent)
  From CCoeControl.

Constructor & Destructor Documentation

IMPORT_C CEikFloatingPointEditor::CEikFloatingPointEditor  ) 
 

C++ constructor.


Member Function Documentation

virtual IMPORT_C void CEikFloatingPointEditor::ConstructFromResourceL TResourceReader &  aReader  )  [virtual]
 

From resource constructor.

Refer to eikon.rh for the FLPTED resource structure

Parameters:
aReader  Resource reader positioned at a FLPTED resource location

Reimplemented from CEikEdwin.

IMPORT_C void CEikFloatingPointEditor::ConstructL const TReal &  aMin,
const TReal &  aMax,
TInt  aTextLimit
 

2nd stage constructor

IMPORT_C void CEikFloatingPointEditor::GetMinMax TReal &  aMin,
TReal &  aMax
const
 

Get minimum and maximum valid values.

Parameters:
aMin  TReal& minimum value
aMax  TReal& maximum value
IMPORT_C TValidationStatus CEikFloatingPointEditor::GetValueAsReal TReal &  aValue  ) 
 

Read out the value from the editor as a Real.

Returns:
Validation status of the current value
IMPORT_C void CEikFloatingPointEditor::HandlePointerEventL const TPointerEvent &  aPointerEvent  ) 
 

From CCoeControl.

Handles pointer events

Parameters:
aPointerEvent  The pointer event.

Reimplemented from CAknNumericEdwin.

virtual IMPORT_C void CEikFloatingPointEditor::HandleResourceChange TInt  aType  )  [virtual]
 

Update contents of editor on certain resource change events.

Reimplemented from CEikEdwin.

virtual IMPORT_C TCoeInputCapabilities CEikFloatingPointEditor::InputCapabilities  )  const [virtual]
 

Sets the input capabilities of the editor.

Reimplemented from CEikEdwin.

virtual IMPORT_C TKeyResponse CEikFloatingPointEditor::OfferKeyEventL const TKeyEvent &  aKeyEvent,
TEventCode  aType
[virtual]
 

Specific Key handling for numeric editor.

Reimplemented from CEikEdwin.

virtual IMPORT_C void CEikFloatingPointEditor::PrepareForFocusLossL  )  [virtual]
 

Called by framework when focus is being taken off editor.

May be called by client code.

IMPORT_C void CEikFloatingPointEditor::SetMinMax TReal  aMin,
TReal  aMax
 

Set minimum and maximum valid values.

Parameters:
aMin  TInt minimum value
aMax  TInt maximum value
IMPORT_C void CEikFloatingPointEditor::SetValueL const TReal *  aValue  ) 
 

Set the value in the editor.

Parameters:
aValue  pointer to value to set
IMPORT_C TReal CEikFloatingPointEditor::Value  )  const
 

Read out the value from the editor as a Real.

Value can only be relied on after a non-leaving call to PrepareForFocusLossL().

Returns:
Value in the editor

The documentation for this class was generated from the following file:

Copyright © Nokia Corporation 2001-2008
Back to top