SalesPoint Framework v3.2

data.swing
Class CountingStockTableModel.Record

java.lang.Object
  extended by data.swing.CountingStockTableModel.Record
All Implemented Interfaces:
Comparable<CountingStockTableModel.Record>
Enclosing class:
CountingStockTableModel

public static class CountingStockTableModel.Record
extends Object
implements Comparable<CountingStockTableModel.Record>

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(CountingStockTableModel.Record r)
          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(CountingStockTableModel.Record r)
Compare by descriptor.

Specified by:
compareTo in interface Comparable<CountingStockTableModel.Record>

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.2