Package com.cosmo.ui.controls

Examples of com.cosmo.ui.controls.GridControl


         wm = new WeatherManager(conn);
     
         GridData gd = new GridData();
         gd.setCells(wm.getAll(), true);
        
         GridControl grid = (GridControl) pc.getControl(ID_GRID);
         // grid.setData(request, gd);
         grid.setData(gd);
      }
      catch (Exception ex)
      {
         DynamicMessageControl msg = (DynamicMessageControl) pc.getControl(ID_MSG);
         msg.setVisible(true);
View Full Code Here


     
      DynamicMessageControl msg = new DynamicMessageControl(getWorkspace(), ID_MSG);
      msg.setVisible(false);
      pc.addContent(msg, ContentColumns.MAIN);
     
      GridControl grid = new GridControl(getWorkspace(), ID_GRID);
      grid.setTitle("User control data (Session Cache)");
      grid.setFirstRowTitles(true);
      pc.addContent(grid, ContentColumns.MAIN);
     
      return pc;
   }
View Full Code Here

           
            gd.setCell(row, 0, name);
            gd.setCell(row++, 1, request.getSession().getAttribute(name));
         }
        
         GridControl grid = (GridControl) pc.getControl(ID_GRID);
         grid.setData(gd);
         // grid.setData(request, gd);
      }
      catch (Exception ex)
      {
         DynamicMessageControl msg = (DynamicMessageControl) pc.getControl(ID_MSG);
View Full Code Here

      ButtonBarControl btnBar = new ButtonBarControl(getWorkspace());
      btnBar.addButton(new ButtonBarItem("Nou registre", "FormPage", Icon.ICON_IMAGE_PLUS));
      btnBar.addButton(new ButtonBarItem("Refrescar", "GridPage", Icon.ICON_IMAGE_REFRESH));
      pc.addContent(btnBar, ContentColumns.MAIN);
     
      GridControl grid = new GridControl(getWorkspace(), ID_GRID);
      pc.addContent(grid, ContentColumns.MAIN);
     
      return pc;
   }
View Full Code Here

   }
  
   @Override
   public PageContext loadPageEvent(PageContext pc, HttpServletRequest request, HttpServletResponse response)
   {
      GridControl grid;
     
      try
      {
         grid = (GridControl) pc.getControl(ID_GRID);
         grid.setData("cosmo.server", Weather.class, true);
      }
      catch (Exception ex)
      {
         DynamicMessageControl msg = (DynamicMessageControl) pc.getControl(ID_MSG);
         msg.setVisible(true);
View Full Code Here

      ButtonBarControl btnBar = new ButtonBarControl(getWorkspace());
      btnBar.addButton(new ButtonBarItem("Nou compte", "UserRegisterPage", Icon.ICON_IMAGE_PLUS));
      btnBar.addButton(new ButtonBarItem("Refrescar", "UserManagerPage", Icon.ICON_IMAGE_REFRESH));
      pc.addContent(btnBar, ContentColumns.MAIN);
     
      GridControl grid = new GridControl(getWorkspace(), ID_GRID);
      grid.addRowAction(new GridRowAction("", "UserRegisterPage?mode=edit&id=" + GridRowAction.TOKEN_ROW_ID, "icon-pencil"));
      grid.addRowAction(new GridRowAction("", "UserManagerPage?action=delete&id=" + GridRowAction.TOKEN_ROW_ID, "icon-remove-circle"));
      pc.addContent(grid, ContentColumns.MAIN);
     
      return pc;
   }
View Full Code Here

         PostgreSqlAuthenticationImpl auth = (PostgreSqlAuthenticationImpl) AuthenticationFactory.getInstance(getWorkspace());
     
         GridData gd = new GridData();
         gd.setCells(auth.getUsersList(), true);
        
         GridControl grid = (GridControl) pc.getControl(ID_GRID);
         grid.setData(gd);
         // grid.setData(request, gd);
      }
      catch (Exception ex)
      {
         DynamicMessageControl msg = (DynamicMessageControl) pc.getControl(ID_MSG);
View Full Code Here

TOP

Related Classes of com.cosmo.ui.controls.GridControl

Copyright © 2018 www.massapicom. 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.