Package org.rstudio.studio.client.application.events

Examples of org.rstudio.studio.client.application.events.EventBus.addHandler()


   // rather they should override the abstract onInitialize method)
   public void show(JavaScriptObject params)
   {
      // react to font size changes
      EventBus eventBus = pEventBus_.get();
      eventBus.addHandler(ChangeFontSizeEvent.TYPE, new ChangeFontSizeHandler()
      {
         public void onChangeFontSize(ChangeFontSizeEvent event)
         {
            FontSizer.setNormalFontSize(Document.get(), event.getFontSize());
         }
View Full Code Here


   public AutoGlassAttacher(LayoutPanel panel)
   {
      super(panel);

      EventBus eventBus = RStudioGinjector.INSTANCE.getEventBus();
      eventBus.addHandler(GlassVisibilityEvent.TYPE, new GlassVisibilityHandler()
      {
         public void onGlass(GlassVisibilityEvent event)
         {
            setGlass(event.isShow());
         }
View Full Code Here

   public AutoGlassPanel(Widget child)
   {
      super(child);

      EventBus eventBus = RStudioGinjector.INSTANCE.getEventBus();
      eventBus.addHandler(GlassVisibilityEvent.TYPE, new GlassVisibilityHandler()
      {
         public void onGlass(GlassVisibilityEvent event)
         {
            setGlass(event.isShow());
         }
View Full Code Here

      T obj = doGet(grp, name_);
      valueTracker_ = new ValueChangeTracker<T>(obj);
      onInit(obj);

      EventBus evt = RStudioGinjector.INSTANCE.getEventBus();
      evt.addHandler(SaveClientStateEvent.TYPE, this);
   }

   protected abstract T doGet(JsObject group, String name);
   protected abstract void doSet(ClientState state,
                                 String group,
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.