Example usage for org.apache.wicket.util.convert.converter BooleanConverter INSTANCE

List of usage examples for org.apache.wicket.util.convert.converter BooleanConverter INSTANCE

Introduction

In this page you can find the example usage for org.apache.wicket.util.convert.converter BooleanConverter INSTANCE.

Prototype

IConverter INSTANCE

To view the source code for org.apache.wicket.util.convert.converter BooleanConverter INSTANCE.

Click Source Link

Document

The singleton instance for a boolean converter

Usage

From source file:com.userweave.components.authorization.AuthOnlyCheckBox.java

License:Open Source License

/**
 * CheckBox will by default always just use the boolean converter because the implementation
 * expects that the string is can be converted to a boolean {@link Strings#isTrue(String)}
 * //w w  w  .  j ava2 s .c  om
 * @see org.apache.wicket.Component#getConverter(java.lang.Class)
 */
@Override
public IConverter getConverter(Class type) {
    return BooleanConverter.INSTANCE;
}