// 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 image extends FComponent {
    //
    // CONSTRUCTOR
    //
    public image() {
        super("ff.image");
    }
    
    // 
    // Methods
    //
    
    
    public void updateFromObject(FObjectInterface aObject)  throws Exception { 
    		String tName = (String)this.getValue("name");
		Log.getInstance().info("updateFromObject image " + tName);
		if( tName != null && !tName.equals("") ) {
			//this.fobject = aObject;
			if( aObject.hasMember(tName) ) {
			    if( this.getValue("src") == null || this.getValue("src").toString().equals("") ) 
				    super.setValue("value", aObject.getMember(tName));
			}
		}

    }
    


    // 
    // Events
    //
	public void event(String aAction, FContext aContext) throws Exception {
        // Events
        
	    super.event(aAction, aContext);
	}
	
	
}