package lancs.mobilemedia.core.ui.controller; import javax.microedition.lcdui.Command; import de.ovgu.cide.jakutil.*; /** * @author tyoung * This interface must be implemented by all sub-Controllers used by MobilePhoto. * It is for the Chain of Responsibility design pattern, and defined two methods. * The entry point to handle a command using the implementing controller is the * postCommand() method. postCommand() calls handleCommand, which will return True * if the current controller has handled the command. handleCommand will return false otherwise. * If handleCommand returns false, then postCommand will attempt to call the next controller * in the chain, if one exists. */ public interface ControllerInterface { /** * @param command */ public void postCommand( Command command); /** * @param command * @return */ public boolean handleCommand( Command command); }