Package org.apache.poi.hssf.record

Examples of org.apache.poi.hssf.record.LinkedDataRecord


    records.add( createEndRecord() );
  }

  private LinkedDataRecord createLinkedDataRecord()
  {
    LinkedDataRecord r = new LinkedDataRecord();
    r.setLinkType(LinkedDataRecord.LINK_TYPE_TITLE_OR_TEXT);
    r.setReferenceType(LinkedDataRecord.REFERENCE_TYPE_DIRECT);
    r.setCustomNumberFormat(false);
    r.setIndexNumberFmtRecord((short)0);
    r.setFormulaOfLink( new LinkedDataFormulaField() );
    return r;
  }
View Full Code Here


    return r;
  }

  private LinkedDataRecord createDirectLinkRecord()
  {
    LinkedDataRecord r = new LinkedDataRecord();
    r.setLinkType( LinkedDataRecord.LINK_TYPE_TITLE_OR_TEXT );
    r.setReferenceType( LinkedDataRecord.REFERENCE_TYPE_DIRECT );
    r.setCustomNumberFormat( false );
    r.setIndexNumberFmtRecord( (short) 0 );
    r.setFormulaOfLink( new LinkedDataFormulaField() );
    return r;
  }
View Full Code Here

    return r;
  }

  private LinkedDataRecord createCategoriesLinkedDataRecord()
  {
    LinkedDataRecord r = new LinkedDataRecord();
    r.setLinkType( LinkedDataRecord.LINK_TYPE_CATEGORIES );
    r.setReferenceType( LinkedDataRecord.REFERENCE_TYPE_WORKSHEET );
    r.setCustomNumberFormat( false );
    r.setIndexNumberFmtRecord( (short) 0 );
    LinkedDataFormulaField formula = new LinkedDataFormulaField();
    Area3DPtg p = new Area3DPtg(0, 31, 1, 1,
            false, false, false, false, 0);
    formula.setFormulaTokens(new Ptg[] { p, });
    r.setFormulaOfLink( formula );
    return r;
  }
View Full Code Here

    return r;
  }

  private LinkedDataRecord createValuesLinkedDataRecord()
  {
    LinkedDataRecord r = new LinkedDataRecord();
    r.setLinkType( LinkedDataRecord.LINK_TYPE_VALUES );
    r.setReferenceType( LinkedDataRecord.REFERENCE_TYPE_WORKSHEET );
    r.setCustomNumberFormat( false );
    r.setIndexNumberFmtRecord( (short) 0 );
    LinkedDataFormulaField formula = new LinkedDataFormulaField();
    Area3DPtg p = new Area3DPtg(0, 31, 0, 0,
        false, false, false, false, 0);
    formula.setFormulaTokens(new Ptg[] { p, });
    r.setFormulaOfLink( formula );
    return r;
  }
View Full Code Here

    return r;
  }

  private LinkedDataRecord createTitleLinkedDataRecord()
  {
    LinkedDataRecord r = new LinkedDataRecord();
    r.setLinkType( LinkedDataRecord.LINK_TYPE_TITLE_OR_TEXT );
    r.setReferenceType( LinkedDataRecord.REFERENCE_TYPE_DIRECT );
    r.setCustomNumberFormat( false );
    r.setIndexNumberFmtRecord( (short) 0 );
    r.setFormulaOfLink( new LinkedDataFormulaField() );
    return r;
  }
View Full Code Here

    records.add( createEndRecord() );
  }

  private LinkedDataRecord createLinkedDataRecord()
  {
    LinkedDataRecord r = new LinkedDataRecord();
    r.setLinkType(LinkedDataRecord.LINK_TYPE_TITLE_OR_TEXT);
    r.setReferenceType(LinkedDataRecord.REFERENCE_TYPE_DIRECT);
    r.setCustomNumberFormat(false);
    r.setIndexNumberFmtRecord((short)0);
    r.setFormulaOfLink( new LinkedDataFormulaField() );
    return r;
  }
View Full Code Here

    return r;
  }

  private LinkedDataRecord createDirectLinkRecord()
  {
    LinkedDataRecord r = new LinkedDataRecord();
    r.setLinkType( LinkedDataRecord.LINK_TYPE_TITLE_OR_TEXT );
    r.setReferenceType( LinkedDataRecord.REFERENCE_TYPE_DIRECT );
    r.setCustomNumberFormat( false );
    r.setIndexNumberFmtRecord( (short) 0 );
    r.setFormulaOfLink( new LinkedDataFormulaField() );
    return r;
  }
View Full Code Here

    return r;
  }

  private LinkedDataRecord createCategoriesLinkedDataRecord()
  {
    LinkedDataRecord r = new LinkedDataRecord();
    r.setLinkType( LinkedDataRecord.LINK_TYPE_CATEGORIES );
    r.setReferenceType( LinkedDataRecord.REFERENCE_TYPE_WORKSHEET );
    r.setCustomNumberFormat( false );
    r.setIndexNumberFmtRecord( (short) 0 );
    LinkedDataFormulaField formula = new LinkedDataFormulaField();
    Stack tokens = new Stack();
    Area3DPtg p = new Area3DPtg(0, 31, 1, 1,
            false, false, false, false, 0);
    tokens.add( p );
    formula.setFormulaTokens( tokens );
    r.setFormulaOfLink( formula );
    return r;
  }
View Full Code Here

    return r;
  }

  private LinkedDataRecord createValuesLinkedDataRecord()
  {
    LinkedDataRecord r = new LinkedDataRecord();
    r.setLinkType( LinkedDataRecord.LINK_TYPE_VALUES );
    r.setReferenceType( LinkedDataRecord.REFERENCE_TYPE_WORKSHEET );
    r.setCustomNumberFormat( false );
    r.setIndexNumberFmtRecord( (short) 0 );
    LinkedDataFormulaField formula = new LinkedDataFormulaField();
    Stack tokens = new Stack();
    Area3DPtg p = new Area3DPtg(0, 31, 0, 0,
        false, false, false, false, 0);
    tokens.add( p );
    formula.setFormulaTokens( tokens );
    r.setFormulaOfLink( formula );
    return r;
  }
View Full Code Here

    return r;
  }

  private LinkedDataRecord createTitleLinkedDataRecord()
  {
    LinkedDataRecord r = new LinkedDataRecord();
    r.setLinkType( LinkedDataRecord.LINK_TYPE_TITLE_OR_TEXT );
    r.setReferenceType( LinkedDataRecord.REFERENCE_TYPE_DIRECT );
    r.setCustomNumberFormat( false );
    r.setIndexNumberFmtRecord( (short) 0 );
    r.setFormulaOfLink( new LinkedDataFormulaField() );
    return r;
  }
View Full Code Here

TOP

Related Classes of org.apache.poi.hssf.record.LinkedDataRecord

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.