KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > sellwin > domain > MatrixObject


1 package sellwin.domain;
2
3 import java.util.*;
4 import java.io.*;
5 import java.text.*;
6 import javax.swing.text.*;
7
8 // SellWin http://sourceforge.net/projects/sellwincrm
9
//Contact support@open-app.com for commercial help with SellWin
10
//This software is provided "AS IS", without a warranty of any kind.
11

12
13 /**
14  * This class represents data about a product group and
15  * the product lines that it contains
16  */

17 public class MatrixObject implements Serializable {
18     private String JavaDoc group;
19     private ArrayList lines;
20
21     public MatrixObject(String JavaDoc g, ArrayList l) {
22         group = g;
23         lines = l;
24     }
25
26     public final String JavaDoc getGroup() { return group; }
27     public final ArrayList getLines() { return lines; }
28
29     public final void print() {
30         System.out.println("Matrix---> GROUP="+ group);
31         String JavaDoc line;
32         for (int i=0;i<lines.size();i++) {
33             line = (String JavaDoc)lines.get(i);
34             System.out.println("\t" + "LINE=" + line);
35         }
36     }
37 }
38
Popular Tags