ipad - Elaboration idea movement ajax wicket elements -
i trying optimize webapplication ipad use. implementing user interaction , related action / feedback. have following idea , wondering if possible achieve this.
detect user-interaction javascript
determine element touched.
determine movement.
communicate wicket
send movement touched element if implements interface, i.e., touchable.
the element reacts user-interaction implementing, in interface, defined methods.
an example of touchable element following:
public class mypanel extends panel implements touchableelement @override public void react(int x, int y, int movement) { .... } }
could tell me if possible and/or give me tips, drawbacks et cetera. every piece of feedback helpfull.
could tell me if possible and/or give me tips, drawbacks et cetera.
this possible creating own ajax behavior extending abstractdefaultajaxbehavior "listens" on user's clicks via javascript , sends information calculated within javascript server, can react in behavior's respond() method. tutorial on how create own ajax behavior can found here.
the code then:
mypanel panel = new mypanel("panel"); panel.add(new myajaxbehavior());
however, if want drag , drop might find existing solutions sven meiers wicket-dnd.
Comments
Post a Comment