com.cc.framework.ui.model
Interface RatingDataModel

All Superinterfaces:
DataModel
All Known Implementing Classes:
RatingControl

public interface RatingDataModel
extends DataModel

Data model for the rating control

Version:
$Revision: 1.3 $
Author:
Harald Schulz

Method Summary
 RatingItem getItem(int index)
          Retrieves the rating item with the given index
 long getTotalValue()
          Retrieves the total value (=100%) for the control.
 int size()
           
 

Method Detail

size

public int size()
Returns:
returns the number of rating items in this data model

getItem

public RatingItem getItem(int index)
Retrieves the rating item with the given index

Parameters:
index - zero based index
Returns:
the rating item

getTotalValue

public long getTotalValue()
Retrieves the total value (=100%) for the control. When the method returns 0 the control will calculate it's own total value by adding the single values of all rating items.

Returns:
the 100% value or 0 when the control should calculate the total value based on the single rating items


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.