20 package net.sf.gridarta.gui.dialog.gameobjectattributes;
22 import javax.swing.AbstractButton;
23 import javax.swing.text.Document;
24 import javax.swing.text.Style;
30 import org.jetbrains.annotations.NotNull;
40 private final AbstractButton
input;
55 final String archetypeAttributeName =
getRef().getArchetypeAttributeName();
56 if (
input.isSelected() != (archetype.getAttributeInt(archetypeAttributeName) == 1)) {
57 return archetypeAttributeName +
" " + (
input.isSelected() ? 1 : 0);
64 public void appendSummary(@NotNull
final Document doc, @NotNull
final Style style) {
65 if (!
input.isSelected()) {