package gui;

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

/**
 * The context (in the sense of the StatePattern) for a MIDlet
 *
 * @author  Prof. David Bernstein, James Madison University
 * @version 1.0
 */
public interface ApplicationContext extends CommandListener
{
    /**
     * Get the Display associated with this ApplicationContext
     *
     * @return  The Display
     */
    public abstract Display getDisplay();
    
    
    /**
     * Set the current state for this ApplicationContext
     *
     * @param state   The new AbstractState
     */
    public abstract void setState(AbstractScreen state);

    
}
