Examples of PrivateRoomsWidgetDescriptor


Examples of org.apache.openmeetings.web.user.dashboard.PrivateRoomsWidgetDescriptor

   
    // register some widgets
    dashboardContext = new DashboardContext();
    dashboardContext.setDashboardPersiter(new UserDashboardPersister());
    WidgetRegistry widgetRegistry = dashboardContext.getWidgetRegistry();
    widgetRegistry.registerWidget(new PrivateRoomsWidgetDescriptor());
    widgetRegistry.registerWidget(new WelcomeWidgetDescriptor());
    widgetRegistry.registerWidget(new StartWidgetDescriptor());
    widgetRegistry.registerWidget(new RssWidgetDescriptor());
    // add dashboard context injector
    getComponentInstantiationListeners().add(new DashboardContextInjector(dashboardContext));
View Full Code Here

Examples of org.apache.openmeetings.web.user.dashboard.PrivateRoomsWidgetDescriptor

      WidgetFactory widgetFactory = dashboardContext.getWidgetFactory();
      dashboard.addWidget(widgetFactory.createWidget(new WelcomeWidgetDescriptor()));
      dashboard.addWidget(widgetFactory.createWidget(new StartWidgetDescriptor()));
      ConfigurationDao cfgDao = getBean(ConfigurationDao.class);
      if (1 == cfgDao.getConfValue(CONFIG_DASHBOARD_SHOW_MYROOMS_KEY, Integer.class, "0")) {
        dashboard.addWidget(widgetFactory.createWidget(new PrivateRoomsWidgetDescriptor()));
      }
      if (1 == cfgDao.getConfValue(CONFIG_DASHBOARD_SHOW_RSS_KEY, Integer.class, "0")) {
        dashboard.addWidget(widgetFactory.createWidget(new RssWidgetDescriptor()));
      }
      dashboardContext.getDashboardPersiter().save(dashboard);
View Full Code Here

Examples of org.apache.openmeetings.web.user.dashboard.PrivateRoomsWidgetDescriptor

      WidgetFactory widgetFactory = dashboardContext.getWidgetFactory();
      dashboard.addWidget(widgetFactory.createWidget(new WelcomeWidgetDescriptor()));
      dashboard.addWidget(widgetFactory.createWidget(new StartWidgetDescriptor()));
      ConfigurationDao cfgDao = getBean(ConfigurationDao.class);
      if ("1".equals(cfgDao.getConfValue(CONFIG_DASHBOARD_SHOW_MYROOMS_KEY, Integer.class, "0"))) {
        dashboard.addWidget(widgetFactory.createWidget(new PrivateRoomsWidgetDescriptor()));
      }
      if ("1".equals(cfgDao.getConfValue(CONFIG_DASHBOARD_SHOW_RSS_KEY, Integer.class, "0"))) {
        dashboard.addWidget(widgetFactory.createWidget(new RssWidgetDescriptor()));
      }
      dashboardContext.getDashboardPersiter().save(dashboard);
View Full Code Here

Examples of org.apache.openmeetings.web.user.dashboard.PrivateRoomsWidgetDescriptor

   
    // register some widgets
    dashboardContext = new DashboardContext();
    dashboardContext.setDashboardPersiter(new UserDashboardPersister());
    WidgetRegistry widgetRegistry = dashboardContext.getWidgetRegistry();
    widgetRegistry.registerWidget(new PrivateRoomsWidgetDescriptor());
    widgetRegistry.registerWidget(new WelcomeWidgetDescriptor());
    widgetRegistry.registerWidget(new StartWidgetDescriptor());
    widgetRegistry.registerWidget(new RssWidgetDescriptor());
    // add dashboard context injector
    getComponentInstantiationListeners().add(new DashboardContextInjector(dashboardContext));
View Full Code Here

Examples of org.apache.openmeetings.web.user.dashboard.PrivateRoomsWidgetDescriptor

      WidgetFactory widgetFactory = dashboardContext.getWidgetFactory();
      dashboard.addWidget(widgetFactory.createWidget(new WelcomeWidgetDescriptor()));
      dashboard.addWidget(widgetFactory.createWidget(new StartWidgetDescriptor()));
      ConfigurationDao cfgDao = getBean(ConfigurationDao.class);
      if (1 == cfgDao.getConfValue(CONFIG_DASHBOARD_SHOW_MYROOMS_KEY, Integer.class, "0")) {
        dashboard.addWidget(widgetFactory.createWidget(new PrivateRoomsWidgetDescriptor()));
      }
      if (1 == cfgDao.getConfValue(CONFIG_DASHBOARD_SHOW_RSS_KEY, Integer.class, "0")) {
        dashboard.addWidget(widgetFactory.createWidget(new RssWidgetDescriptor()));
      }
      dashboardContext.getDashboardPersiter().save(dashboard);
View Full Code Here

Examples of org.apache.openmeetings.web.user.dashboard.PrivateRoomsWidgetDescriptor

   
    // register some widgets
    dashboardContext = new DashboardContext();
    dashboardContext.setDashboardPersiter(new UserDashboardPersister());
    WidgetRegistry widgetRegistry = dashboardContext.getWidgetRegistry();
    widgetRegistry.registerWidget(new PrivateRoomsWidgetDescriptor());
    widgetRegistry.registerWidget(new WelcomeWidgetDescriptor());
    widgetRegistry.registerWidget(new StartWidgetDescriptor());
    widgetRegistry.registerWidget(new RssWidgetDescriptor());
    // add dashboard context injector
    getComponentInstantiationListeners().add(new DashboardContextInjector(dashboardContext));
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.