public static class MessageEvent.MessageFormatter extends FixedPartitionedTextFormatter
Constructor and Description |
---|
MessageFormatter() |
MessageFormatter(Text body) |
MessageFormatter(Text header,
Text body) |
Modifier and Type | Method and Description |
---|---|
SimpleTextFormatter |
getBody()
Returns the body partition within this formatter.
|
SimpleTextFormatter |
getFooter()
Returns the footer partition within this formatter.
|
SimpleTextFormatter |
getHeader()
Returns the header partition within this formatter.
|
void |
setBody(TextRepresentable body)
Clears any existing components within the body partition and adds
a new
TextTemplateApplier to the partition with the
specified value. |
void |
setFooter(TextRepresentable footer)
Clears any existing components within the footer partition and adds
a new
TextTemplateApplier to the partition with the
specified value. |
void |
setHeader(TextRepresentable header)
Clears any existing components within the header partition and adds
a new
TextTemplateApplier to the partition with the
specified value. |
add, add, clear, contains, get, getAll, insert, insert, isEmpty, remove, remove, retain, set, size
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, add, first, firstAfter, forEach, forEachAfter, format, insert, insert, iterator, remove, remove, retain, retain, toText
applyTo
forEach, spliterator
public MessageFormatter()
public MessageFormatter(Text body)
public SimpleTextFormatter getHeader()
public void setHeader(TextRepresentable header)
TextTemplateApplier
to the partition with the
specified value.header
- Header valuepublic SimpleTextFormatter getBody()
public void setBody(TextRepresentable body)
TextTemplateApplier
to the partition with the
specified value.body
- Body valuepublic SimpleTextFormatter getFooter()
public void setFooter(TextRepresentable footer)
TextTemplateApplier
to the partition with the
specified value.footer
- Footer value