Package org.omegat.gui.glossary
Interface IGlossaryRenderer
-
- All Known Implementing Classes:
DefaultGlossaryRenderer
,DictionaryGlossaryRenderer
public interface IGlossaryRenderer
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
IGlossaryRenderer.DocTarget
static class
IGlossaryRenderer.HtmlTarget
static interface
IGlossaryRenderer.IRenderTarget<T>
-
Field Summary
Fields Modifier and Type Field Description static javax.swing.text.AttributeSet
NO_ATTRIBUTES
static javax.swing.text.AttributeSet
NOTES_ATTRIBUTES
static javax.swing.text.AttributeSet
PRIORITY_ATTRIBUTES
static javax.swing.text.AttributeSet
SOURCE_ATTRIBUTES
static javax.swing.text.AttributeSet
TARGET_ATTRIBUTES
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.String
getId()
String to be stored in config file.java.lang.String
getName()
Name to be displayed in the drop box.default void
render(GlossaryEntry entry, javax.swing.text.StyledDocument doc)
void
render(GlossaryEntry entry, IGlossaryRenderer.IRenderTarget<?> trg)
default java.lang.String
renderToHtml(GlossaryEntry entry)
-
-
-
Field Detail
-
NO_ATTRIBUTES
static final javax.swing.text.AttributeSet NO_ATTRIBUTES
-
PRIORITY_ATTRIBUTES
static final javax.swing.text.AttributeSet PRIORITY_ATTRIBUTES
-
SOURCE_ATTRIBUTES
static final javax.swing.text.AttributeSet SOURCE_ATTRIBUTES
-
TARGET_ATTRIBUTES
static final javax.swing.text.AttributeSet TARGET_ATTRIBUTES
-
NOTES_ATTRIBUTES
static final javax.swing.text.AttributeSet NOTES_ATTRIBUTES
-
-
Method Detail
-
getName
java.lang.String getName()
Name to be displayed in the drop box. Can be language-dependent
-
getId
java.lang.String getId()
String to be stored in config file. Must be language-independent, and unique
-
render
void render(GlossaryEntry entry, IGlossaryRenderer.IRenderTarget<?> trg)
-
render
default void render(GlossaryEntry entry, javax.swing.text.StyledDocument doc)
-
renderToHtml
default java.lang.String renderToHtml(GlossaryEntry entry)
-
-