Extras: removed duplicate enums in text components (issue #117)

This commit is contained in:
Karl Tauber
2020-12-11 14:01:42 +01:00
parent 91bc994532
commit 821efaff40
2 changed files with 2 additions and 6 deletions

View File

@@ -18,6 +18,7 @@ package com.formdev.flatlaf.extras.components;
import static com.formdev.flatlaf.FlatClientProperties.*;
import javax.swing.JFormattedTextField;
import com.formdev.flatlaf.extras.components.FlatTextField.SelectAllOnFocusPolicy;
/**
* Subclass of {@link JFormattedTextField} that provides easy access to FlatLaf specific client properties.
@@ -43,9 +44,6 @@ public class FlatFormattedTextField
}
// NOTE: enum names must be equal to allowed strings
public enum SelectAllOnFocusPolicy { never, once, always };
/**
* Returns whether all text is selected when the text component gains focus.
*/

View File

@@ -18,6 +18,7 @@ package com.formdev.flatlaf.extras.components;
import static com.formdev.flatlaf.FlatClientProperties.*;
import javax.swing.JPasswordField;
import com.formdev.flatlaf.extras.components.FlatTextField.SelectAllOnFocusPolicy;
/**
* Subclass of {@link JPasswordField} that provides easy access to FlatLaf specific client properties.
@@ -43,9 +44,6 @@ public class FlatPasswordField
}
// NOTE: enum names must be equal to allowed strings
public enum SelectAllOnFocusPolicy { never, once, always };
/**
* Returns whether all text is selected when the text component gains focus.
*/