/**
 * StateMachine as provided by codename one
 */

package userclasses;

import generated.StateMachineBase;

import com.codename1.ui.*; 
import com.codename1.ui.events.*;
import com.codename1.ui.util.Resources;
import com.sharefaith.churchapp.SFUtil;

/**
 *
 * @author costmo
 */
public class StateMachine extends StateMachineBase 
{
	public Resources appResources;
	
	public StateMachine( String resFile )
	{
		super( resFile );
		SFUtil.p( "state machine constructor" );
		// do not modify, write code in initVars and initialize class members there,
		// the constructor might be invoked too late due to race conditions that might occur
	}
    
	/**
	 * this method should be used to initialize variables instead of
	 * the constructor/class scope to avoid race conditions
	 */
	protected void initVars( Resources res )
	{
		this.appResources = res;
		SFUtil.p( "state machine initvars" );
	}

}
