package com.sometrik.framework;

import android.content.Context;
import android.view.View;
import android.widget.RadioButton;
import android.widget.RadioGroup;

public class FWRadioGroup extends RadioGroup implements NativeCommandHandler {
  
  private Context context;
  
  public FWRadioGroup(Context context){
    super(context);
    this.context = context;
  }

  @Override
  public void addChild(View view) {
    // TODO Auto-generated method stub
    
  }

  @Override
  public void removeChild(int id) {
    // TODO Auto-generated method stub
    
  }

  @Override
  public void showView() {
    // TODO Auto-generated method stub
    
  }

  @Override
  public void addOption(int optionId, String text) {
    RadioButton button = new RadioButton(context);
    button.setId(optionId);
    button.setText(text);
    addView(button);
  }

  @Override
  public void setValue(String v) {
    // TODO Auto-generated method stub
    
  }

  @Override
  public void setValue(int v) {
    // TODO Auto-generated method stub
    
  }

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

}

@@ -415,232 +415,292 @@
     
-// TODO Auto-generated method stub%0A    %0A  %7D%0A%0A  @Override%0A  public void removeChild(int id) %7B%0A    // TODO Auto-generated method stub%0A    %0A  %7D%0A%0A  @Override%0A  public void showView() %7B%0A    // TODO Auto-generated method stub%0A    
+System.out.println(%22FWRadioGroup couldn't handle command%22);%0A  %7D%0A%0A  @Override%0A  public void removeChild(int id) %7B%0A    System.out.println(%22FWRadioGroup couldn't handle command%22);%0A  %7D%0A%0A  @Override%0A  public void showView() %7B%0A    System.out.println(%22FWRadioGroup couldn't handle command%22);
 %0A  %7D
@@ -952,140 +952,180 @@
     
-// TODO Auto-generated method stub%0A    %0A  %7D%0A%0A  @Override%0A  public void setValue(int v) %7B%0A    // TODO Auto-generated method stub%0A    
+System.out.println(%22FWRadioGroup couldn't handle command%22);%0A  %7D%0A%0A  @Override%0A  public void setValue(int v) %7B%0A    System.out.println(%22FWRadioGroup couldn't handle command%22);
 %0A  %7D

Add some error messages