Package org.openxmlformats.schemas.spreadsheetml.x2006.main

Examples of org.openxmlformats.schemas.spreadsheetml.x2006.main.CTSchema


     * @see #setFillForegroundColor(short)
     * @param fp  fill pattern (set to {@link org.apache.poi.ss.usermodel.CellStyle#SOLID_FOREGROUND} to fill w/foreground color)
     */
   public void setFillPattern(short fp) {
        CTFill ct = getCTFill();
        CTPatternFill ptrn = ct.isSetPatternFill() ? ct.getPatternFill() : ct.addNewPatternFill();
        if(fp == NO_FILL && ptrn.isSetPatternType()) ptrn.unsetPatternType();
        else ptrn.setPatternType(STPatternType.Enum.forInt(fp + 1));

        int idx = _stylesSource.putFill(new XSSFCellFill(ct));

        _cellXf.setFillId(idx);
        _cellXf.setApplyFill(true);
View Full Code Here


    }

    public Node getSchema() {
        Node xmlSchema = null;

        CTSchema schema = getCTSchema();
        xmlSchema = schema.getDomNode().getFirstChild();

        return xmlSchema;
    }
View Full Code Here

    }

    public Node getSchema() {
        Node xmlSchema = null;

        CTSchema schema = getCTSchema();
        xmlSchema = schema.getDomNode().getFirstChild();

        return xmlSchema;
    }
View Full Code Here

   * Gets the CTSchema buy it's ID
   * @param schemaId the schema ID
   * @return
   */
  public CTSchema getCTSchemaById(String schemaId){
    CTSchema xmlSchema = null;

    CTSchema[] schemas = mapInfo.getSchemaArray();
    for(CTSchema schema: schemas){
      if(schema.getID().equals(schemaId)){
        xmlSchema = schema;
View Full Code Here

   * Gets the
   * @param schemaId the schema ID
   * @return CTSchema by it's ID
   */
  public CTSchema getCTSchemaById(String schemaId){
    CTSchema xmlSchema = null;

    CTSchema[] schemas = mapInfo.getSchemaArray();
    for(CTSchema schema: schemas){
      if(schema.getID().equals(schemaId)){
        xmlSchema = schema;
View Full Code Here

   * Gets the
   * @param schemaId the schema ID
   * @return CTSchema by it's ID
   */
  public CTSchema getCTSchemaById(String schemaId){
    CTSchema xmlSchema = null;

    for(CTSchema schema: mapInfo.getSchemaList()){
      if(schema.getID().equals(schemaId)){
        xmlSchema = schema;
        break;
View Full Code Here

    }

    public Node getSchema() {
        Node xmlSchema = null;

        CTSchema schema = getCTSchema();
        xmlSchema = schema.getDomNode().getFirstChild();

        return xmlSchema;
    }
View Full Code Here

    }

    public Node getSchema() {
        Node xmlSchema = null;

        CTSchema schema = getCTSchema();
        xmlSchema = schema.getDomNode().getFirstChild();

        return xmlSchema;
    }
View Full Code Here

   * @param schemaId the schema ID
   * @return CTSchema by it's ID
   */
    @SuppressWarnings("deprecation")
  public CTSchema getCTSchemaById(String schemaId){
    CTSchema xmlSchema = null;

    for(CTSchema schema: mapInfo.getSchemaArray()){
      if(schema.getID().equals(schemaId)){
        xmlSchema = schema;
        break;
View Full Code Here

     *
     * @return a new instance
     */
    private static CTWorksheet newSheet(){
        CTWorksheet worksheet = CTWorksheet.Factory.newInstance();
        CTSheetFormatPr ctFormat = worksheet.addNewSheetFormatPr();
        ctFormat.setDefaultRowHeight(15.0);

        CTSheetView ctView = worksheet.addNewSheetViews().addNewSheetView();
        ctView.setWorkbookViewId(0);

        worksheet.addNewDimension().setRef("A1");
View Full Code Here

TOP

Related Classes of org.openxmlformats.schemas.spreadsheetml.x2006.main.CTSchema

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.