Examples of WindowState


Examples of org.gatein.pc.api.WindowState

         {
            mode = org.gatein.pc.api.Mode.VIEW;
         }

         //
         WindowState windowState = portletActionRequest.getWindowNavigationalState().getWindowState();
         if (windowState == null)
         {
            windowState = WindowState.NORMAL;
         }
View Full Code Here

Examples of org.gatein.pc.api.WindowState

      org.gatein.pc.api.Mode mode = windowNS.getMode();
      if (update.getMode() != null)
      {
         mode = update.getMode();
      }
      WindowState windowState = windowNS.getWindowState();
      if (update.getWindowState() != null)
      {
         windowState = update.getWindowState();
      }
      StateString portletNS = windowNS.getPortletNavigationalState();
View Full Code Here

Examples of org.gatein.pc.api.WindowState

      {
         mode = org.gatein.pc.api.Mode.create(queryParameters.get(ControllerRequestParameterNames.MODE));
      }

      //
      WindowState windowState = null;
      if (queryParameters.get(ControllerRequestParameterNames.WINDOW_STATE) != null)
      {
         windowState = WindowState.create(queryParameters.get(ControllerRequestParameterNames.WINDOW_STATE));
      }
View Full Code Here

Examples of org.gjt.jclasslib.browser.config.window.WindowState

     * @param file the file
     * @return the created internal frame
     */
    public BrowserInternalFrame openClassFromFile(File file) {

        BrowserInternalFrame frame = new BrowserInternalFrame(desktopManager, new WindowState(file.getPath()));
        ClassFile classFile = frame.getClassFile();

        if (classFile != null) {
            try {
                String className = classFile.getThisClassName();
View Full Code Here

Examples of org.jboss.portal.WindowState

      }

      // Build custom window state infos for reuse in portlet info
      for (CustomWindowStateMetaData customPortletModeMD : portletApplicationMD.getCustomWindowStates().values())
      {
         WindowState windowState = WindowState.create(customPortletModeMD.getWindowState());

         //
         LocalizedString description = customPortletModeMD.getDescription();

         //
View Full Code Here

Examples of org.rstudio.core.client.layout.WindowState

      topWindowStateChangeManager_ = new WindowStateChangeManager(session);
      bottomWindowStateChangeManager_ = new WindowStateChangeHandler()
      {
         public void onWindowStateChange(WindowStateChangeEvent event)
         {
            WindowState topState;
            switch (event.getNewState())
            {
               case NORMAL:
                  topState = NORMAL;
                  break;
               case MAXIMIZE:
                  topState = MINIMIZE;
                  break;
               case MINIMIZE:
                  topState = MAXIMIZE;
                  break;
               case HIDE:
                  topState = EXCLUSIVE;
                  break;
               case EXCLUSIVE:
                  topState = HIDE;
                  break;
               default:
                  throw new IllegalArgumentException(
                        "Unknown WindowState " + event.getNewState());
            }
            windowA_.onWindowStateChange(
                                    new WindowStateChangeEvent(topState));
         }
      };

      hookEvents();

      new WindowLayoutStateValue(session.getSessionInfo().getClientState(),
                                 clientStateKeyName,
                                 topWindowDefaultState,
                                 defaultSplitterPos);

      setWidget(layout_);

      if (eventBus != null)
      {
         layout_.addSplitterBeforeResizeHandler(new SplitterBeforeResizeHandler()
         {
            public void onSplitterBeforeResize(SplitterBeforeResizeEvent event)
            {
               // If the splitter ends up causing a minimize operation, then
               // we'll need to have saved the normal height for when the
               // user decides to restore the panel.
               snapMinimizeNormalHeight_ = new NormalHeight(
                     layout_.getSplitterBottom(),
                     layout_.getOffsetHeight(),
                     Window.getClientHeight());

               eventBus.fireEvent(new GlassVisibilityEvent(true));
            }
         });
         layout_.addSplitterResizedHandler(new SplitterResizedHandler()
         {
            public void onSplitterResized(SplitterResizedEvent event)
            {
               WindowState topState = resizePanes(layout_.getSplitterBottom());
              
               // we're already in normal if the splitter is being invoked
               if (topState != WindowState.NORMAL)
               {
                  topWindowStateChangeManager_.onWindowStateChange(
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.