Example usage for org.apache.wicket.util.value ValueMap getInt

List of usage examples for org.apache.wicket.util.value ValueMap getInt

Introduction

In this page you can find the example usage for org.apache.wicket.util.value ValueMap getInt.

Prototype

@Override
public final int getInt(final String key) throws StringValueConversionException 

Source Link

Usage

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;
        }
    }
}