From 5ab36fc4fcfc26821d37175b1cfbdf82d7d40e01 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 25 Oct 2024 17:23:39 -0400 Subject: [PATCH] spelling: interface Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../flash/easygui/properties/AbstractPropertyField.java | 8 ++++---- .../flash/easygui/properties/FloatPropertyField.java | 8 ++++---- .../flash/easygui/properties/IntegerPropertyField.java | 8 ++++---- ...tionInteface.java => PropertyValidationInterface.java} | 2 +- .../flash/easygui/properties/TextPropertyField.java | 2 +- .../properties/panels/InstancePropertiesPanel.java | 4 ++-- 6 files changed, 16 insertions(+), 16 deletions(-) rename src/com/jpexs/decompiler/flash/easygui/properties/{PropertyValidationInteface.java => PropertyValidationInterface.java} (94%) diff --git a/src/com/jpexs/decompiler/flash/easygui/properties/AbstractPropertyField.java b/src/com/jpexs/decompiler/flash/easygui/properties/AbstractPropertyField.java index f5be553a9..b1ef01af4 100644 --- a/src/com/jpexs/decompiler/flash/easygui/properties/AbstractPropertyField.java +++ b/src/com/jpexs/decompiler/flash/easygui/properties/AbstractPropertyField.java @@ -55,7 +55,7 @@ public abstract class AbstractPropertyField extends JPanel { protected JLabel readLabel; protected JTextField writeField; - private final List> validations = new ArrayList<>(); + private final List> validations = new ArrayList<>(); private final List changeListeners = new ArrayList<>(); private AWTEventListener aeListener; @@ -63,11 +63,11 @@ public abstract class AbstractPropertyField extends JPanel { private boolean undetermined = false; private boolean editing = false; - public void addValidation(PropertyValidationInteface validation) { + public void addValidation(PropertyValidationInterface validation) { validations.add(validation); } - public void removeValidation(PropertyValidationInteface validation) { + public void removeValidation(PropertyValidationInterface validation) { validations.remove(validation); } @@ -169,7 +169,7 @@ public abstract class AbstractPropertyField extends JPanel { if (value == null) { ok = false; } else { - for (PropertyValidationInteface validation : validations) { + for (PropertyValidationInterface validation : validations) { if (!validation.validate(value)) { ok = false; break; diff --git a/src/com/jpexs/decompiler/flash/easygui/properties/FloatPropertyField.java b/src/com/jpexs/decompiler/flash/easygui/properties/FloatPropertyField.java index 49c8aa5b6..f1cc6c0a9 100644 --- a/src/com/jpexs/decompiler/flash/easygui/properties/FloatPropertyField.java +++ b/src/com/jpexs/decompiler/flash/easygui/properties/FloatPropertyField.java @@ -22,8 +22,8 @@ package com.jpexs.decompiler.flash.easygui.properties; */ public class FloatPropertyField extends AbstractPropertyField { - private PropertyValidationInteface minValidation = null; - private PropertyValidationInteface maxValidation = null; + private PropertyValidationInterface minValidation = null; + private PropertyValidationInterface maxValidation = null; public FloatPropertyField(float value, float min, float max) { super("" + value); @@ -39,7 +39,7 @@ public class FloatPropertyField extends AbstractPropertyField { if (maxValidation != null) { removeValidation(maxValidation); } - maxValidation = new PropertyValidationInteface() { + maxValidation = new PropertyValidationInterface() { @Override public boolean validate(Float value) { return value <= max; @@ -52,7 +52,7 @@ public class FloatPropertyField extends AbstractPropertyField { if (minValidation != null) { removeValidation(minValidation); } - minValidation = new PropertyValidationInteface() { + minValidation = new PropertyValidationInterface() { @Override public boolean validate(Float value) { return value >= min; diff --git a/src/com/jpexs/decompiler/flash/easygui/properties/IntegerPropertyField.java b/src/com/jpexs/decompiler/flash/easygui/properties/IntegerPropertyField.java index c568f2162..39930eec1 100644 --- a/src/com/jpexs/decompiler/flash/easygui/properties/IntegerPropertyField.java +++ b/src/com/jpexs/decompiler/flash/easygui/properties/IntegerPropertyField.java @@ -22,8 +22,8 @@ package com.jpexs.decompiler.flash.easygui.properties; */ public class IntegerPropertyField extends AbstractPropertyField { - private PropertyValidationInteface minValidation = null; - private PropertyValidationInteface maxValidation = null; + private PropertyValidationInterface minValidation = null; + private PropertyValidationInterface maxValidation = null; public IntegerPropertyField(int value, int min, int max) { super("" + value); @@ -40,7 +40,7 @@ public class IntegerPropertyField extends AbstractPropertyField { if (maxValidation != null) { removeValidation(maxValidation); } - maxValidation = new PropertyValidationInteface() { + maxValidation = new PropertyValidationInterface() { @Override public boolean validate(Integer value) { return value <= max; @@ -53,7 +53,7 @@ public class IntegerPropertyField extends AbstractPropertyField { if (minValidation != null) { removeValidation(minValidation); } - minValidation = new PropertyValidationInteface() { + minValidation = new PropertyValidationInterface() { @Override public boolean validate(Integer value) { return value >= min; diff --git a/src/com/jpexs/decompiler/flash/easygui/properties/PropertyValidationInteface.java b/src/com/jpexs/decompiler/flash/easygui/properties/PropertyValidationInterface.java similarity index 94% rename from src/com/jpexs/decompiler/flash/easygui/properties/PropertyValidationInteface.java rename to src/com/jpexs/decompiler/flash/easygui/properties/PropertyValidationInterface.java index f64d7959f..e0f84cea4 100644 --- a/src/com/jpexs/decompiler/flash/easygui/properties/PropertyValidationInteface.java +++ b/src/com/jpexs/decompiler/flash/easygui/properties/PropertyValidationInterface.java @@ -21,6 +21,6 @@ package com.jpexs.decompiler.flash.easygui.properties; * @author JPEXS * @param */ -public interface PropertyValidationInteface { +public interface PropertyValidationInterface { public boolean validate(E value); } diff --git a/src/com/jpexs/decompiler/flash/easygui/properties/TextPropertyField.java b/src/com/jpexs/decompiler/flash/easygui/properties/TextPropertyField.java index b069e5af2..b4746a470 100644 --- a/src/com/jpexs/decompiler/flash/easygui/properties/TextPropertyField.java +++ b/src/com/jpexs/decompiler/flash/easygui/properties/TextPropertyField.java @@ -27,7 +27,7 @@ public class TextPropertyField extends AbstractPropertyField { writeField.setColumns(maxLength); - addValidation(new PropertyValidationInteface(){ + addValidation(new PropertyValidationInterface(){ @Override public boolean validate(String value) { return value.length() <= maxLength; diff --git a/src/com/jpexs/decompiler/flash/easygui/properties/panels/InstancePropertiesPanel.java b/src/com/jpexs/decompiler/flash/easygui/properties/panels/InstancePropertiesPanel.java index f405b218b..4440a4a89 100644 --- a/src/com/jpexs/decompiler/flash/easygui/properties/panels/InstancePropertiesPanel.java +++ b/src/com/jpexs/decompiler/flash/easygui/properties/panels/InstancePropertiesPanel.java @@ -22,7 +22,7 @@ import com.jpexs.decompiler.flash.easygui.EasyTagNameResolver; import com.jpexs.decompiler.flash.easygui.UndoManager; import com.jpexs.decompiler.flash.easygui.properties.FloatPropertyField; import com.jpexs.decompiler.flash.easygui.properties.IntegerPropertyField; -import com.jpexs.decompiler.flash.easygui.properties.PropertyValidationInteface; +import com.jpexs.decompiler.flash.easygui.properties.PropertyValidationInterface; import com.jpexs.decompiler.flash.exporters.commonshape.Matrix; import com.jpexs.decompiler.flash.gui.BoundsChangeListener; import com.jpexs.decompiler.flash.gui.RegistrationPointPosition; @@ -476,7 +476,7 @@ public class InstancePropertiesPanel extends AbstractPropertiesPanel { } }); - PropertyValidationInteface nonZeroFloatValidation = new PropertyValidationInteface() { + PropertyValidationInterface nonZeroFloatValidation = new PropertyValidationInterface() { @Override public boolean validate(Float value) { return value != 0f;