Пример #1
0
 @Override
 public void render(Display display) throws IOException {
   disposeWidgets();
   renderExitConfirmation(display);
   renderEnableUiTests(display);
   renderShells(display);
   renderFocus(display);
   renderBeep(display);
   renderResizeListener(display);
   renderUICallBack(display);
   ActiveKeysUtil.renderActiveKeys(display);
   ActiveKeysUtil.renderCancelKeys(display);
   ActiveKeysUtil.renderMnemonicActivator(display);
   RemoteObjectLifeCycleAdapter.render();
   MeasurementUtil.renderMeasurementItems();
   runRenderRunnables(display);
   markInitialized(display);
 }
Пример #2
0
 @Override
 public void preserveValues(Display display) {
   RemoteAdapter adapter = getAdapter(display);
   adapter.preserve(PROP_FOCUS_CONTROL, display.getFocusControl());
   adapter.preserve(PROP_EXIT_CONFIRMATION, getExitConfirmation());
   adapter.preserve(PROP_RESIZE_LISTENER, Boolean.valueOf(hasResizeListener(display)));
   ActiveKeysUtil.preserveActiveKeys(display);
   ActiveKeysUtil.preserveCancelKeys(display);
   ActiveKeysUtil.preserveMnemonicActivator(display);
   if (adapter.isInitialized()) {
     for (Shell shell : getShells(display)) {
       WidgetTreeVisitor.accept(
           shell,
           new AllWidgetTreeVisitor() {
             @Override
             public boolean doVisit(Widget widget) {
               getLCA(widget).preserveValues(widget);
               return true;
             }
           });
     }
   }
 }