20 package net.sf.gridarta.gui.dialog.gameobjectattributes;
22 import javax.swing.text.AttributeSet;
23 import javax.swing.text.BadLocationException;
24 import javax.swing.text.Document;
25 import javax.swing.text.Style;
31 import org.apache.log4j.Category;
32 import org.apache.log4j.Logger;
33 import org.jetbrains.annotations.NotNull;
91 public abstract void appendSummary(@NotNull Document doc, @NotNull Style style);
101 protected void addLine(@NotNull
final Document doc, @NotNull
final AttributeSet style, @NotNull
final String prefix, @NotNull
final String postfix) {
103 doc.insertString(doc.getLength(), prefix +
ref.getAttributeName() + postfix +
"\n", style);
104 }
catch (
final BadLocationException e) {
105 LOG.error(
"toggleSummary: Bad Location in Document!", e);