TAknDoubleSpanScrollBarModel Class Reference

#include <mw/eikscrlb.h>

class TAknDoubleSpanScrollBarModel : public TEikScrollBarModel

Inherits from

Constructor & Destructor Documentation

TAknDoubleSpanScrollBarModel ( )

IMPORT_CTAknDoubleSpanScrollBarModel()

Default constructor.

TAknDoubleSpanScrollBarModel ( const TEikScrollBarModel & )

IMPORT_CTAknDoubleSpanScrollBarModel(const TEikScrollBarModel &aEikModel)

Constructor which converts TEikScrollBarModel into TAknDoubleSpanScrollBarModel.

Since
2.6
Allowed range for TEikScrollBarModel values is from 0x1FFF7FFF to -0x1FFF7FFF. Values outside the allowed range will be truncated to max or min value. Value will be internally stored with 15 bit accuracy, this means that the actual stored value may differ from the value given as parameter.

Values will be converted as:

TEikScrollBarModel TAknDoubleSpanScrollBarModel ------------------ ---------------------------- iScrollSpan -> ScrollSpan iThumbPosition -> FocusPosition iThumbSpan -> WindowSize 0 -> FieldPosition 0 -> FieldSize

Values will be internally stored with 15 bit accuracy, this means that the actual stored value may differ from the value given inside parameter.

ParameterDescription
aEikModela model that will be converted.

Member Function Documentation

FieldPosition ( )

IMPORT_C TIntFieldPosition()const

FieldSize ( )

IMPORT_C TIntFieldSize()const

FocusPosition ( )

IMPORT_C TIntFocusPosition()const

ModelIsSupported ( )

TBool ModelIsSupported()[static]

This method can be used to query if this model type is supported by the device. If model is not supported then this model and the behaviour of ALL methods defaults to TEikScrollBarModel behaviour with following rules:

TAknDoubleSpanScrollBarModel TEikScrollBarModel ---------------------------- ------------------ ScrollSpan methods -> iScrollSpan FocusPosition methods -> iThumbPosition WindowSize methods -> iThumbSize FieldPosition methods -> N/A FieldSize methods -> N/A

Since
2.6

Returns: ETrue if this model is supported by the devices scrollbar system. Otherwise EFalse is returned.

ScrollSpan ( )

IMPORT_C TIntScrollSpan()const

Get methods for model attributes. These MUST be used instead of getting base class model values directly.

Since
2.6

Returns: Values from range 0x1FFF7FFF to -0x1FFF7FFF. Values are internally stored with 15 bit accuracy, this means that the returned value may differ from the value which was set using the corresponding set method. Difference can be about 0x3FFF in the high end of the range.

SetFieldPosition ( TInt )

IMPORT_C voidSetFieldPosition(TIntaValue)

SetFieldSize ( TInt )

IMPORT_C voidSetFieldSize(TIntaValue)

SetFocusPosition ( TInt )

IMPORT_C voidSetFocusPosition(TIntaValue)

SetScrollSpan ( TInt )

IMPORT_C voidSetScrollSpan(TIntaValue)

Set methods for model attributes. These MUST be used instead of setting base class model values directly.

Since
2.6
This inaccuracy means that e.g. following can happen: TInt value1 = 23456789; TInt value2 = 0;

model.SetScrollSpan(value1); value2 = model.ScrollSpan(); if (value1 != value2) { // we can end up here !!!! }

ParameterDescription
aValueValue to be stored. Allowed range 0x1FFF7FFF to -0x1FFF7FFF. Value outside the allowed range will be truncated to max or min value. Value will be internally stored with 15 bit accuracy, this means that the actual stored value may differ from the value given as parameter.

SetWindowSize ( TInt )

IMPORT_C voidSetWindowSize(TIntaValue)

WindowSize ( )

IMPORT_C TIntWindowSize()const