01: package org.swingml.action;
02:
03: import org.swingml.*;
04: import org.swingml.xml.*;
05: import org.w3c.dom.*;
06:
07: /**
08: * @author dpitt
09: */
10: public class RemoteActionMapper extends MapperUtil {
11:
12: /**
13: * @see org.swingml.xml.Mapper#mapModelAttributes(Node, Object, Object)
14: */
15: public void mapModelAttributes(Node aNode, Object aResult) {
16: Node theResultNode = null;
17: TableBrowserCellUpdateResult theResult = (TableBrowserCellUpdateResult) aResult;
18: theResultNode = super.getAttribute(aNode, Constants.ROWID);
19: if (theResultNode != null) {
20: theResult.setTargetRowId(theResultNode.getNodeValue());
21: }
22: theResultNode = super.getAttribute(aNode, Constants.COLID);
23: if (theResultNode != null) {
24: theResult.setTargetColId(theResultNode.getNodeValue());
25: }
26: theResultNode = super.getAttribute(aNode, Constants.VALUE);
27: if (theResultNode != null) {
28: theResult.setValue(theResultNode.getNodeValue());
29: }
30: }
31: }
|