1 4 package com.openedit.store.retailproconvert; 5 6 import java.util.ArrayList ; 7 import java.util.List ; 8 9 import com.openedit.store.Category; 10 11 15 public class CatalogWithProducts extends Category 16 { 17 protected List fieldStyles; 18 19 public CatalogWithProducts(String inId, String inName) 20 { 21 super( inId, inName); 22 } 23 24 public void addStyle(Style inStyle) 25 { 26 getStyles().add( inStyle ); 27 } 28 29 30 33 public boolean hasStyles() 34 { 35 return fieldStyles != null && fieldStyles.size() > 0; 36 } 37 38 41 public List getStyles() 42 { 43 if (fieldStyles == null) 44 { 45 fieldStyles = new ArrayList (); 46 47 } 48 49 return fieldStyles; 50 } 51 52 55 public void setStyles( List inStyles ) 56 { 57 this.fieldStyles = inStyles; 58 } 59 60 } 61 | Popular Tags |