This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Set; | |
| import javax.validation.ConstraintViolation; | |
| import javax.validation.Validation; | |
| import javax.validation.Validator; | |
| import com.google.gwt.user.cellview.client.AbstractHasData; | |
| import com.google.gwt.user.cellview.client.Column; | |
| /** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protected void addPriceMwColumn(final int colIndex, DisplayMode currentDisplayMode) { | |
| // Construct a composite cell for energy offers that includes a pair of text inputs | |
| final List<HasCell<EnergyOfferDTO, String>> columns = new ArrayList< | |
| HasCell<EnergyOfferDTO, String>>(); | |
| // this DTO is passed along so that price and mw values for new entries are kept together | |
| final OfferPriceMwPair newOfferPriceMwPair = new OfferPriceMwPair(); | |
| // Price |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.ArrayList; | |
| import java.util.Collections; | |
| import java.util.List; | |
| import com.google.gwt.cell.client.AbstractCell; | |
| import com.google.gwt.cell.client.Cell; | |
| import com.google.gwt.cell.client.FieldUpdater; | |
| import com.google.gwt.cell.client.HasCell; | |
| import com.google.gwt.cell.client.ValueUpdater; | |
| import com.google.gwt.dom.client.Element; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class CompositeValidatableColumn<T> extends IdentityColumn<T> { | |
| public CompositeValidatableColumn(WrapperCell<T> cell) { | |
| super(cell); | |
| } | |
| @Override | |
| public WrapperCell<T> getCell() { | |
| return (WrapperCell<T>) super.getCell(); | |
| } |
NewerOlder