|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jett.tag.BaseTag
net.sf.jett.tag.CommentTag
public class CommentTag
A CommentTag represents a Cell that needs to have an Excel
Comment attached to it. It controls Comment properties such author, the
Rich Text string comment, and whether the Comment is initially visible.
This tag uses the POI method createDrawingPatriarch to
create an Excel comment on the Cell on which the tag is
located. The POI documentation warns of corrupting other "drawings" such as
charts and "complex" drawings when calling getDrawingPatriarch
(HSSF code). When testing both .xls and .xlsx template spreadsheets, it
appears that drawings and charts do get corrupted in .xls spreadsheets, but
they do NOT get corrupted in .xlsx spreadsheets.
BaseTag.RichTextStringStringRichTextStringboolean
| Field Summary | |
|---|---|
static java.lang.String |
ATTR_AUTHOR
Attribute that specifies the author of the Comment to be created. |
static java.lang.String |
ATTR_COMMENT
Attribute that specifies the comment text. |
static java.lang.String |
ATTR_VALUE
Attribute that specifies the value of the Cell itself after transformation. |
static java.lang.String |
ATTR_VISIBLE
Attribute that specifies whether the comment is initially visible. |
| Fields inherited from class net.sf.jett.tag.BaseTag |
|---|
ATTR_ON_PROCESSED, SPEC_SEP |
| Constructor Summary | |
|---|---|
CommentTag()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
Returns this Tag's name. |
protected java.util.List<java.lang.String> |
getOptionalAttributes()
Returns a List of optional attribute names. |
protected java.util.List<java.lang.String> |
getRequiredAttributes()
Returns a List of required attribute names. |
boolean |
process()
Place the "value" attribute in the cell, and the rest of the attributes control the creation of a cell comment. |
void |
validateAttributes()
Validates the attributes for this Tag. |
| Methods inherited from class net.sf.jett.tag.BaseTag |
|---|
checkAttributes, clearBlock, deleteBlock, getAttributes, getContext, getWorkbookContext, isBodiless, processTag, removeBlock, setAttributes, setBodiless, setContext, setWorkbookContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ATTR_VALUE
public static final java.lang.String ATTR_AUTHOR
public static final java.lang.String ATTR_COMMENT
public static final java.lang.String ATTR_VISIBLE
| Constructor Detail |
|---|
public CommentTag()
| Method Detail |
|---|
public java.lang.String getName()
Tag's name.
Tag's name.protected java.util.List<java.lang.String> getRequiredAttributes()
List of required attribute names.
getRequiredAttributes in class BaseTagList of required attribute names.protected java.util.List<java.lang.String> getOptionalAttributes()
List of optional attribute names.
getOptionalAttributes in class BaseTagList of optional attribute names.
public void validateAttributes()
throws TagParseException
Tag. This tag must be
bodiless.
validateAttributes in class BaseTagTagParseException - If the attribute values are illegal or
unacceptable.public boolean process()
Place the "value" attribute in the cell, and the rest of the attributes control the creation of a cell comment.
process in class BaseTagCell in the Block
associated with this Tag was processed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||