1 29 30 package nextapp.echo2.app.update; 31 32 import java.io.Serializable ; 33 import java.util.Collections ; 34 import java.util.HashMap ; 35 import java.util.Iterator ; 36 import java.util.Map ; 37 38 import nextapp.echo2.app.Component; 39 40 44 public class ClientComponentUpdate 45 implements Serializable { 46 47 private Component component; 48 private Map inputs; 49 50 55 ClientComponentUpdate(Component component) { 56 super(); 57 this.component = component; 58 inputs = new HashMap (); 59 } 60 61 68 public void addInput(String inputName, Object inputValue) { 69 inputs.put(inputName, inputValue); 70 } 71 72 77 public Component getComponent() { 78 return component; 79 } 80 81 86 public Iterator getInputNames() { 87 return Collections.unmodifiableSet(inputs.keySet()).iterator(); 88 } 89 90 96 public Object getInputValue(String inputName) { 97 return inputs.get(inputName); 98 } 99 100 106 public boolean hasInput(String inputName) { 107 return inputs.containsKey(inputName); 108 } 109 } 110 | Popular Tags |