Examples of WindowManager


Examples of org.apache.myfaces.trinidad.context.WindowManager

    }     

    StringBuffer buff = _getLogBuffer(context);
    buff.append("Session Id = ").append(sessionId);
   
    WindowManager wm = RequestContext.getCurrentInstance().getWindowManager();
    if (wm != null)
    {
      Window window = wm.getCurrentWindow(externalContext);
     
      if (window != null)
      {
        buff.append("\nWindow Id = ").append(window.getId());  
      }
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.WindowManager

   */
  static private String _getCurrWindowId(ExternalContext external, RequestContext trinContext)
  {
    if (trinContext != null)
    {
      WindowManager wm = trinContext.getWindowManager();

      if (wm != null)
      {
        Window currWindow = wm.getCurrentWindow(external);

        if (currWindow != null)
        {
          return currWindow.getId();
        }
View Full Code Here

Examples of org.eclipse.jface.window.WindowManager

    // Set up the JFace preference store
    JFaceUtil.initializeJFacePreferences();

    // create workbench window manager
    windowManager = new WindowManager();

    IIntroRegistry introRegistry = WorkbenchPlugin.getDefault()
        .getIntroRegistry();
    if (introRegistry.getIntroCount() > 0) {
      IProduct product = Platform.getProduct();
View Full Code Here

Examples of org.latexlab.docs.client.widgets.WindowManager

      }
      }
    }
    });
    RootPanel.get().add(wrap);
    windowManager = new WindowManager(root);
    PickupDragController dragController = new PickupDragController(root, true);
    dragController.setBehaviorConstrainedToBoundaryPanel(true);
    dragController.setBehaviorMultipleSelection(false);
    dragController.setBehaviorDragStartSensitivity(1);
  }
View Full Code Here

Examples of org.olat.core.gui.WindowManager

    mainvc.contextPut("o_winid", String.valueOf(mainPanel.getDispatchID()));
    // add jsMath library
    mainvc.contextPut("jsMathEnabled", Boolean.valueOf(jsMathEnabled));
    mainPanel.setContent(mainvc);

    WindowManager winman = Windows.getWindows(ureq).getWindowManager();
    wbo  = winman.createWindowBackOffice("basechiefwindow", this);
    Window w = wbo.getWindow();
   
    // part that builds the css and javascript lib includes (<script src="..."> and <rel link
    // e.g.
    // <script type="text/javascript" src="/demo/g/2/js/jscalendar/calendar.js"></script>

    mainvc.put("jsCssRawHtmlHeader", w.getJsCssRawHtmlHeader())
   
    // control part for ajax-communication. returns an empty panel if ajax is not enabled, so that ajax can be turned on on the fly for development mode
    jsServerC = wbo.createAJAXController(ureq);
    mainvc.put("jsServer", jsServerC.getInitialComponent())
   
    // init with no bookmark (=empty bc)
    mainvc.contextPut("o_bc", "");
   
    // the current language; used e.g. by screenreaders
    mainvc.contextPut("lang", ureq.getLocale().toString());

    // the current GUI theme and the global settings that contains the
    // font-size. both are pushed as objects so that window.dirty always reads
    // out the correct value
    mainvc.contextPut("theme", w.getGuiTheme());   
    mainvc.contextPut("globalSettings", winman.getGlobalSettings());   
   
    // content panel
    contentPanel = new Panel("olatContentPanel");
    mainvc.put("olatContentPanel", contentPanel);
    mainvc.contextPut("o_winid", Long.valueOf(w.getDispatchID()));
View Full Code Here

Examples of org.openide.windows.WindowManager

    public static final String SODBEANS_IS_RELEASE = "true";
    public static final String UI_LOGGER_NAME = "org.netbeans.ui.sodbeansVersion";
   
    @Override
    public void restored() {
        WindowManager manager = WindowManager.getDefault();
        manager.invokeWhenUIReady(this);
    }
View Full Code Here

Examples of org.openide.windows.WindowManager

    private boolean loadOnStartup = false;

    @Override
    public void restored() {
        loadOnStartup = NbPreferences.forModule(MainWindow.class).getBoolean(MainWindow.LOAD_AT_STARTUP, false);
        WindowManager manager = WindowManager.getDefault();
        manager.invokeWhenUIReady(this);
    }
View Full Code Here

Examples of org.openide.windows.WindowManager

    public Starter() {
    }

    public void start() {
        WindowManager manager = WindowManager.getDefault();
        manager.invokeWhenUIReady(this);
        displayer = StatusDisplayer.getDefault();
        displayer.addChangeListener(this);
    }
View Full Code Here

Examples of org.openide.windows.WindowManager

     * Note: The DataContent Top Component must be closed before the Directory Tree
     * and Favorites Top Components. Otherwise a NullPointerException will be thrown
     * from JFXPanel.
     */
    public static void closeCoreWindows() {
        WindowManager wm = WindowManager.getDefault();
        Set<? extends Mode> modes = wm.getModes();
        Iterator<? extends Mode> iter = wm.getModes().iterator();


        TopComponent directoryTree = null;
        TopComponent favorites = null;
        String tcName = "";
View Full Code Here

Examples of org.openide.windows.WindowManager

    /**
     * Obtain the DirectoryTreeTopComponent instance. Never call
     * {@link #getDefault} directly!
     */
    public static synchronized DirectoryTreeTopComponent findInstance() {
        WindowManager winManager = WindowManager.getDefault();
        TopComponent win = winManager.findTopComponent(PREFERRED_ID);
        if (win == null) {
            logger.warning(
                    "Cannot find " + PREFERRED_ID + " component. It will not be located properly in the window system."); //NON-NLS
            return getDefault();
        }
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.