コミットメタ情報

リビジョン6e89cd66790cd7b3ddaa0bcb4c47f008304001f7 (tree)
日時2013-12-18 22:23:02
作者argius <argius.net@gmai...>
コミッターargius

ログメッセージ

[#32628] add new method resetSortState into class ResultSetTable and WindowOutputProcessor call it in method clearResultSetTable

変更サマリ

差分

--- a/src/net/argius/stew/ui/window/ResultSetTable.java
+++ b/src/net/argius/stew/ui/window/ResultSetTable.java
@@ -7,7 +7,6 @@ import static java.awt.event.MouseEvent.MOUSE_PRESSED;
77 import static javax.swing.KeyStroke.getKeyStroke;
88 import static net.argius.stew.ui.window.AnyActionKey.*;
99 import static net.argius.stew.ui.window.ResultSetTable.ActionKey.*;
10-
1110 import java.awt.*;
1211 import java.awt.event.*;
1312 import java.beans.*;
@@ -15,12 +14,10 @@ import java.io.*;
1514 import java.sql.*;
1615 import java.util.*;
1716 import java.util.List;
18-
1917 import javax.swing.*;
2018 import javax.swing.event.*;
2119 import javax.swing.table.*;
2220 import javax.swing.text.*;
23-
2421 import net.argius.stew.*;
2522 import net.argius.stew.io.*;
2623 import net.argius.stew.text.*;
@@ -893,6 +890,11 @@ final class ResultSetTable extends JTable implements AnyActionListener, TextSear
893890 // empty
894891 }
895892
893+ void resetSortState() {
894+ lastSortedIndex = -1;
895+ lastSortedIsReverse = false;
896+ }
897+
896898 static final class TableHeaderTextSearch implements TextSearch {
897899 private ResultSetTable rstable;
898900 private JTableHeader tableHeader;
--- a/src/net/argius/stew/ui/window/WindowOutputProcessor.java
+++ b/src/net/argius/stew/ui/window/WindowOutputProcessor.java
@@ -5,17 +5,14 @@ import static net.argius.stew.Bootstrap.getPropertyAsInt;
55 import static net.argius.stew.ui.window.AnyActionKey.*;
66 import static net.argius.stew.ui.window.Utilities.getImageIcon;
77 import static net.argius.stew.ui.window.Utilities.sleep;
8-
98 import java.awt.*;
109 import java.awt.event.*;
1110 import java.io.*;
1211 import java.sql.*;
1312 import java.util.*;
1413 import java.util.List;
15-
1614 import javax.swing.*;
1715 import javax.swing.table.*;
18-
1916 import net.argius.stew.*;
2017 import net.argius.stew.io.*;
2118 import net.argius.stew.ui.*;
@@ -157,6 +154,7 @@ final class WindowOutputProcessor extends JFrame implements OutputProcessor, Any
157154 resultSetTable.setVisible(false);
158155 resultSetTable.getTableHeader().setVisible(false);
159156 ((DefaultTableModel)resultSetTable.getModel()).setRowCount(0);
157+ resultSetTable.resetSortState();
160158 }
161159
162160 @SuppressWarnings("unused")
旧リポジトリブラウザで表示