Examples of HSSFComment


Examples of org.apache.poi.hssf.usermodel.HSSFComment

                      }
                    } else if (celltype == HSSFCell.CELL_TYPE_NUMERIC) {
                      double num = cell.getNumericCellValue();
                      contents = contents + num + ",";
                    }
                    HSSFComment comm = cell.getCellComment();
                    if (comm != null) {
                      contents = contents + comm + ",";
                    }

                  }
View Full Code Here

Examples of org.apache.poi.hssf.usermodel.HSSFComment

                    iterator.remove();
                    break;
            }
        }

        HSSFComment comment = (HSSFComment)shape;
        opt.addEscherProperty( new EscherSimpleProperty( EscherProperties.GROUPSHAPE__PRINT, comment.isVisible() ? 0x000A0000 : 0x000A0002) );
        opt.addEscherProperty( new EscherSimpleProperty( EscherProperties.SHADOWSTYLE__SHADOWOBSURED, 0x00030003 ) );
        opt.addEscherProperty( new EscherSimpleProperty( EscherProperties.SHADOWSTYLE__COLOR, 0x00000000 ) );
        opt.sortProperties();
        return opt.getEscherProperties().size();   // # options added
    }
View Full Code Here

Examples of org.apache.poi.hssf.usermodel.HSSFComment

                    iterator.remove();
                    break;
            }
        }

        HSSFComment comment = (HSSFComment)shape;
        opt.addEscherProperty( new EscherSimpleProperty( EscherProperties.GROUPSHAPE__PRINT, comment.isVisible() ? 0x000A0000 : 0x000A0002) );
        opt.addEscherProperty( new EscherSimpleProperty( EscherProperties.SHADOWSTYLE__SHADOWOBSURED, 0x00030003 ) );
        opt.addEscherProperty( new EscherSimpleProperty( EscherProperties.SHADOWSTYLE__COLOR, 0x00000000 ) );
        opt.sortProperties();
        return opt.getEscherProperties().size();   // # options added
    }
View Full Code Here

Examples of org.apache.poi.hssf.usermodel.HSSFComment

                    iterator.remove();
                    break;
            }
        }

        HSSFComment comment = (HSSFComment)shape;
        opt.addEscherProperty( new EscherSimpleProperty( EscherProperties.GROUPSHAPE__PRINT, comment.isVisible() ? 0x000A0000 : 0x000A0002) );
        opt.addEscherProperty( new EscherSimpleProperty( EscherProperties.SHADOWSTYLE__SHADOWOBSURED, 0x00030003 ) );
        opt.addEscherProperty( new EscherSimpleProperty( EscherProperties.SHADOWSTYLE__COLOR, 0x00000000 ) );
        opt.sortProperties();
        return opt.getEscherProperties().size();   // # options added
    }
View Full Code Here

Examples of org.apache.poi.hssf.usermodel.HSSFComment

                    iterator.remove();
                    break;
            }
        }

        HSSFComment comment = (HSSFComment)shape;
        opt.addEscherProperty( new EscherSimpleProperty( EscherProperties.GROUPSHAPE__PRINT, comment.isVisible() ? 0x000A0000 : 0x000A0002) );
        opt.addEscherProperty( new EscherSimpleProperty( EscherProperties.SHADOWSTYLE__SHADOWOBSURED, 0x00030003 ) );
        opt.addEscherProperty( new EscherSimpleProperty( EscherProperties.SHADOWSTYLE__COLOR, 0x00000000 ) );
        opt.sortProperties();
        return opt.getEscherProperties().size();   // # options added
    }
View Full Code Here

Examples of org.apache.poi.hssf.usermodel.HSSFComment

              default:
                throw new RuntimeException("Unexpected cell type (" + cell.getCellType() + ")");
            }
           
            // Output the comment, if requested and exists
            HSSFComment comment = cell.getCellComment();
            if(_includeCellComments && comment != null) {
              // Replace any newlines with spaces, otherwise it
              //  breaks the output
              String commentText = comment.getString().getString().replace('\n', ' ');
              text.append(" Comment by "+comment.getAuthor()+": "+commentText);
            }
          }
         
          // Output a tab if we're not on the last cell
          if(outputContents && k < (lastCell-1)) {
View Full Code Here

Examples of org.apache.poi.hssf.usermodel.HSSFComment

              default:
                throw new RuntimeException("Unexpected cell type (" + cell.getCellType() + ")");
            }
           
            // Output the comment, if requested and exists
            HSSFComment comment = cell.getCellComment();
            if(_includeCellComments && comment != null) {
              // Replace any newlines with spaces, otherwise it
              //  breaks the output
              String commentText = comment.getString().getString().replace('\n', ' ');
              text.append(" Comment by "+comment.getAuthor()+": "+commentText);
            }
          }
         
          // Output a tab if we're not on the last cell
          if(outputContents && k < (lastCell-1)) {
View Full Code Here

Examples of org.apache.poi.hssf.usermodel.HSSFComment

                if (sourceObj instanceof ReportElementHandle) {
                    String comments = ((ReportElementHandle) sourceObj).getComments();

                    if (comments != null && comments.length() > 0) {
                        HSSFComment hssfcomment = patriarch.createComment(new HSSFClientAnchor(0,
                                0,
                                0,
                                0,
                                (short) commentsAnchorColumnIndex,
                                commentsAnchorRowIndex,
                                (short) (commentsAnchorColumnIndex + COMMENTS_WIDTH_IN_COLUMN),
                                commentsAnchorRowIndex + COMMENTS_HEIGHT_IN_ROW));
                        hssfcomment.setString(new HSSFRichTextString(comments));

                        cell.setCellComment(hssfcomment);

                        return true;
                    }
View Full Code Here

Examples of org.apache.poi.hssf.usermodel.HSSFComment

                    iterator.remove();
                    break;
            }
        }

        HSSFComment comment = (HSSFComment)shape;
        opt.addEscherProperty( new EscherSimpleProperty( EscherProperties.GROUPSHAPE__PRINT, comment.isVisible() ? 0x000A0000 : 0x000A0002) );
        opt.addEscherProperty( new EscherSimpleProperty( EscherProperties.SHADOWSTYLE__SHADOWOBSURED, 0x00030003 ) );
        opt.addEscherProperty( new EscherSimpleProperty( EscherProperties.SHADOWSTYLE__COLOR, 0x00000000 ) );
        opt.sortProperties();
        return opt.getEscherProperties().size();   // # options added
    }
View Full Code Here

Examples of org.apache.poi.hssf.usermodel.HSSFComment

              outputContents = true;
              break;
          }
         
          // Output the comment, if requested and exists
            HSSFComment comment = cell.getCellComment();
          if(includeCellComments && comment != null) {
              // Replace any newlines with spaces, otherwise it
              //  breaks the output
              String commentText = comment.getString().getString().replace('\n', ' ');
              text.append(" Comment by "+comment.getAuthor()+": "+commentText);
          }
         
          // Output a tab if we're not on the last cell
          if(outputContents && k < (lastCell-1)) {
            text.append("\t");
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.