fixed modifier bug

This commit is contained in:
hneemann 2016-04-07 12:14:55 +02:00
parent f5beee432c
commit bec935acb2

View File

@ -74,7 +74,7 @@ public final class EditorFactory {
private final JTextField text; private final JTextField text;
private StringEditor(String value, AttributeKey<String> key) { public StringEditor(String value, AttributeKey<String> key) {
text = new JTextField(10); text = new JTextField(10);
text.setText(value); text.setText(value);
} }
@ -94,7 +94,7 @@ public final class EditorFactory {
private final static class IntegerEditor extends LabelEditor<Integer> { private final static class IntegerEditor extends LabelEditor<Integer> {
private final JComboBox<Integer> comboBox; private final JComboBox<Integer> comboBox;
private IntegerEditor(Integer value, AttributeKey<Integer> key) { public IntegerEditor(Integer value, AttributeKey<Integer> key) {
Integer[] selects = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}; Integer[] selects = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16};
if (key instanceof AttributeKey.AttributeKeyInteger) { if (key instanceof AttributeKey.AttributeKeyInteger) {
selects = ((AttributeKey.AttributeKeyInteger) key).getComboBoxValues(); selects = ((AttributeKey.AttributeKeyInteger) key).getComboBoxValues();
@ -124,7 +124,7 @@ public final class EditorFactory {
private final JCheckBox bool; private final JCheckBox bool;
private BooleanEditor(Boolean value, AttributeKey<Boolean> key) { public BooleanEditor(Boolean value, AttributeKey<Boolean> key) {
bool = new JCheckBox(key.getName(), value); bool = new JCheckBox(key.getName(), value);
} }
@ -144,7 +144,7 @@ public final class EditorFactory {
private Color color; private Color color;
private final JButton button; private final JButton button;
private ColorEditor(Color value, AttributeKey<Color> key) { public ColorEditor(Color value, AttributeKey<Color> key) {
this.color = value; this.color = value;
button = new JButton(new AbstractAction() { button = new JButton(new AbstractAction() {
@Override @Override
@ -174,7 +174,7 @@ public final class EditorFactory {
private DataField data; private DataField data;
private DataFieldEditor(DataField data, AttributeKey<DataField> key) { public DataFieldEditor(DataField data, AttributeKey<DataField> key) {
this.data = data; this.data = data;
} }
@ -234,7 +234,7 @@ public final class EditorFactory {
private final Rotation rotation; private final Rotation rotation;
private JComboBox<String> comb; private JComboBox<String> comb;
private RotationEditor(Rotation rotation, AttributeKey<Rotation> key) { public RotationEditor(Rotation rotation, AttributeKey<Rotation> key) {
this.rotation = rotation; this.rotation = rotation;
} }