package flexa.ff;

import flexa.fb.*;
import java.util.Map;
import java.util.HashMap;
import java.util.ArrayList;


public class checkbox extends FField {
    
    public checkbox() {
        super("ff.checkbox");
    }

	
	public void event(String aAction, FContext aContext) throws Exception {
	    //Log.getInstance().info("COMBO " + this.name + " event " + aAction);
	    /**
	    if( ((String)getValue("datasource")).startsWith("select") && (aAction.equals(this.name + ".select") || aAction.equals("start")) ) {
	        Log.getInstance().info("COMBO event " + aAction + " datasource : " + (String)getValue("datasource") );
            // DATASOURCE FOR SELECT2 COMBO
            ArrayList<Object> tarray = Util.sqltoarrayddtotal((String)getValue("datasource"));
            Map<String, Object> tchanges = (Map<String, Object>)aHash.get("changes");
            tchanges.put( ((String)getValue("name")) + ".select", tarray.get(0));
            //tchanges.put(this.name + ".columns", tarray.get(1));
            //tchanges.put(this.name + ".types", tarray.get(2));
            //tchanges.put(this.name + ".total", tarray.get(3));
	    }
	    **/
	    super.event(aAction, aContext);
	}
	

}