package org.openbravo.client.application.window;

import java.util.List;
import java.util.Map;

import org.codehaus.jettison.json.JSONObject;
import org.openbravo.base.structure.BaseOBObject;
import org.openbravo.model.ad.ui.Tab;

public class MsgTestFICExtension implements FICExtension {

  @Override
  public void execute(String mode, Tab tab, Map<String, JSONObject> columnValues, BaseOBObject row,
      List<String> changeEventCols, List<JSONObject> calloutMessages, List<JSONObject> attachments,
      List<String> jsExcuteCode, Map<String, Object> hiddenInputs, int noteCount,
      List<String> overwrittenAuxiliaryInputs) {
    // TODO Auto-generated method stub
    try {
      JSONObject msg = new JSONObject();
      msg.put("text", "This is a message!!");
      msg.put("severity", "TYPE_WARNING");
      calloutMessages.add(msg);
    } catch (Exception e) {
      e.printStackTrace();
    }
  }

}
