setcellvalue.event

来自「一个开源测试项目的代码,用于测试模块间分离程度的」· EVENT 代码 · 共 33 行

EVENT
33
字号
#if($item == "advice")		cell = freesudoku.board.cPos[$arg0][$arg1];		int modifier = InputEvent.BUTTON1_MASK;		KeyEvent evt = new KeyEvent(cell,1,100,modifier,0,'$arg2');		cell.casellaKeyTyped(evt);				#end#if($item == "extra")	pointcut $pct0(Cell cell):		execution( public void setValue( int ))		&& target(cell);	after(Cell cell):$pct0(cell){		if(cell.isSmall){			String tempText = cell.getText();			if(freesudoku.game.isLegal( $arg0, $arg1, $arg2)){				tempText += "$arg2";				if(tempText.length() > 4)					cell.setMargin( Cell.smallCellDoubleLineMargin);				cell.setText(tempText);			}		}	}#end#if($item == "finished")	pointcut $pct1():		call( public void casellaKeyTyped(..));	after(): $pct1() {%advice%	}#end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?