// 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 radiobutton extends FField {
    //
    // CONSTRUCTOR
    //
    public radiobutton() {
        super("ff.radiobutton");
    }
    
    // 
    // Methods
    //
    


    // 
    // Events
    //
	public void event(String aAction, FContext aContext) throws Exception {
        // Events
        
    
        // onopen EVENT
        if( LibText.stringToArray("" + this.name + ".refresh," + this.name + ".select,start,onopen,refresh").contains(aAction) ) {
        			String tds = (String)getValue("datasource");
			if( tds != null ) {
			    Log.getInstance().info("RADIOBUTTON event " + aAction + " datasource : " + tds );
			    FResult result = this.processDatasource(aContext);
			    if( aAction.endsWith(".select") ) {
			        aContext.hash.put( ((String)getValue("name")) + ".select", result);
			    } else {
			        setValue("datalist", result);
			    }
			}

        }
    


	    super.event(aAction, aContext);
	}
	
	
}