summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2019-04-04 16:15:27 +0200
committerJonathan Bauer2019-04-04 16:15:27 +0200
commite123b93443332fea86d2e548aeb2b6d2e54f592b (patch)
treee4c029062ff2c4c62aa67b641974b8ffc268e7c9
parentRevert "[client] show predefined shares in a light gray" (diff)
downloadtutor-module-e123b93443332fea86d2e548aeb2b6d2e54f592b.tar.gz
tutor-module-e123b93443332fea86d2e548aeb2b6d2e54f592b.tar.xz
tutor-module-e123b93443332fea86d2e548aeb2b6d2e54f592b.zip
[client] ldapfilter: remove grey text for predef
caused some confusion: one could think they were not usable
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/LectureLdapFilterTable.java22
1 files changed, 0 insertions, 22 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/LectureLdapFilterTable.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/LectureLdapFilterTable.java
index 70d0291e..eb7b71dc 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/LectureLdapFilterTable.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/LectureLdapFilterTable.java
@@ -1,12 +1,6 @@
package org.openslx.dozmod.gui.control.table;
-import java.awt.Color;
-import java.awt.Component;
-
-import javax.swing.UIManager;
-
import org.openslx.bwlp.thrift.iface.LdapFilter;
-import org.openslx.dozmod.gui.helper.ColorUtil;
@SuppressWarnings("serial")
public class LectureLdapFilterTable extends CheckListTable<LdapFilter> {
@@ -15,13 +9,8 @@ public class LectureLdapFilterTable extends CheckListTable<LdapFilter> {
public static final ListTableColumn COL_ATTRIBUTE = new ListTableColumn("Attribut");
public static final ListTableColumn COL_VALUE = new ListTableColumn("Wert");
- private final Color invalidColor;
-
public LectureLdapFilterTable() {
super(COL_TITLE, COL_ATTRIBUTE, COL_VALUE);
- Color fg = UIManager.getColor("Table.foreground");
- Color bg = UIManager.getColor("Table.background");
- invalidColor = ColorUtil.blend(fg, bg, .66f);
}
@Override
@@ -37,17 +26,6 @@ public class LectureLdapFilterTable extends CheckListTable<LdapFilter> {
return item.value;
throw new IndexOutOfBoundsException();
}
-
- @Override
- public Component prepareRenderHook2(Component component, LdapFilter row,
- ListTableColumn listTableColumn, boolean isSelected) {
- if (row.filterId == 0) {
- component.setForeground(isSelected ? getSelectionForeground() : getForeground());
- } else {
- component.setForeground(invalidColor);
- }
- return component;
- }
@Override
protected boolean isItemCheckable(LdapFilter item) {