Browse Source

Made KEY_PREFIX protected.

pull/97/head
weisj 5 years ago
parent
commit
f524316265
  1. 2
      core/src/main/java/com/github/weisj/darklaf/ui/button/DarkButtonUI.java
  2. 2
      core/src/main/java/com/github/weisj/darklaf/ui/button/DarkToggleButtonUI.java
  3. 2
      core/src/main/java/com/github/weisj/darklaf/ui/checkbox/DarkCheckBoxMenuItemUI.java
  4. 2
      core/src/main/java/com/github/weisj/darklaf/ui/combobox/DarkComboBoxUI.java
  5. 2
      core/src/main/java/com/github/weisj/darklaf/ui/list/DarkListUI.java
  6. 2
      core/src/main/java/com/github/weisj/darklaf/ui/progressbar/DarkProgressBarUI.java
  7. 2
      core/src/main/java/com/github/weisj/darklaf/ui/radiobutton/DarkRadioButtonMenuItemUI.java
  8. 2
      core/src/main/java/com/github/weisj/darklaf/ui/rootpane/DarkRootPaneUI.java
  9. 2
      core/src/main/java/com/github/weisj/darklaf/ui/scrollpane/DarkScrollBarUI.java
  10. 2
      core/src/main/java/com/github/weisj/darklaf/ui/slider/DarkSliderUI.java
  11. 2
      core/src/main/java/com/github/weisj/darklaf/ui/spinner/DarkSpinnerUI.java
  12. 2
      core/src/main/java/com/github/weisj/darklaf/ui/splitpane/DarkSplitPaneUI.java
  13. 2
      core/src/main/java/com/github/weisj/darklaf/ui/tabbedpane/DarkTabbedPaneUI.java
  14. 2
      core/src/main/java/com/github/weisj/darklaf/ui/table/DarkTableUI.java
  15. 2
      core/src/main/java/com/github/weisj/darklaf/ui/text/DarkPasswordFieldUI.java
  16. 2
      core/src/main/java/com/github/weisj/darklaf/ui/text/DarkTextFieldUI.java
  17. 2
      core/src/main/java/com/github/weisj/darklaf/ui/text/DarkTextUI.java
  18. 2
      core/src/main/java/com/github/weisj/darklaf/ui/toolbar/DarkToolBarUI.java
  19. 2
      core/src/main/java/com/github/weisj/darklaf/ui/tooltip/DarkTooltipUI.java
  20. 2
      core/src/main/java/com/github/weisj/darklaf/ui/tree/DarkTreeUI.java

2
core/src/main/java/com/github/weisj/darklaf/ui/button/DarkButtonUI.java

