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

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

Introduction

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

Prototype

@Override
public int getAsInteger(final String key, final int defaultValue) 

Source Link

Usage

From source file:org.obiba.onyx.quartz.core.engine.questionnaire.question.OpenAnswerDefinitionAudio.java

License:Open Source License

public int getMaxDuration() {
    ValueMap valueMap = openAnswer.getUIArgumentsValueMap();
    return valueMap == null ? DEFAULT_MAX_DURATION
            : valueMap.getAsInteger(MAX_DURATION_KEY, DEFAULT_MAX_DURATION);
}