Package com.cosmo.ui.controls

Examples of com.cosmo.ui.controls.GridRowAction


            btnBar.addButton(new ButtonBarItem("Nou registre", createActionUrl(app, cls, COMMAND_CREATE, false), Icon.ICON_IMAGE_PLUS));
            btnBar.addButton(new ButtonBarItem("Refrescar", createActionUrl(app, cls, COMMAND_REPORT, false), Icon.ICON_IMAGE_REFRESH));
            pc.addContent(btnBar, ContentColumns.MAIN);

            GridControl grid = new GridControl(getWorkspace(), CTRL_GRID);
            grid.addRowAction(new GridRowAction("", createActionUrl(app, cls, COMMAND_EDIT, true), "icon-pencil"));
            grid.addRowAction(new GridRowAction("", createActionUrl(app, cls, COMMAND_DELETE, true), "icon-remove-circle"));
            grid.setData(app.getConnectionId(), cls, false);
            pc.addContent(grid, ContentColumns.MAIN);
         }
      }
      catch (Exception ex)
View Full Code Here


      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

      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

TOP

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

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.