| Method from com.lowagie.text.rtf.field.RtfField Detail: |
public boolean isEmpty() {
return false;
}
An RtfField is never empty. |
public boolean isFieldAlt() {
return fieldAlt;
}
Get whether this field is an alt field |
public boolean isFieldDirty() {
return fieldDirty;
}
Get whether this field is dirty |
public boolean isFieldEdit() {
return fieldEdit;
}
Get whether this field is edited |
public boolean isFieldLocked() {
return fieldLocked;
}
Get whether this field is locked |
public boolean isFieldPrivate() {
return fieldPrivate;
}
Get whether this field is private |
public boolean isInHeader() {
return this.inHeader;
}
Gets whether this RtfField is in a header. |
public boolean isInTable() {
return this.inTable;
}
Gets whether this RtfField is in a table. |
public void setFieldAlt(boolean fieldAlt) {
this.fieldAlt = fieldAlt;
}
Set whether this field is an alt field |
public void setFieldDirty(boolean fieldDirty) {
this.fieldDirty = fieldDirty;
}
Set whether this field is dirty |
public void setFieldEdit(boolean fieldEdit) {
this.fieldEdit = fieldEdit;
}
Set whether this field is edited. |
public void setFieldLocked(boolean fieldLocked) {
this.fieldLocked = fieldLocked;
}
Set whether this field is locked |
public void setFieldPrivate(boolean fieldPrivate) {
this.fieldPrivate = fieldPrivate;
}
Set whether this field is private |
public void setFont(Font font) {
super.setFont(font);
this.font = new RtfFont(this.document, font);
}
Override setFont to perform the correct font handling. |
public void setInHeader(boolean inHeader) {
this.inHeader = inHeader;
}
Sets whether this RtfField is in a header |
public void setInTable(boolean inTable) {
this.inTable = inTable;
}
Sets whether this RtfField is in a table |
public void setRtfDocument(RtfDocument doc) {
this.document = doc;
this.font.setRtfDocument(this.document);
}
Sets the RtfDocument this RtfElement belongs to |
public void writeContent(OutputStream result) throws IOException {
this.font.writeBegin(result);
writeFieldBegin(result);
writeFieldInstBegin(result);
writeFieldInstContent(result);
writeFieldInstEnd(result);
writeFieldResultBegin(result);
writeFieldResultContent(result);
writeFieldResultEnd(result);
writeFieldEnd(result);
this.font.writeEnd(result);
}
Writes the field to the OutputStream. |
abstract protected void writeFieldInstContent(OutputStream result) throws IOException
Writes the content of the field instruction area. Override this
method in your subclasses. |
abstract protected void writeFieldResultContent(OutputStream result) throws IOException
Writes the content of the pre-calculated field result. Override this
method in your subclasses. |