From bec935acb2285b6daf9f93b471b75d5348d29243 Mon Sep 17 00:00:00 2001 From: hneemann Date: Thu, 7 Apr 2016 12:14:55 +0200 Subject: [PATCH] fixed modifier bug --- .../digital/gui/components/EditorFactory.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/de/neemann/digital/gui/components/EditorFactory.java b/src/main/java/de/neemann/digital/gui/components/EditorFactory.java index 433ee303f..d5a4de639 100644 --- a/src/main/java/de/neemann/digital/gui/components/EditorFactory.java +++ b/src/main/java/de/neemann/digital/gui/components/EditorFactory.java @@ -74,7 +74,7 @@ public final class EditorFactory { private final JTextField text; - private StringEditor(String value, AttributeKey key) { + public StringEditor(String value, AttributeKey key) { text = new JTextField(10); text.setText(value); } @@ -94,7 +94,7 @@ public final class EditorFactory { private final static class IntegerEditor extends LabelEditor { private final JComboBox comboBox; - private IntegerEditor(Integer value, AttributeKey key) { + public IntegerEditor(Integer value, AttributeKey key) { Integer[] selects = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}; if (key instanceof AttributeKey.AttributeKeyInteger) { selects = ((AttributeKey.AttributeKeyInteger) key).getComboBoxValues(); @@ -124,7 +124,7 @@ public final class EditorFactory { private final JCheckBox bool; - private BooleanEditor(Boolean value, AttributeKey key) { + public BooleanEditor(Boolean value, AttributeKey key) { bool = new JCheckBox(key.getName(), value); } @@ -144,7 +144,7 @@ public final class EditorFactory { private Color color; private final JButton button; - private ColorEditor(Color value, AttributeKey key) { + public ColorEditor(Color value, AttributeKey key) { this.color = value; button = new JButton(new AbstractAction() { @Override @@ -174,7 +174,7 @@ public final class EditorFactory { private DataField data; - private DataFieldEditor(DataField data, AttributeKey key) { + public DataFieldEditor(DataField data, AttributeKey key) { this.data = data; } @@ -234,7 +234,7 @@ public final class EditorFactory { private final Rotation rotation; private JComboBox comb; - private RotationEditor(Rotation rotation, AttributeKey key) { + public RotationEditor(Rotation rotation, AttributeKey key) { this.rotation = rotation; }