1 5 6 package com.raptus.owxv3.modules.base; 7 8 import java.util.*; 9 10 import javax.servlet.http.HttpServletRequest ; 11 12 import org.apache.struts.action.ActionMapping; 13 14 import com.raptus.owxv3.api.*; 15 16 38 public class EABaseListBean extends OmniaWebBean 39 { 40 43 protected Vector nwsList = null; 44 45 46 49 protected boolean picturesEnabled=false; 50 51 52 55 protected boolean filesEnabled=false; 56 57 60 protected boolean linksEnabled=false; 61 62 63 66 protected boolean categoriesEnabled=false; 67 68 71 protected boolean isListLoaded() { return nwsList != null; } 72 73 76 public Vector getList() { return nwsList; } 77 public void setList(Vector l) { this.nwsList = l; } 78 79 80 81 84 public boolean getFilesEnabled() { return filesEnabled; } 85 public void setFilesEnabled(boolean b) { filesEnabled =b ; } 86 87 88 91 public boolean getPicturesEnabled() { return picturesEnabled; } 92 public void setPicturesEnabled(boolean b) { picturesEnabled =b ; } 93 94 95 98 public boolean getLinksEnabled() { return linksEnabled; } 99 public void setLinksEnabled(boolean b) { linksEnabled =b ; } 100 101 104 public boolean getCategoriesEnabled() { return categoriesEnabled; } 105 public void setCategoriesEnabled(boolean b) { categoriesEnabled =b ; } 106 107 108 109 112 public void reset(ActionMapping mapping, HttpServletRequest request) 113 { 114 super.reset(mapping, request); 115 } 116 117 120 public EABaseListEntry getEntry(int id) 121 { 122 Enumeration enuEntries = nwsList.elements(); 123 while(enuEntries.hasMoreElements()) 124 { 125 EABaseListEntry eae = (EABaseListEntry) enuEntries.nextElement(); 126 if(eae != null && eae.getRowId() == id) 127 return eae; 128 } 129 130 return null; 131 } 132 133 136 protected CategorySelector categorySelector=null; 137 138 141 public void setCategorySelector(CategorySelector catsel) 142 { 143 categorySelector=catsel; 144 } 145 146 149 public CategorySelector getCategorySelector() 150 { 151 return categorySelector; 152 } 153 154 protected int Selcategory=0; 155 public void setCategory(int id) 156 { 157 Selcategory = id; 158 } 159 160 public int getCategory() 161 { 162 return Selcategory; 163 } 164 } 165 166 | Popular Tags |