List of usage examples for com.vaadin.ui CheckBox CheckBox
public CheckBox()
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(); }