@ -45,7 +45,7 @@ import java.beans.PropertyChangeListener;
*/ */
public class DarkButtonUI extends BasicButtonUI implements PropertyChangeListener { public class DarkButtonUI extends BasicButtonUI implements PropertyChangeListener {
public static final String KEY_PREFIX = "JButton."; protected static final String KEY_PREFIX = "JButton.";
public static final String KEY_VARIANT = KEY_PREFIX + "variant"; public static final String KEY_VARIANT = KEY_PREFIX + "variant";
public static final String KEY_HOVER_COLOR = KEY_PREFIX + "shadow.hover"; public static final String KEY_HOVER_COLOR = KEY_PREFIX + "shadow.hover";
public static final String KEY_CLICK_COLOR = KEY_PREFIX + "shadow.click"; public static final String KEY_CLICK_COLOR = KEY_PREFIX + "shadow.click";

2
core/src/main/java/com/github/weisj/darklaf/ui/button/DarkToggleButtonUI.java

@ -40,7 +40,7 @@ import java.beans.PropertyChangeListener;
*/ */
public class DarkToggleButtonUI extends DarkButtonUI { public class DarkToggleButtonUI extends DarkButtonUI {
public static final String KEY_PREFIX = "JToggleButton."; protected static final String KEY_PREFIX = "JToggleButton.";
public static final String KEY_VARIANT = KEY_PREFIX + "variant"; public static final String KEY_VARIANT = KEY_PREFIX + "variant";
public static final String KEY_IS_TREE_EDITOR = KEY_PREFIX + "isTreeCellEditor"; public static final String KEY_IS_TREE_EDITOR = KEY_PREFIX + "isTreeCellEditor";
public static final String KEY_IS_TREE_RENDER = KEY_PREFIX + "isTreeCellRenderer"; public static final String KEY_IS_TREE_RENDER = KEY_PREFIX + "isTreeCellRenderer";

2
core/src/main/java/com/github/weisj/darklaf/ui/checkbox/DarkCheckBoxMenuItemUI.java

@ -39,7 +39,7 @@ import java.awt.*;
*/ */
public class DarkCheckBoxMenuItemUI extends DarkMenuItemUIBase { public class DarkCheckBoxMenuItemUI extends DarkMenuItemUIBase {
public static final String KEY_PREFIX = "CheckBoxMenuItem"; protected static final String KEY_PREFIX = "CheckBoxMenuItem";
public static final String KEY_NO_NOT_CLOSE_ON_CLICK = KEY_PREFIX + ".doNotCloseOnMouseClick"; public static final String KEY_NO_NOT_CLOSE_ON_CLICK = KEY_PREFIX + ".doNotCloseOnMouseClick";
private final MouseClickListener clickListener = e -> SwingUtilities.invokeLater(() -> { private final MouseClickListener clickListener = e -> SwingUtilities.invokeLater(() -> {
if (menuItem != null) menuItem.setArmed(true); if (menuItem != null) menuItem.setArmed(true);

2
core/src/main/java/com/github/weisj/darklaf/ui/combobox/DarkComboBoxUI.java

@ -48,7 +48,7 @@ import java.beans.PropertyChangeListener;
*/ */
public class DarkComboBoxUI extends BasicComboBoxUI implements Border, PropertyChangeListener { public class DarkComboBoxUI extends BasicComboBoxUI implements Border, PropertyChangeListener {
public static final String KEY_PREFIX = "JComboBox."; protected static final String KEY_PREFIX = "JComboBox.";
public static final String KEY_IS_TREE_EDITOR = KEY_PREFIX + "isTreeCellEditor"; public static final String KEY_IS_TREE_EDITOR = KEY_PREFIX + "isTreeCellEditor";
public static final String KEY_IS_TABLE_EDITOR = KEY_PREFIX + "isTableCellEditor"; public static final String KEY_IS_TABLE_EDITOR = KEY_PREFIX + "isTableCellEditor";

2
core/src/main/java/com/github/weisj/darklaf/ui/list/DarkListUI.java

@ -36,7 +36,7 @@ import java.beans.PropertyChangeEvent;
*/ */
public class DarkListUI extends DarkListUIBridge { public class DarkListUI extends DarkListUIBridge {
public static final String KEY_PREFIX = "JList."; protected static final String KEY_PREFIX = "JList.";
public static final String KEY_ALTERNATE_ROW_COLOR = KEY_PREFIX + "alternateRowColor"; public static final String KEY_ALTERNATE_ROW_COLOR = KEY_PREFIX + "alternateRowColor";
public static final String KEY_RENDER_BOOLEAN_AS_CHECKBOX = KEY_PREFIX + "renderBooleanAsCheckBox"; public static final String KEY_RENDER_BOOLEAN_AS_CHECKBOX = KEY_PREFIX + "renderBooleanAsCheckBox";
public static final String KEY_BOOLEAN_RENDER_TYPE = KEY_PREFIX + "booleanRenderType"; public static final String KEY_BOOLEAN_RENDER_TYPE = KEY_PREFIX + "booleanRenderType";

2
core/src/main/java/com/github/weisj/darklaf/ui/progressbar/DarkProgressBarUI.java

@ -44,7 +44,7 @@ import java.beans.PropertyChangeListener;
*/ */
public class DarkProgressBarUI extends BasicProgressBarUI implements PropertyChangeListener { public class DarkProgressBarUI extends BasicProgressBarUI implements PropertyChangeListener {
public static final String KEY_PREFIX = "JProgressBar."; protected static final String KEY_PREFIX = "JProgressBar.";
public static final String KEY_FAILED = KEY_PREFIX + "failed"; public static final String KEY_FAILED = KEY_PREFIX + "failed";
public static final String KEY_PASSED = KEY_PREFIX + "passed"; public static final String KEY_PASSED = KEY_PREFIX + "passed";

2
core/src/main/java/com/github/weisj/darklaf/ui/radiobutton/DarkRadioButtonMenuItemUI.java

@ -36,7 +36,7 @@ import java.awt.*;
*/ */
public class DarkRadioButtonMenuItemUI extends DarkMenuItemUIBase { public class DarkRadioButtonMenuItemUI extends DarkMenuItemUIBase {
public static final String KEY_PREFIX = "RadioButtonMenuItem"; protected static final String KEY_PREFIX = "RadioButtonMenuItem";
public static final String KEY_NO_NOT_CLOSE_ON_CLICK = KEY_PREFIX + ".doNotCloseOnMouseClick"; public static final String KEY_NO_NOT_CLOSE_ON_CLICK = KEY_PREFIX + ".doNotCloseOnMouseClick";
private final MouseClickListener clickListener = e -> SwingUtilities.invokeLater(() -> { private final MouseClickListener clickListener = e -> SwingUtilities.invokeLater(() -> {
if (menuItem != null) menuItem.setArmed(true); if (menuItem != null) menuItem.setArmed(true);

2
core/src/main/java/com/github/weisj/darklaf/ui/rootpane/DarkRootPaneUI.java

@ -46,7 +46,7 @@ import java.beans.PropertyChangeEvent;
*/ */
public class DarkRootPaneUI extends BasicRootPaneUI implements HierarchyListener { public class DarkRootPaneUI extends BasicRootPaneUI implements HierarchyListener {
public static final String KEY_PREFIX = "JRootPane."; protected static final String KEY_PREFIX = "JRootPane.";
public static final String KEY_IS_POPUP = KEY_PREFIX + "isPopup"; public static final String KEY_IS_POPUP = KEY_PREFIX + "isPopup";
public static final String KEY_IS_TOOLTIP = KEY_PREFIX + "isToolTip"; public static final String KEY_IS_TOOLTIP = KEY_PREFIX + "isToolTip";
private Window window; private Window window;

2
core/src/main/java/com/github/weisj/darklaf/ui/scrollpane/DarkScrollBarUI.java

@ -41,7 +41,7 @@ import java.awt.event.*;
*/ */
public class DarkScrollBarUI extends BasicScrollBarUI { public class DarkScrollBarUI extends BasicScrollBarUI {
public static final String KEY_PREFIX = "JScrollBar."; protected static final String KEY_PREFIX = "JScrollBar.";
public static final String KEY_SCROLL_PANE_PARENT = KEY_PREFIX + "scrollPaneParent"; public static final String KEY_SCROLL_PANE_PARENT = KEY_PREFIX + "scrollPaneParent";
public static final String KEY_FAST_WHEEL_SCROLLING = KEY_PREFIX + "fastWheelScrolling"; public static final String KEY_FAST_WHEEL_SCROLLING = KEY_PREFIX + "fastWheelScrolling";
public static final String KEY_THIN = KEY_PREFIX + "thin"; public static final String KEY_THIN = KEY_PREFIX + "thin";

2
core/src/main/java/com/github/weisj/darklaf/ui/slider/DarkSliderUI.java

@ -44,7 +44,7 @@ import java.beans.PropertyChangeListener;
*/ */
public class DarkSliderUI extends BasicSliderUI implements PropertyChangeListener { public class DarkSliderUI extends BasicSliderUI implements PropertyChangeListener {
public static final String KEY_PREFIX = "JSlider."; protected static final String KEY_PREFIX = "JSlider.";
public static final String KEY_THUMB_ARROW_SHAPE = KEY_PREFIX + "paintThumbArrowShape"; public static final String KEY_THUMB_ARROW_SHAPE = KEY_PREFIX + "paintThumbArrowShape";
public static final String KEY_SHOW_VOLUME_ICON = KEY_PREFIX + "volume.showIcon"; public static final String KEY_SHOW_VOLUME_ICON = KEY_PREFIX + "volume.showIcon";
public static final String KEY_VARIANT = KEY_PREFIX + "variant"; public static final String KEY_VARIANT = KEY_PREFIX + "variant";

2
core/src/main/java/com/github/weisj/darklaf/ui/spinner/DarkSpinnerUI.java

@ -48,7 +48,7 @@ import java.beans.PropertyChangeListener;
*/ */
public class DarkSpinnerUI extends BasicSpinnerUI implements PropertyChangeListener { public class DarkSpinnerUI extends BasicSpinnerUI implements PropertyChangeListener {
public static final String KEY_PREFIX = "JSpinner."; protected static final String KEY_PREFIX = "JSpinner.";
public static final String KEY_VARIANT = KEY_PREFIX + "variant"; public static final String KEY_VARIANT = KEY_PREFIX + "variant";
public static final String KEY_IS_TREE_EDITOR = KEY_PREFIX + "isTreeCellEditor"; public static final String KEY_IS_TREE_EDITOR = KEY_PREFIX + "isTreeCellEditor";
public static final String KEY_IS_TREE_RENDER = KEY_PREFIX + "isTreeCellRenderer"; public static final String KEY_IS_TREE_RENDER = KEY_PREFIX + "isTreeCellRenderer";

2
core/src/main/java/com/github/weisj/darklaf/ui/splitpane/DarkSplitPaneUI.java

@ -39,7 +39,7 @@ import java.beans.PropertyChangeListener;
*/ */
public class DarkSplitPaneUI extends BasicSplitPaneUI implements PropertyChangeListener { public class DarkSplitPaneUI extends BasicSplitPaneUI implements PropertyChangeListener {
public static final String KEY_PREFIX = "JSplitPane."; protected static final String KEY_PREFIX = "JSplitPane.";
public static final String KEY_STYLE = KEY_PREFIX + "style"; public static final String KEY_STYLE = KEY_PREFIX + "style";
public static final String STYLE_GRIP = "grip"; public static final String STYLE_GRIP = "grip";
public static final String STYLE_LINE = "line"; public static final String STYLE_LINE = "line";

2
core/src/main/java/com/github/weisj/darklaf/ui/tabbedpane/DarkTabbedPaneUI.java

@ -44,7 +44,7 @@ import java.util.function.Consumer;
*/ */
public class DarkTabbedPaneUI extends DarkTabbedPaneUIBridge { public class DarkTabbedPaneUI extends DarkTabbedPaneUIBridge {
public static final String KEY_PREFIX = "JTabbedPane."; protected static final String KEY_PREFIX = "JTabbedPane.";
public static final String KEY_DND = KEY_PREFIX + "dndEnabled"; public static final String KEY_DND = KEY_PREFIX + "dndEnabled";
public static final String KEY_NORTH_COMP = KEY_PREFIX + "northComponent"; public static final String KEY_NORTH_COMP = KEY_PREFIX + "northComponent";
public static final String KEY_WEST_COMP = KEY_PREFIX + "westComponent"; public static final String KEY_WEST_COMP = KEY_PREFIX + "westComponent";

2
core/src/main/java/com/github/weisj/darklaf/ui/table/DarkTableUI.java

@ -48,7 +48,7 @@ import java.util.function.Supplier;
*/ */
public class DarkTableUI extends DarkTableUIBridge { public class DarkTableUI extends DarkTableUIBridge {
public static final String KEY_PREFIX = "JTable."; protected static final String KEY_PREFIX = "JTable.";
public static final String KEY_ALTERNATE_ROW_COLOR = KEY_PREFIX + "alternateRowColor"; public static final String KEY_ALTERNATE_ROW_COLOR = KEY_PREFIX + "alternateRowColor";
public static final String KEY_RENDER_BOOLEAN_AS_CHECKBOX = KEY_PREFIX + "renderBooleanAsCheckBox"; public static final String KEY_RENDER_BOOLEAN_AS_CHECKBOX = KEY_PREFIX + "renderBooleanAsCheckBox";
public static final String KEY_BOOLEAN_RENDER_TYPE = KEY_PREFIX + "booleanRenderType"; public static final String KEY_BOOLEAN_RENDER_TYPE = KEY_PREFIX + "booleanRenderType";

2
core/src/main/java/com/github/weisj/darklaf/ui/text/DarkPasswordFieldUI.java

@ -42,7 +42,7 @@ import java.util.Arrays;
*/ */
public class DarkPasswordFieldUI extends DarkPasswordFieldUIBridge { public class DarkPasswordFieldUI extends DarkPasswordFieldUIBridge {
public static final String KEY_PREFIX = "JPasswordField."; protected static final String KEY_PREFIX = "JPasswordField.";
public static final String KEY_SHOW_VIEW_BUTTON = "JPasswordField.showViewIcon"; public static final String KEY_SHOW_VIEW_BUTTON = "JPasswordField.showViewIcon";
protected Icon show; protected Icon show;
protected Icon showPressed; protected Icon showPressed;

2
core/src/main/java/com/github/weisj/darklaf/ui/text/DarkTextFieldUI.java

@ -45,7 +45,7 @@ import java.beans.PropertyChangeListener;
*/ */
public class DarkTextFieldUI extends DarkTextFieldUIBridge implements PropertyChangeListener { public class DarkTextFieldUI extends DarkTextFieldUIBridge implements PropertyChangeListener {
public static final String KEY_PREFIX = "JTextField."; protected static final String KEY_PREFIX = "JTextField.";
public static final String KEY_VARIANT = KEY_PREFIX + "variant"; public static final String KEY_VARIANT = KEY_PREFIX + "variant";
public static final String KEY_KEEP_SELECTION_ON_FOCUS_LOST = KEY_PREFIX + "keepSelectionOnFocusLost"; public static final String KEY_KEEP_SELECTION_ON_FOCUS_LOST = KEY_PREFIX + "keepSelectionOnFocusLost";
public static final String KEY_FIND_POPUP = KEY_PREFIX + "Search.FindPopup"; public static final String KEY_FIND_POPUP = KEY_PREFIX + "Search.FindPopup";

2
core/src/main/java/com/github/weisj/darklaf/ui/text/DarkTextUI.java

@ -50,7 +50,7 @@ import java.util.Set;
*/ */
public abstract class DarkTextUI extends BasicTextUI implements PropertyChangeListener { public abstract class DarkTextUI extends BasicTextUI implements PropertyChangeListener {
public static final String KEY_PREFIX = "JTextComponent."; protected static final String KEY_PREFIX = "JTextComponent.";
public static final String KEY_ROUNDED_SELECTION = KEY_PREFIX + "roundedSelection"; public static final String KEY_ROUNDED_SELECTION = KEY_PREFIX + "roundedSelection";
public static final String KEY_HAS_ERROR = KEY_PREFIX + "hasError"; public static final String KEY_HAS_ERROR = KEY_PREFIX + "hasError";
public static final String KEY_IS_CELL_EDITOR = KEY_PREFIX + "cellEditor"; public static final String KEY_IS_CELL_EDITOR = KEY_PREFIX + "cellEditor";

2
core/src/main/java/com/github/weisj/darklaf/ui/toolbar/DarkToolBarUI.java

@ -38,7 +38,7 @@ import java.awt.event.WindowEvent;
*/ */
public class DarkToolBarUI extends DarkToolBarUIBridge { public class DarkToolBarUI extends DarkToolBarUIBridge {
public static final String KEY_PREFIX = "JToolBar."; protected static final String KEY_PREFIX = "JToolBar.";
public static final String KEY_USE_TOOL_BAR_BACKGROUND = KEY_PREFIX + "drag.useToolbarBackground"; public static final String KEY_USE_TOOL_BAR_BACKGROUND = KEY_PREFIX + "drag.useToolbarBackground";
private static final Robot robot = createRobot(); private static final Robot robot = createRobot();

2
core/src/main/java/com/github/weisj/darklaf/ui/tooltip/DarkTooltipUI.java

@ -45,7 +45,7 @@ import java.beans.PropertyChangeListener;
*/ */
public class DarkTooltipUI extends BasicToolTipUI implements PropertyChangeListener, HierarchyListener { public class DarkTooltipUI extends BasicToolTipUI implements PropertyChangeListener, HierarchyListener {
public static final String KEY_PREFIX = "JToolTip."; protected static final String KEY_PREFIX = "JToolTip.";
public static final String KEY_STYLE = KEY_PREFIX + "style"; public static final String KEY_STYLE = KEY_PREFIX + "style";
public static final String KEY_INSETS = KEY_PREFIX + "insets"; public static final String KEY_INSETS = KEY_PREFIX + "insets";
public static final String KEY_POINTER_LOCATION = KEY_PREFIX + "pointerLocation"; public static final String KEY_POINTER_LOCATION = KEY_PREFIX + "pointerLocation";

2
core/src/main/java/com/github/weisj/darklaf/ui/tree/DarkTreeUI.java

@ -47,7 +47,7 @@ import java.util.Enumeration;
*/ */
public class DarkTreeUI extends BasicTreeUI implements PropertyChangeListener { public class DarkTreeUI extends BasicTreeUI implements PropertyChangeListener {
public static final String KEY_PREFIX = "JTree."; protected static final String KEY_PREFIX = "JTree.";
public static final String KEY_TREE_TABLE_TREE = KEY_PREFIX + "treeTableTree"; public static final String KEY_TREE_TABLE_TREE = KEY_PREFIX + "treeTableTree";
public static final String KEY_ALTERNATE_ROW_COLOR = KEY_PREFIX + "alternateRowColor"; public static final String KEY_ALTERNATE_ROW_COLOR = KEY_PREFIX + "alternateRowColor";
public static final String KEY_RENDER_BOOLEAN_AS_CHECKBOX = KEY_PREFIX + "renderBooleanAsCheckBox"; public static final String KEY_RENDER_BOOLEAN_AS_CHECKBOX = KEY_PREFIX + "renderBooleanAsCheckBox";

Loading…
Cancel
Save