MapなForm

未テスト。「$form.submit_button」とかできるのではないかと。


public class MapForm extends Form implements Map {

public MapForm() {
}

public MapForm(String name) {
super(name);
}

public void clear() {
super.getFields().clear();
}

public boolean containsKey(Object key) {
return super.getFields().containsKey(key);
}

public boolean containsValue(Object value) {
return super.getFields().containsValue(value);
}

public Set entrySet() {
return super.getFields().entrySet();
}

public Object get(Object key) {
return super.getField*1;
}

public Object remove(Object key) {
return super.getFields().remove(key);
}

public int size() {
return super.getFields().size();
}

public Collection values() {
return super.getFields().values();
}

}

*1:String) key); } public boolean isEmpty() { return super.getFields().isEmpty(); } public Set keySet() { return super.getFields().keySet(); } public Object put(Object key, Object value) { super.add((Field) value); return value; } public void putAll(Map t) { for (Iterator fields = t.values().iterator(); fields.hasNext();) super.add( (Field) fields.next(