Example usage for com.vaadin.ui CheckBox CheckBox

List of usage examples for com.vaadin.ui CheckBox CheckBox

Introduction

In this page you can find the example usage for com.vaadin.ui CheckBox CheckBox.

Prototype

public CheckBox() 

Source Link

Document

Creates a new checkbox.

Usage

From source file:uk.q3c.krail.core.ui.DefaultDataTypeToUI.java

License:Apache License

@Override
public AbstractField componentFor(Class<?> dataType) {
    if (dataType.equals(Date.class)) {
        return new DateField();
    }/*from w w  w. java2  s  . c  o m*/
    if (dataType.equals(boolean.class) || dataType.equals(Boolean.class)) {
        return new CheckBox();
    }
    return new TextField();
}