KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > openedit > store > retailproconvert > CatalogWithProducts


1 /*
2  * Created on Oct 4, 2004
3  */

4 package com.openedit.store.retailproconvert;
5
6 import java.util.ArrayList JavaDoc;
7 import java.util.List JavaDoc;
8
9 import com.openedit.store.Category;
10
11 /**
12  * @author cburkey
13  *
14  */

15 public class CatalogWithProducts extends Category
16 {
17     protected List JavaDoc fieldStyles;
18     
19     public CatalogWithProducts(String JavaDoc inId, String JavaDoc inName)
20     {
21         super( inId, inName);
22     }
23
24     public void addStyle(Style inStyle)
25     {
26         getStyles().add( inStyle );
27     }
28     
29     
30     /**
31      * @return
32      */

33     public boolean hasStyles()
34     {
35         return fieldStyles != null && fieldStyles.size() > 0;
36     }
37     
38     /**
39      * @return Returns the fieldStyles.
40      */

41     public List JavaDoc getStyles()
42     {
43         if (fieldStyles == null)
44         {
45             fieldStyles = new ArrayList JavaDoc();
46             
47         }
48
49         return fieldStyles;
50     }
51     
52     /**
53      * @param inStyles The fieldStyles to set.
54      */

55     public void setStyles( List JavaDoc inStyles )
56     {
57         this.fieldStyles = inStyles;
58     }
59
60 }
61
Popular Tags