List of usage examples for org.apache.wicket.util.value ValueMap getInt
@Override public final int getInt(final String key) throws StringValueConversionException
From source file:org.obiba.onyx.quartz.editor.question.EditedQuestion.java
License:Open Source License
@Override public void setElement(Question question) { super.setElement(question); if (question != null) { ValueMap map = question.getUIArgumentsValueMap(); if (map != null && map.containsKey(ROW_COUNT_KEY)) { int rows = map.getInt(ROW_COUNT_KEY); if (question.getQuestionCategories().size() == rows) { layout = Layout.SINGLE_COLUMN; } else { layout = Layout.GRID;//from w w w . ja v a 2 s. c om } nbRows = rows; } } }