|
fop 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.util.text.ChoiceFieldPart
public class ChoiceFieldPart
Defines a "choice" field part that works like ChoiceFormat
.
Nested Class Summary | |
---|---|
static class |
ChoiceFieldPart.Factory
Factory for ChoiceFieldPart. |
Constructor Summary | |
---|---|
ChoiceFieldPart(java.lang.String fieldName,
java.lang.String choicesPattern)
Creates a new choice part. |
Method Summary | |
---|---|
boolean |
isGenerated(java.util.Map params)
Indicates whether there is any content that is generated by this message part. |
java.lang.String |
toString()
|
void |
write(java.lang.StringBuffer sb,
java.util.Map params)
Writes the formatted part to a string buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ChoiceFieldPart(java.lang.String fieldName, java.lang.String choicesPattern)
fieldName
- the field name to work onchoicesPattern
- the choices pattern (as used by ChoiceFormat
)Method Detail |
---|
public boolean isGenerated(java.util.Map params)
isGenerated
in interface AdvancedMessageFormat.Part
params
- the parameters to work with
public void write(java.lang.StringBuffer sb, java.util.Map params)
write
in interface AdvancedMessageFormat.Part
sb
- the target string bufferparams
- the parameters to work withpublic java.lang.String toString()
toString
in class java.lang.Object
|
fop 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |