RF-forwardByKeyboard重写页面跳转

import org.apache.commons.lang.StringUtils;
import String com.vtradex.kangaroo.shell.Thorn4BaseShell.getShellByXX();
import com.vtradex.kangaroo.shell.ShellFactory;

protected void forwardByKeyboard(String value) throws BreakException {
	if (value.equalsIgnoreCase("XX")) {
		if(StringUtils.isEmpty(getShellByXX()))
			forward(ShellFactory.getMainShell());
		else
			forward(getShellByXX());
	} else if (value.equalsIgnoreCase("QQ")) {
		if(StringUtils.isEmpty(getShellByQQ()))
			forward(ShellFactory.getEntranceShell());
		else
			forward(getShellByQQ());
	}else if(value.equalsIgnoreCase("*")){//跳转至上一屏
		forwardByKeyboard("XX");
	}else if(value.equalsIgnoreCase("**")){//退出登录
		forwardByKeyboard("QQ");
	}
	else if (value.equalsIgnoreCase("$")) {
		this.context.remove("_");
		forward("boxOutSubstationShell", "重新选择调度单");
	}
}

 

你可能感兴趣的:(keyboard)