@Override
 public void updateUI() {
   super.updateUI();
   if (mLeftButton != null) {
     int iconId = ((ParameterActionAndInt) mParameter).getLeftIcon();
     mLeftButton.setImageResource(iconId);
   }
   if (mRightButton != null) {
     int iconId = ((ParameterActionAndInt) mParameter).getRightIcon();
     mRightButton.setImageResource(iconId);
   }
 }
  @Override
  public void setUp(ViewGroup container, Parameter parameter, Editor editor) {
    super.setUp(container, parameter, editor);
    mLeftButton = (ImageButton) mTopView.findViewById(R.id.leftActionButton);
    mLeftButton.setOnClickListener(
        new OnClickListener() {

          @Override
          public void onClick(View v) {
            ((ParameterActionAndInt) mParameter).fireLeftAction();
          }
        });

    mRightButton = (ImageButton) mTopView.findViewById(R.id.rightActionButton);
    mRightButton.setOnClickListener(
        new OnClickListener() {

          @Override
          public void onClick(View v) {
            ((ParameterActionAndInt) mParameter).fireRightAction();
          }
        });
    updateUI();
  }