@Override public void saveParam(Object obj) throws Exception { OptionsParam optionsParam = (OptionsParam) obj; AntiCsrfParam antiCsrfParam = optionsParam.getAntiCsrfParam(); antiCsrfParam.setTokens(getAntiCsrfModel().getElements()); antiCsrfParam.setConfirmRemoveToken(!tokensOptionsPanel.isRemoveWithoutConfirmation()); }
@Override public void initParam(Object obj) { OptionsParam optionsParam = (OptionsParam) obj; AntiCsrfParam param = optionsParam.getAntiCsrfParam(); getAntiCsrfModel().setTokens(param.getTokens()); tokensOptionsPanel.setRemoveWithoutConfirmation(!param.isConfirmRemoveToken()); }