public void setRangeItems(List<RangeItem> rangeItems) {
this.rangeItems = rangeItems;
removeAll();
AbstractImagePrototype icon = null;
for (RangeItem item : rangeItems) {
NumberField field = new NumberField() {
@Override
protected void onKeyUp(FieldEvent fe) {
super.onKeyUp(fe);
RangeMenu.this.onFilterKeyUp(fe);
}
};
field.removeStyleName("x-unselectable");
field.setEmptyText(filter.getMessages().getEmptyText());
field.setWidth(filter.getWidth());
switch (item) {
case LESSTHAN:
icon = GXT.IMAGES.grid_filter_lessThan();
lt = field;