package com.sometrik.framework;

import android.content.Context;
import android.view.View;
import android.widget.Button;

public class FWButton extends Button implements NativeCommandHandler {

  FrameWork frame;
  
  public FWButton(FrameWork frameWork) {
    super(frameWork);
    this.frame = frameWork;
    
  }


  @Override
  public void addChild(View view) {
    System.out.println("FWButton couldn't handle command");
  }
  
  @Override
  public void removeChild(int id) {
    System.out.println("FWButton couldn't handle command");
  }

  @Override
  public void addOption(int optionId, String text) {
    System.out.println("FWButton couldn't handle command");
  }

  @Override
  public void setValue(String v) {
    setText(v);
  }
  
  @Override
  public void setValue(int v) {
    System.out.println("FWButton couldn't handle command");
  }

  @Override
  public int getElementId() {
    return getId();
  }

  @Override
  public void setEnabled(Boolean enabled) {
    System.out.println("FWButton couldn't handle command");
  }

}

@@ -26,16 +26,49 @@
 ework;%0A%0A
+import com.sometrik.formtest.R;%0A%0A
 import a
@@ -117,16 +117,103 @@
 w.View;%0A
+import android.view.animation.Animation;%0Aimport android.view.animation.AnimationUtils;%0A
 import a
@@ -852,16 +852,144 @@
 ext(v);%0A
+    //FIXME Debug animation%0A    Animation shake = AnimationUtils.loadAnimation(frame, R.anim.shake);%0A    startAnimation(shake);%0A
   %7D%0A  %0A 

Add debug animation on text change