1 package org.jahia.clipbuilder.html.bean; 2 3 import java.util.*; 4 5 10 public class ClippersManagerBean { 11 private ArrayList clippersBeanList = new ArrayList(); 12 private Hashtable clippersBeanHash = new Hashtable(); 13 14 15 18 public ClippersManagerBean() { 19 } 20 21 22 27 public void setClippersBeanList(ArrayList clippersBeanList) { 28 this.clippersBeanList = clippersBeanList; 29 } 30 31 32 37 public void setClippersBeanHash(Hashtable clippersBeanHash) { 38 this.clippersBeanHash = clippersBeanHash; 39 } 40 41 42 47 public void setEmpty(int v) { 48 49 } 50 51 52 57 public int getEmpty() { 58 if (getClippersBeanList().isEmpty()) { 59 return 0; 60 } 61 else { 62 return 1; 63 } 64 } 65 66 67 73 public ClipperBean getClipperBean(String key) { 74 return (ClipperBean) getClippersBeanHash().get(key); 75 } 76 77 78 83 public Hashtable getClippersBeanHash() { 84 return clippersBeanHash; 85 } 86 87 88 93 public ArrayList getClippersBeanList() { 94 return clippersBeanList; 95 } 96 97 98 103 public void addClipper(ClipperBean cBean) { 104 getClippersBeanList().add(cBean); 105 getClippersBeanHash().put(cBean.getName(), cBean); 106 } 107 108 } 109 | Popular Tags |