gpt4 book ai didi

org.apache.poi.xslf.usermodel.XSLFTableRow.()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-21 02:01:05 26 4
gpt4 key购买 nike

本文整理了Java中org.apache.poi.xslf.usermodel.XSLFTableRow.<init>()方法的一些代码示例,展示了XSLFTableRow.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSLFTableRow.<init>()方法的具体详情如下:
包路径:org.apache.poi.xslf.usermodel.XSLFTableRow
类名称:XSLFTableRow
方法名:<init>

XSLFTableRow.<init>介绍

暂无

代码示例

代码示例来源:origin: org.apache.poi/poi-ooxml

public XSLFTableRow addRow(){
  CTTableRow tr = _table.addNewTr();
  XSLFTableRow row = new XSLFTableRow(tr, this);
  // default height is 20 points
  row.setHeight(20.0);    
  _rows.add(row);
  updateRowColIndexes();
  return row;
}

代码示例来源:origin: org.apache.poi/poi-ooxml

/*package*/ XSLFTable(CTGraphicalObjectFrame shape, XSLFSheet sheet){
  super(shape, sheet);
  CTGraphicalObjectData god = shape.getGraphic().getGraphicData();
  XmlCursor xc = god.newCursor();
  try {
    if (!xc.toChild(XSLFRelation.NS_DRAWINGML, "tbl")) {
      throw new IllegalStateException("a:tbl element was not found in\n " + god);
    }

    XmlObject xo = xc.getObject();
    // Pesky XmlBeans bug - see Bugzilla #49934
    // it never happens when using the full ooxml-schemas jar but may happen with the abridged poi-ooxml-schemas
    if (xo instanceof XmlAnyTypeImpl){
      String errStr =
        "Schemas (*.xsb) for CTTable can't be loaded - usually this happens when OSGI " +
        "loading is used and the thread context classloader has no reference to " +
        "the xmlbeans classes"
      ;
      throw new IllegalStateException(errStr);
    }
    _table = (CTTable)xo;
  } finally {
    xc.dispose();
  }
  _rows = new ArrayList<>(_table.sizeOfTrArray());
  for(CTTableRow row : _table.getTrList()) {
    _rows.add(new XSLFTableRow(row, this));
  }
  updateRowColIndexes();
}

代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev

public XSLFTableRow addRow(){
  CTTableRow tr = _table.addNewTr();
  XSLFTableRow row = new XSLFTableRow(tr, this);
  row.setHeight(20.0);    // default height is 20 points
  _rows.add(row);
  return row;
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

public XSLFTableRow addRow(){
  CTTableRow tr = _table.addNewTr();
  XSLFTableRow row = new XSLFTableRow(tr, this);
  // default height is 20 points
  row.setHeight(20.0);    
  _rows.add(row);
  updateRowColIndexes();
  return row;
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

/*package*/ XSLFTable(CTGraphicalObjectFrame shape, XSLFSheet sheet){
  super(shape, sheet);
  CTGraphicalObjectData god = shape.getGraphic().getGraphicData();
  XmlCursor xc = god.newCursor();
  try {
    if (!xc.toChild(XSLFRelation.NS_DRAWINGML, "tbl")) {
      throw new IllegalStateException("a:tbl element was not found in\n " + god);
    }

    XmlObject xo = xc.getObject();
    // Pesky XmlBeans bug - see Bugzilla #49934
    // it never happens when using the full ooxml-schemas jar but may happen with the abridged poi-ooxml-schemas
    if (xo instanceof XmlAnyTypeImpl){
      String errStr =
        "Schemas (*.xsb) for CTTable can't be loaded - usually this happens when OSGI " +
        "loading is used and the thread context classloader has no reference to " +
        "the xmlbeans classes"
      ;
      throw new IllegalStateException(errStr);
    }
    _table = (CTTable)xo;
  } finally {
    xc.dispose();
  }
  _rows = new ArrayList<>(_table.sizeOfTrArray());
  for(CTTableRow row : _table.getTrList()) {
    _rows.add(new XSLFTableRow(row, this));
  }
  updateRowColIndexes();
}

代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev

/*package*/ XSLFTable(CTGraphicalObjectFrame shape, XSLFSheet sheet){
  super(shape, sheet);
  XmlObject[] rs = shape.getGraphic().getGraphicData()
      .selectPath("declare namespace a='http://schemas.openxmlformats.org/drawingml/2006/main' ./a:tbl");
  if (rs.length == 0) {
    throw new IllegalStateException("a:tbl element was not found in\n " + shape.getGraphic().getGraphicData());
  }
  // Pesky XmlBeans bug - see Bugzilla #49934
  // it never happens when using the full ooxml-schemas jar but may happen with the abridged poi-ooxml-schemas
  if(rs[0] instanceof XmlAnyTypeImpl){
    try {
      rs[0] = CTTable.Factory.parse(rs[0].toString());
    }catch (XmlException e){
      throw new POIXMLException(e);
    }
  }
  _table = (CTTable) rs[0];
  _rows = new ArrayList<XSLFTableRow>(_table.sizeOfTrArray());
  for(CTTableRow row : _table.getTrList()) _rows.add(new XSLFTableRow(row, this));
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com