public class DictionaryEntryFormatter extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DictionaryEntryFormatter.Position
Position of an attribute in the formatted string.
|
Modifier and Type | Field and Description |
---|---|
protected Map<DictionaryEntryFormatter.Position,List<Object[]>> |
attributeFormats |
protected List<Object[]> |
formats |
protected StringBuilder |
tempBuf |
protected StringBuilder |
tempBuf2 |
protected StringBuilder |
tempBuf3 |
protected StringBuilder |
tempBuf4 |
protected StringBuilder |
tempBuf5 |
Constructor and Description |
---|
DictionaryEntryFormatter() |
DictionaryEntryFormatter(ListFormatter _wordFormat,
ListFormatter _readingFormat,
ListFormatter _romFormat,
ListFormatter _crmFormat,
ListFormatter _synFormat) |
protected Map<DictionaryEntryFormatter.Position,List<Object[]>> attributeFormats
protected StringBuilder tempBuf
protected StringBuilder tempBuf2
protected StringBuilder tempBuf3
protected StringBuilder tempBuf4
protected StringBuilder tempBuf5
public DictionaryEntryFormatter()
public DictionaryEntryFormatter(ListFormatter _wordFormat, ListFormatter _readingFormat, ListFormatter _romFormat, ListFormatter _crmFormat, ListFormatter _synFormat)
public void addWordFormat(ListFormatter format)
public void addReadingFormat(ListFormatter format)
public void addTranslationFormat(ListFormatter romFormat, ListFormatter crmFormat, ListFormatter synFormat)
public void addAttributeFormat(Attribute<?> att, AttributeFormatter format, boolean before)
public void addAttributeFormat(Attribute<?> att, AttributeFormatter format, DictionaryEntryFormatter.Position generalAttributePosition, boolean before)
public void addAttributeFormat(Attribute<?> att, AttributeFormatter formatter, DictionaryEntryFormatter.Position pos)
public StringBuilder format(DictionaryEntry de, StringBuilder buf)
protected StringBuilder formatWords(DictionaryEntry de, StringBuilder buf, ListFormatter format)
protected StringBuilder formatReadings(DictionaryEntry de, StringBuilder buf, ListFormatter format)
protected StringBuilder formatTranslations(DictionaryEntry de, StringBuilder buf, ListFormatter romFormat, ListFormatter crmFormat, ListFormatter synFormat)
protected StringBuilder formatAttributes(DictionaryEntry de, StringBuilder buf, DictionaryEntryFormatter.Position pos, AttributeSet atts)
Copyright © 2001-2013 the JGloss developers. All Rights Reserved.