// generated by FBuilder
package flexa.ff;
import flexa.fb.*;
import java.util.Map;
import java.util.HashMap;
import javax.script.*;
import java.util.ArrayList;
public class div extends FComponent {
    //
    // CONSTRUCTOR
    //
    public div() {
        super("ff.div");
    }
    
    // 
    // Methods
    //
    
    
    public void updateFromRequest(HashMap<String, Object> aParameters)  throws Exception { 
    		if( aParameters.containsKey(this.getValue("name")) )
		    this.setValue("value", aParameters.get(this.getValue("name")).toString());
		super.updateFromRequest(aParameters);

    }
    


    // 
    // Events
    //
	public void event(String aAction, FContext aContext) throws Exception {
        // Events
        
    
        // onopen EVENT
        if( LibText.stringToArray("" + this.name + ".select," + this.name + ".refresh,onopen,start").contains(aAction) ) {
        			if( this.status <= 0 && hasValue("datasource") ) {
			    Log.getInstance().info("DIV event " + aAction + " datasource : " + (String)getValue("datasource") );
			    FResult result = this.processDatasource(aContext); //Util.sqltoarrayddtotal(aContext, (String)getValue("datasource"));  // Execute ds
			    this.clonefromresult(result, aContext); // Clone me
			}

        }
    


	    super.event(aAction, aContext);
	}
	
	
}