コード例 #1
0
 @Override
 public void onSelectionChanged(SelectionChangedEvent<Position> event) {
   if (event.getSelection().isEmpty()) {
     archiveHandler.onSelected(null);
   } else {
     archiveHandler.onSelected(event.getSelection().get(0));
   }
 }
コード例 #2
0
 @UiHandler("clearButton")
 public void onClearClicked(SelectEvent event) {
   for (Map.Entry<Long, ArchivePanel> entry : archivePanels.entrySet()) {
     Device device = deviceStore.findModelWithKey(entry.getKey().toString());
     archiveHandler.onClear(device);
     devicesTabs.remove(entry.getValue().getContentPanel());
   }
   archivePanels.clear();
 }
コード例 #3
0
 @UiHandler("loadButton")
 public void onLoadClicked(SelectEvent event) {
   archiveHandler.onLoad(
       deviceCombo.getValue(),
       getCombineDate(fromDate, fromTime),
       getCombineDate(toDate, toTime),
       !disableFilter.getValue(),
       snapToRoads.getValue(),
       new ArchiveStyle(style));
 }
コード例 #4
0
 @UiHandler("devicesTabs")
 public void onDeviceTabClosed(CloseEvent<Widget> event) {
   for (Map.Entry<Long, ArchivePanel> entry : archivePanels.entrySet()) {
     if (entry.getValue().getContentPanel().equals(event.getItem())) {
       Device device = deviceStore.findModelWithKey(entry.getKey().toString());
       archiveHandler.onClear(device);
       archivePanels.remove(entry.getKey());
       break;
     }
   }
 }
コード例 #5
0
 @UiHandler("filterButton")
 public void onFilterClicked(SelectEvent event) {
   archiveHandler.onFilterSettings();
 }
コード例 #6
0
 @Override
 public void dispose() {
   super.dispose();
   removeZipHandlerFromCache();
 }