newtonandebe / opendatakit

Automatically exported from code.google.com/p/opendatakit
0 stars 0 forks source link

add support for arbitrary control elements #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
so assuming you just want to add new control element and use the
existing data types, you can register new control types with javarosa.

XformParser.registerControlType("widget", WidgetControlHandler.TYPE_ID);
XformParser.registerhandler("widget", new WidgetElementHandler());

the widget handler would then implement IElementHandler() (see
GraphElementHandler for an example) where that
code is implemented and how it is implemented is something i haven't
looked into, but it would be similar to what the ampath branch has
done with constraint http://is.gd/3gshF

Original issue reported on code.google.com by yanokwa on 29 Apr 2010 at 10:08

GoogleCodeExporter commented 9 years ago

Original comment by carlhart...@gmail.com on 13 May 2010 at 11:13