private void createGestureTypeList() { ContentPanel gestureTypesContainer = new ContentPanel(); gestureTypesContainer.setHeaderVisible(false); gestureTypesContainer.setLayout(new FitLayout()); // overflow-auto style is for IE hack. gestureTypesContainer.addStyleName("overflow-auto"); gestureTypesContainer.setBorders(false); gestureTypesContainer.setBodyBorder(false); ListStore<BeanModel> gestureStore = new ListStore<BeanModel>(); GestureType[] gestureTypes = GestureType.values(); existsGestureTypeModels = new ArrayList<BeanModel>(); for (int i = 0; i < gestureTypes.length; i++) { Gesture gesture = new Gesture(gestureTypes[i]); gesture.setOid(IDUtil.nextID()); gestureMaps.put(gestureTypes[i].toString(), gesture); BeanModel gestureBeanModel = gesture.getBeanModel(); gestureStore.add(gestureBeanModel); for (Gesture existGesture : gestures) { if (gestureTypes[i].equals(existGesture.getType())) { gestureMaps.put(existGesture.getType().toString(), existGesture); existsGestureTypeModels.add(gestureBeanModel); } } } gestureTypeListView = new CheckBoxListViewExt<BeanModel>() { @Override protected void afterRender() { super.afterRender(); for (BeanModel checkedModel : existsGestureTypeModels) { this.setChecked(checkedModel, true); } } }; gestureTypeListView.setStore(gestureStore); gestureTypeListView.setDisplayProperty("type"); gestureTypeListView.setStyleAttribute("overflow", "auto"); gestureTypesContainer.add(gestureTypeListView); BorderLayoutData westData = new BorderLayoutData(LayoutRegion.WEST, 150); westData.setMargins(new Margins(0, 5, 0, 0)); add(gestureTypesContainer, westData); }