Package com.cosmo.ui.controls

Examples of com.cosmo.ui.controls.DynamicMessageControl


      HeaderControl header = new HeaderControl(getWorkspace());
      header.setTitle("Grid / Formularis");
      header.setDescription("Exemple d'utilitzaci� combinada del control GridControl i FormControl.");
      pc.addContent(header, ContentColumns.MAIN);
     
      DynamicMessageControl msg = new DynamicMessageControl(getWorkspace(), ID_MSG);
      msg.setVisible(false);
      pc.addContent(msg, ContentColumns.MAIN);
     
      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));
View Full Code Here


         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);
         msg.setType(DynamicMessageControl.MessageTypes.Error);
         msg.setMessage("ERROR: " + ex.getMessage());
      }
     
      return pc;
   }
View Full Code Here

      XhtmlControl xhtml = new XhtmlControl(getWorkspace());
      xhtml.append("Per consultar el contingut de les dades que s'introdueixen en aquest formulari, consultar l'exemple de Grid Control.");
      pc.addContent(xhtml, ContentColumns.MAIN);

      DynamicMessageControl message = new DynamicMessageControl(getWorkspace(), ID_MSG);
      pc.addContent(message, ContentColumns.MAIN);
     
      try
      {
         FormControl form = new FormControl(getWorkspace(), "OrmWeatherForm");
         form.addGroup(Weather.class);
         pc.addContent(form, ContentColumns.MAIN);
      }
      catch (InvalidMappingException ex)
      {
         DynamicMessageControl msg = (DynamicMessageControl) pc.getControl(ID_MSG);
         msg.setVisible(true);
         msg.setType(DynamicMessageControl.MessageTypes.Error);
         msg.setMessage("ERROR: " + ex.getMessage());
      }
     
      return pc;
   }
View Full Code Here

         response.sendRedirect("GridPage");
      }
      catch (Exception ex)
      {
         DynamicMessageControl msg = (DynamicMessageControl) pc.getControl(ID_MSG);
         msg.setVisible(true);
         msg.setType(DynamicMessageControl.MessageTypes.Error);
         msg.setMessage("ERROR: " + ex.getMessage());
      }
     
      return pc;
   }
View Full Code Here

     
      HeaderControl header = new HeaderControl(getWorkspace());
      header.setTitle("Gesti� d'usuaris");
      pc.addContent(header, ContentColumns.MAIN);
     
      DynamicMessageControl msg = new DynamicMessageControl(getWorkspace(), ID_MSG);
      msg.setVisible(false);
      pc.addContent(msg, ContentColumns.MAIN);
     
      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));
View Full Code Here

         grid.setData(gd);
         // grid.setData(request, gd);
      }
      catch (Exception ex)
      {
         DynamicMessageControl msg = (DynamicMessageControl) pc.getControl(ID_MSG);
         msg.setVisible(true);
         msg.setType(DynamicMessageControl.MessageTypes.Error);
         msg.setMessage("ERROR: " + ex.getMessage());
      }
     
      return pc;
   }
View Full Code Here

TOP

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

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.