summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/NetshareTable.java22
1 files changed, 0 insertions, 22 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/NetshareTable.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/NetshareTable.java
index e0c185d4..30994eae 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/NetshareTable.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/NetshareTable.java
@@ -1,14 +1,8 @@
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.NetShare;
import org.openslx.bwlp.thrift.iface.NetShareAuth;
import org.openslx.dozmod.gui.configurator.NetshareConfigurator;
-import org.openslx.dozmod.gui.helper.ColorUtil;
import org.openslx.dozmod.thrift.Sorters;
import org.openslx.dozmod.util.FormatHelper;
@@ -23,13 +17,8 @@ public class NetshareTable extends CheckListTable<NetShare> {
public static final ListTableColumn COL_USER = new ListTableColumn("Username");
public static final ListTableColumn COL_PASSWORD = new ListTableColumn("Passwort");
- private final Color invalidColor;
-
public NetshareTable() {
super(COL_NAME, COL_PATH, COL_MOUNT, COL_AUTH, COL_USER, COL_PASSWORD);
- Color fg = UIManager.getColor("Table.foreground");
- Color bg = UIManager.getColor("Table.background");
- invalidColor = ColorUtil.blend(fg, bg, .66f);
}
@Override
@@ -77,17 +66,6 @@ public class NetshareTable extends CheckListTable<NetShare> {
}
@Override
- public Component prepareRenderHook2(Component component, NetShare row,
- ListTableColumn listTableColumn, boolean isSelected) {
- if (row.shareId == 0) {
- component.setForeground(isSelected ? getSelectionForeground() : getForeground());
- } else {
- component.setForeground(invalidColor);
- }
- return component;
- }
-
- @Override
protected boolean isItemCheckable(NetShare item) {
return item.shareId > 0;
}