1 13 package com.tonbeller.wcf.selection; 14 15 import java.util.Collection ; 16 import java.util.Set ; 17 18 import com.tonbeller.wcf.controller.RequestContext; 19 20 24 25 public abstract class SelectionModelDecorator implements SelectionModel { 26 SelectionModel delegate; 27 28 public SelectionModelDecorator(SelectionModel delegate) { 29 this.delegate = delegate; 30 } 31 32 35 public void add(Object obj) { 36 delegate.add(obj); 37 } 38 39 42 public void addAll(Collection c) { 43 delegate.addAll(c); 44 } 45 46 49 public void addSelectionListener(SelectionChangeListener l) { 50 delegate.addSelectionListener(l); 51 } 52 53 56 public void clear() { 57 delegate.clear(); 58 } 59 60 64 public boolean contains(Object obj) { 65 return delegate.contains(obj); 66 } 67 68 71 public boolean equals(Object arg0) { 72 return delegate.equals(arg0); 73 } 74 75 78 public void fireSelectionChanged(RequestContext context) { 79 delegate.fireSelectionChanged(context); 80 } 81 82 85 public int getMode() { 86 return delegate.getMode(); 87 } 88 89 92 public Set getSelection() { 93 return delegate.getSelection(); 94 } 95 96 99 public Object getSingleSelection() { 100 return delegate.getSingleSelection(); 101 } 102 103 106 public int hashCode() { 107 return delegate.hashCode(); 108 } 109 110 114 public boolean isSelectable(Object item) { 115 return delegate.isSelectable(item); 116 } 117 118 121 public void remove(Object obj) { 122 delegate.remove(obj); 123 } 124 125 128 public void removeSelectionListener(SelectionChangeListener l) { 129 delegate.removeSelectionListener(l); 130 } 131 132 135 public void setSingleSelection(Object selectedObject) { 136 delegate.setSingleSelection(selectedObject); 137 } 138 139 public String toString() { 140 return delegate.toString(); 141 } 142 143 public boolean isEmpty() { 144 return delegate.isEmpty(); 145 } 146 147 } 148 | Popular Tags |