1 5 6 package com.raptus.owxv3.api.components; 7 8 import java.util.Vector ; 9 10 import com.raptus.owxv3.api.CategorySelector; 11 12 34 public class CmpCategoryBean extends ComponentBean 35 { 36 40 protected CategorySelector catSelector = null; 41 42 43 46 public CategorySelector getCategorySelector() { return catSelector; } 47 48 49 52 public void setCategorySelector(CategorySelector cs){ this.catSelector = cs; } 53 54 55 56 60 61 public Vector getCategories() 62 { 63 if(catSelector==null) return null; 64 return catSelector.getCategories(getCurrLocale()); 65 } 66 67 68 72 73 public Vector getGResCategories() 74 { 75 76 if(catSelector==null) return null; 77 return catSelector.getGResCategories(); 78 } 79 80 84 public Vector getCategoryNames() 85 { 86 if(catSelector==null) return null; 87 return catSelector.getCategoryNames(getCurrLocale()); 88 89 } 90 91 95 96 public Vector getFolderStatus() 97 { 98 if(catSelector==null) return null; 99 return catSelector.getFolderStatus(); 100 } 101 102 106 107 108 public void togleFolder(String s) 109 { 110 if(catSelector==null) return; 111 catSelector.togleFolder(s); 112 } 113 114 118 public Vector getLinkedCategories() 119 { 120 if(catSelector==null) return null; 121 return catSelector.getLinkedCategories(); 122 } 123 124 125 130 public boolean linkItemToCategory(int catid) 131 { 132 if(catSelector==null) return true; 133 return catSelector.linkItemToCategory(catid); 134 } 135 136 137 141 public void unlinkItemFromCategory(int catid) 142 { 143 if(catSelector==null) return; 144 catSelector.unlinkItemFromCategory(catid); 145 } 146 147 151 public Vector getTree(int id) 152 { 153 if(catSelector==null) return null; 154 return catSelector.getTree(id,getCurrLocale()); 155 } 156 157 161 public String getCategoryName(int id) 162 { 163 if(catSelector==null) return null; 164 return catSelector.getCategoryName(id,getCurrLocale()); 165 } 166 167 168 169 } 170 171 | Popular Tags |