package flexa.ff;

import flexa.fb.*;
import java.util.Map;
import java.util.HashMap;



public class image extends FComponent {
    
    
    
    public image() {
        super("ff.image");
    }

	// Update value from ORM Object attribute
	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));
			}
		}
	}    
		

}