Examples of TableCellAttributes


Examples of com.volantis.mcs.protocols.TableCellAttributes

        LocalizationFactory.createExceptionLocalizer(TableHeaderCellElement.class);

    public TableHeaderCellElement(XDIMEContextInternal context) {
        super(XHTML2Elements.TH, context);

        protocolAttributes = new TableCellAttributes();
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.TableCellAttributes

     * @param collectId
     * @throws ProtocolException
     */
    private void createTableCellElement(VolantisProtocol protocol,
            List idCollector, boolean collectId) throws ProtocolException {
        TableCellAttributes tableCellAttributes = this
                .createTableDataCellAttributes(protocol, null, true);
        if (collectId) {
            idCollector.add(tableCellAttributes.getId());
        }
        openTableCellElement(protocol, tableCellAttributes);
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.TableCellAttributes

     */
    protected TableCellAttributes createTableDataCellAttributes(
            VolantisProtocol protocol, MCSAttributes sourceAttributes,
            boolean generateDefaultId) {
        // Create new instance of TableCellAttributes
        TableCellAttributes tableAttributes = new TableCellAttributes();

        // If source attributes are specified, copy all attribute values.
        if (sourceAttributes != null) {
            tableAttributes.copy(sourceAttributes);
        }

        // If styles are not specified, create new inherited styles.
        Styles styles = tableAttributes.getStyles();
        if (styles == null) {
            styles = StylingFactory.getDefaultInstance().createInheritedStyles(
                    protocol.getMarinerPageContext().getStylingEngine()
                            .getStyles(), null);
            tableAttributes.setStyles(styles);
        }

        if (generateDefaultId && tableAttributes.getId() == null) {
            tableAttributes.setId(protocol.getMarinerPageContext()
                    .generateUniqueFCID());
        }
        return tableAttributes;
    }
View Full Code Here

Examples of net.java.textilej.parser.TableCellAttributes

    if (attributes.getTitle() != null) {
      writer.writeAttribute("title", attributes.getTitle());
    }

    if (attributes instanceof TableCellAttributes) {
      TableCellAttributes tableCellAttributes = (TableCellAttributes) attributes;
      if (tableCellAttributes.getBgcolor() != null) {
        writer.writeAttribute("bgcolor", tableCellAttributes.getBgcolor());
      }
      if (tableCellAttributes.getAlign() != null) {
        writer.writeAttribute("align", tableCellAttributes.getAlign());
      }
      if (tableCellAttributes.getValign() != null) {
        writer.writeAttribute("valign", tableCellAttributes.getValign());
      }
      if (tableCellAttributes.getRowspan() != null) {
        writer.writeAttribute("rowspan", tableCellAttributes.getRowspan());
      }
      if (tableCellAttributes.getColspan() != null) {
        writer.writeAttribute("colspan", tableCellAttributes.getColspan());
      }
    }
  }
View Full Code Here

Examples of net.java.textilej.parser.TableCellAttributes

      return;
    }
   
    int contentsStart = cellSplitterMatcher.start(2);
   
    TableCellAttributes attributes = new TableCellAttributes();
   
    if (cellOptions != null) {
      Matcher optionsMatcher = optionsPattern.matcher(cellOptions);
      while (optionsMatcher.find()) {
        String optionName = optionsMatcher.group(1);
        String optionValue = optionsMatcher.group(2);
        if (optionName.equalsIgnoreCase("id")) {
          attributes.setId(optionValue);
        } else if (optionName.equalsIgnoreCase("style")) {
          attributes.setCssStyle(optionValue);
        } else if (optionName.equalsIgnoreCase("class")) {
          attributes.setCssClass(optionValue);
        } else if (optionName.equalsIgnoreCase("title")) {
          attributes.setTitle(optionValue);
        } else if (optionName.equalsIgnoreCase("align")) {
          attributes.setAlign(optionValue);
        } else if (optionName.equalsIgnoreCase("valign")) {
          attributes.setValign(optionValue);
        } else if (optionName.equalsIgnoreCase("bgcolor")) {
          attributes.setBgcolor(optionValue);
        } else if (optionName.equalsIgnoreCase("colspan")) {
          attributes.setColspan(optionValue);
        } else if (optionName.equalsIgnoreCase("rowspan")) {
          attributes.setRowspan(optionValue);
        }
      }
    }
    state.setLineCharacterOffset(lineCharacterOffset);
   
View Full Code Here

Examples of net.java.textilej.parser.TableCellAttributes

          textAlign = "text-align: left;";
        } else if (alignment.equals("^")) {
          textAlign = "text-align: top;";
        }
      }
      TableCellAttributes attributes = new TableCellAttributes();
      attributes.setCssStyle(textAlign);
      attributes.setRowspan(rowSpan);
      attributes.setColspan(colSpan);
      Textile.configureAttributes(attributes, rowMatcher,4,false);
     
      state.setLineCharacterOffset(start);
      builder.beginBlock(header?BlockType.TABLE_CELL_HEADER:BlockType.TABLE_CELL_NORMAL, attributes);
     
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.