summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgeronimo <geronimo013@gmx.de>2012-08-16 17:10:33 (GMT)
committergeronimo <geronimo013@gmx.de>2012-08-16 17:10:33 (GMT)
commit9281227e493f7970821aa0065aeff002f29d32f3 (patch)
tree86c66b688a2b24fe960a66a56a256c62a4cd2bb7
parent301f77acdd559f0a5acb5d6750e025c4bd195b82 (diff)
downloadcmp-9281227e493f7970821aa0065aeff002f29d32f3.tar.gz
cmp-9281227e493f7970821aa0065aeff002f29d32f3.tar.bz2
disabled dragging for tabbed pane of config dialog
-rw-r--r--cmpcj/src/de/schwarzrot/control/config/ConfigDialog.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmpcj/src/de/schwarzrot/control/config/ConfigDialog.java b/cmpcj/src/de/schwarzrot/control/config/ConfigDialog.java
index 923a8c9..32bd808 100644
--- a/cmpcj/src/de/schwarzrot/control/config/ConfigDialog.java
+++ b/cmpcj/src/de/schwarzrot/control/config/ConfigDialog.java
@@ -43,6 +43,8 @@ import javax.swing.ListSelectionModel;
import bibliothek.gui.dock.common.CControl;
import bibliothek.gui.dock.common.CGrid;
import bibliothek.gui.dock.common.theme.ThemeMap;
+import bibliothek.gui.dock.control.relocator.DockRelocatorEvent;
+import bibliothek.gui.dock.control.relocator.VetoableDockRelocatorAdapter;
import bibliothek.gui.dock.util.WindowProvider;
import bibliothek.gui.dock.util.WindowProviderListener;
import ca.odell.glazedlists.BasicEventList;
@@ -61,6 +63,12 @@ import de.schwarzrot.media.domain.PlayerDefinition;
public class ConfigDialog extends AbstractDialog implements WindowProvider {
private static final long serialVersionUID = 713L;
+ private class TabbedVetoableDockRelocatorListener extends VetoableDockRelocatorAdapter {
+ @Override
+ public void grabbing(DockRelocatorEvent event) {
+ event.forbid();
+ }
+ }
public ConfigDialog(Window parent) {
@@ -94,6 +102,8 @@ public class ConfigDialog extends AbstractDialog implements WindowProvider {
CGrid grid = new CGrid(docking);
docking.setTheme(ThemeMap.KEY_ECLIPSE_THEME);
+ docking.getController().getRelocator()
+ .addVetoableDockRelocatorListener(new TabbedVetoableDockRelocatorListener());
BasicDockable servers = new BasicDockable("servers", msgBundle.getMessage(getClass().getSimpleName()
+ ".servers"), createServerTable());
BasicDockable players = new BasicDockable("players", msgBundle.getMessage(getClass().getSimpleName()