From 3c576f19a0a5643436262c358923e97741eb8ee5 Mon Sep 17 00:00:00 2001 From: weisj Date: Tue, 18 Aug 2020 12:45:35 +0200 Subject: [PATCH] Rename CellEditorToggleButton to CellToggleButton --- ...{CellEditorToggleButton.java => CellToggleButton.java} | 2 +- .../darklaf/ui/cell/DarkCellRendererToggleButton.java | 8 ++++---- .../table/renderer/DarkTableCellEditorToggleButton.java | 6 +++--- core/src/test/java/ui/table/TableDemo.java | 2 -- 4 files changed, 8 insertions(+), 10 deletions(-) rename core/src/main/java/com/github/weisj/darklaf/ui/cell/{CellEditorToggleButton.java => CellToggleButton.java} (93%) diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/cell/CellEditorToggleButton.java b/core/src/main/java/com/github/weisj/darklaf/ui/cell/CellToggleButton.java similarity index 93% rename from core/src/main/java/com/github/weisj/darklaf/ui/cell/CellEditorToggleButton.java rename to core/src/main/java/com/github/weisj/darklaf/ui/cell/CellToggleButton.java index d4cacc56..cfbfc47c 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/cell/CellEditorToggleButton.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/cell/CellToggleButton.java @@ -27,4 +27,4 @@ package com.github.weisj.darklaf.ui.cell; /** * @author Jannis Weis */ -public interface CellEditorToggleButton { void setHasFocus(final boolean hasFocus); } +public interface CellToggleButton { void setHasFocus(final boolean hasFocus); } diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/cell/DarkCellRendererToggleButton.java b/core/src/main/java/com/github/weisj/darklaf/ui/cell/DarkCellRendererToggleButton.java index 0800cc57..911b5fe5 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/cell/DarkCellRendererToggleButton.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/cell/DarkCellRendererToggleButton.java @@ -39,7 +39,7 @@ import com.github.weisj.darklaf.ui.tree.DarkTreeCellRendererDelegate; /** * @author Jannis Weis */ -public class DarkCellRendererToggleButton +public class DarkCellRendererToggleButton implements TableCellRenderer, TreeCellRenderer, SwingConstants { private final T toggleButton; @@ -86,7 +86,7 @@ public class DarkCellRendererToggleButton