Overview | Package | Class | Tree | Deprecated | Index | Help
| Copyright © 2008 BEA Systems, Inc. All Rights Reserved
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.beasys.commerce.ebusiness.util
Interface ScrollableModel

All Superinterfaces
  Serializable

All Known Implementing Classes:
  DefaultScrollableModel

Deprecated See BEA Commerce product offering

    @Deprecated
    public interface ScrollableModel

extends Serializable

This file contains an interface for any scrollable model It helps manage large returned value by returning only a set of cached value objects (if used properly), reducing the traffic and the memory usage with this simple interface.

Method Summary
`int` | `getCount()` Deprecated See BEA Commerce product offering
`Class` | `getModelClass()` Deprecated See BEA Commerce product offering
`int` | `getNbPages()` Deprecated See BEA Commerce product offering
`Object[]` | `getPage(int pageIndex)` Deprecated See BEA Commerce product offering
`int` | `getPageSize()` Deprecated See BEA Commerce product offering
`Object` | `getValueAt(int valueIndex)` Deprecated See BEA Commerce product offering
`void` | `setValueAt(Serializable value, int valueIndex)` Deprecated See BEA Commerce product offering

Method Detail

### getCount

    int getCount()

  Deprecated See BEA Commerce product offering

  gets the total number of elements managed by the Scrollable Model.

  Returns
    the count of all elements.

### getValueAt

    Object getValueAt(int valueIndex)

  Deprecated See BEA Commerce product offering

  Gets the value (hopefully a value object) based on the index the value

  Parameters
    `valueIndex,` - the index for the value to retrieve
  Returns
    the corresponding value as an Object

### getModelClass

    Class getModelClass()

  Deprecated See BEA Commerce product offering

  All objects managed by the scrollable model are of the same class. This method retrieves that class

  Returns
    the Class of all objects managed by the scrollable model.

### getNbPages

    int getNbPages()

  Deprecated See BEA Commerce product offering

  Gets the total number of pages over the scrollable model

  Returns
    the number of pages

### getPageSize

    int getPageSize()

  Deprecated See BEA Commerce product offering

  gets the page size for an instance of a scrollable model i.e. '10' means 10 value objects are kept in one page.

  Returns
    the size of all pages

### setValueAt

    void setValueAt(Serializable value,
                    int valueIndex)

  Deprecated See BEA Commerce product offering

  Sets the value of an element based on its index in the list of values managed by the scrollable model.

  Parameters
    `value,` - the 'value object' at a location in the list
    `valueIndex,` - the location of the value object in the list

### getPage

    Object[] getPage(int pageIndex)

  Deprecated See BEA Commerce product offering

  Gets a page worth of Objects, given a page index.

  Parameters
    `pageIndex,` - the index in the list of pages
  Returns
    an array of objects for that page.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008 BEA Systems, Inc. All Rights Reserved