Examples of UICell


Examples of org.apache.myfaces.tobago.component.UICell

        facesContext, UIGridLayout.COMPONENT_TYPE, RendererTypes.GRID_LAYOUT, "layout");
    box.getFacets().put(Facets.LAYOUT, layout);
    layout.getAttributes().put(Attributes.ROWS, "*;fixed");
    layout.getAttributes().put(Attributes.MARGIN, "10");

    final UICell scrollPanel = (UICell)
        CreateComponentUtils.createComponent(facesContext, UICell.COMPONENT_TYPE, "Cell", "messagePanel");
    box.getChildren().add(scrollPanel);

    messages.getParent().getChildren().remove(messages);
    messages.setConfirmation(false);
    scrollPanel.setScrollbars("auto");
    scrollPanel.getChildren().add(messages);

    UIComponent buttonPanel = CreateComponentUtils.createComponent(
        facesContext, UIPanel.COMPONENT_TYPE, RendererTypes.PANEL, "buttonPanel");
    layout = CreateComponentUtils.createComponent(
        facesContext, UIGridLayout.COMPONENT_TYPE, RendererTypes.GRID_LAYOUT, "buttonPanelLayout");
    buttonPanel.getFacets().put(Facets.LAYOUT, layout);
    layout.getAttributes().put(Attributes.COLUMNS, "*;100px");
    layout.getAttributes().put(Attributes.ROWS, "fixed");

    box.getChildren().add(buttonPanel);

    final UICell space = (UICell)
        CreateComponentUtils.createComponent(facesContext, UICell.COMPONENT_TYPE, "Cell", "space");
    buttonPanel.getChildren().add(space);

    final UICommand okButton = (UICommand) CreateComponentUtils.createComponent(
        facesContext, UIButton.COMPONENT_TYPE, RendererTypes.BUTTON, CLOSE_POPUP);
View Full Code Here

Examples of org.apache.myfaces.tobago.component.UICell

        facesContext, UIGridLayout.COMPONENT_TYPE, TobagoConstants.RENDERER_TYPE_GRID_LAYOUT, "layout");
    box.getFacets().put(TobagoConstants.FACET_LAYOUT, layout);
    layout.getAttributes().put(TobagoConstants.ATTR_ROWS, "*;fixed");
    layout.getAttributes().put(TobagoConstants.ATTR_MARGIN, "10");

    final UICell scrollPanel = (UICell)
        ComponentUtil.createComponent(facesContext, UICell.COMPONENT_TYPE, "Cell", "messagePanel");
    box.getChildren().add(scrollPanel);

    messages.getParent().getChildren().remove(messages);
    messages.setConfirmation(false);
    scrollPanel.setScrollbars("auto");
    scrollPanel.getChildren().add(messages);

    UIComponent buttonPanel = ComponentUtil.createComponent(
        facesContext, UIPanel.COMPONENT_TYPE, TobagoConstants.RENDERER_TYPE_PANEL, "buttonPanel");
    layout = ComponentUtil.createComponent(
        facesContext, UIGridLayout.COMPONENT_TYPE, TobagoConstants.RENDERER_TYPE_GRID_LAYOUT, "buttonPanelLayout");
    buttonPanel.getFacets().put(TobagoConstants.FACET_LAYOUT, layout);
    layout.getAttributes().put(TobagoConstants.ATTR_COLUMNS, "*;100px");
    layout.getAttributes().put(TobagoConstants.ATTR_ROWS, "fixed");

    box.getChildren().add(buttonPanel);

    final UICell space = (UICell)
        ComponentUtil.createComponent(facesContext, UICell.COMPONENT_TYPE, "Cell", "space");
    buttonPanel.getChildren().add(space);

    final UICommand okButton = (UICommand) ComponentUtil.createComponent(
        facesContext, UIButtonCommand.COMPONENT_TYPE, TobagoConstants.RENDERER_TYPE_BUTTON, CLOSE_POPUP);
View Full Code Here

Examples of org.apache.myfaces.tobago.component.UICell

  private boolean columnIsRendered(List<UIGridLayout.Row> rows, int column) {
    for (UIGridLayout.Row row : rows) {
      Object object = row.getElements().get(column);
      if (object instanceof UIComponent) {
        if (object instanceof UICell) {
          UICell cell = (UICell) object;
          if (cell.getSpanX() > 1) {
            return false;
          }
        }
        UIComponent component = (UIComponent) object;
        if (component.isRendered()) {
View Full Code Here

Examples of org.jboss.seam.excel.ui.UICell

      for (int i = 0; i < 2; i++)
      {
         for (int j = 0; j < 2; j++)
         {
            UICell cell = new UICell();
            cell.setValue(i + "_" + j);
            wb.addItem(cell);
         }
         wb.nextColumn();
      }
View Full Code Here

Examples of org.jboss.seam.excel.ui.UICell

      UIWorksheet sheet = new UIWorksheet();
      sheet.setName("sheet");
      wb.createOrSelectWorksheet(sheet);

      UICell cell = new UICell();
      cell.setValue("A1");
      cell.setColumn(0);
      cell.setRow(0);
      wb.addItem(cell);
      cell.setValue("C2");
      cell.setColumn(2);
      cell.setRow(1);
      wb.addItem(cell);

      byte[] correct = new String("\"A1\",\"\",\"\"\n\"\",\"\",\"C2\"\n").getBytes();
      byte[] created = wb.getBytes();
View Full Code Here

Examples of org.jboss.seam.excel.ui.UICell

      for (int i = 0; i < 2; i++)
      {
         for (int j = 0; j < 2; j++)
         {
            UICell cell = new UICell();
            cell.setValue(i + "_" + j);
            wb.addItem(cell);
         }
         wb.nextColumn();
      }

      sheet.setStartColumn(1);
      sheet.setStartRow(1);
      wb.createOrSelectWorksheet(sheet);

      for (int i = 0; i < 2; i++)
      {
         for (int j = 0; j < 2; j++)
         {
            UICell cell = new UICell();
            cell.setValue(i + "_" + j);
            wb.addItem(cell);
         }
         wb.nextColumn();
      }
View Full Code Here

Examples of org.jboss.seam.excel.ui.UICell

      {
         if (!output.isRendered())
         {
            continue;
         }
         UICell cell = new UICell();
         column.getChildren().add(cell);
         cell.setId(output.getId());
         cell.setValue(output.getValue());
         cell.setStyle(Parser.getStyle(output));
         cell.setStyleClass(Parser.getStyleClass(output));

         excelWorkbook.addItem(cell);
      }
   }
View Full Code Here

Examples of org.jboss.seam.excel.ui.UICell

      {
         if (!output.isRendered())
         {
            continue;
         }
         UICell cell = new UICell();
         column.getChildren().add(cell);
         cell.setId(output.getId());
         cell.setValue(output.getValue());
         cell.setStyle(CSSParser.getStyle(output));
         cell.setStyleClass(CSSParser.getStyleClass(output));

         excelWorkbook.addItem(cell);
      }
   }
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.