SalesPoint Framework v3.1

data.swing
Class CountingStockTableModel.Record

java.lang.Object
  extended bydata.swing.CountingStockTableModel.Record
All Implemented Interfaces:
Comparable
Enclosing class:
CountingStockTableModel

public static class CountingStockTableModel.Record
extends Object
implements Comparable

A CountingStockTableModel's record.

The record is basically a combination of a CatalogItem and a number indicating the number of objects available.

Since:
v2.0
Author:
Steffen Zschaler

Constructor Summary
CountingStockTableModel.Record(CatalogItem ci, int nCount)
          Create a new Record.
 
Method Summary
 int compareTo(Object o)
          Compare by descriptor.
 int getCount()
          Get the number of items in this record.
 CatalogItem getDescriptor()
          Get the CatalogItem describing the items represented by this record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountingStockTableModel.Record

public CountingStockTableModel.Record(CatalogItem ci,
                                      int nCount)
Create a new Record.

Method Detail

compareTo

public int compareTo(Object o)
Compare by descriptor.

Specified by:
compareTo in interface Comparable

getDescriptor

public CatalogItem getDescriptor()
Get the CatalogItem describing the items represented by this record.


getCount

public int getCount()
Get the number of items in this record.


SalesPoint Framework v3.1