|
|
|
@ -1,27 +1,33 @@
|
|
|
|
|
package com.fr.design.data.datapane.connect; |
|
|
|
|
|
|
|
|
|
import com.fr.base.BaseUtils; |
|
|
|
|
import com.fr.data.core.db.TableProcedure; |
|
|
|
|
import com.fr.data.impl.AbstractDatabaseConnection; |
|
|
|
|
import com.fr.data.impl.Connection; |
|
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
|
import com.fr.data.core.db.TableProcedure; |
|
|
|
|
import com.fr.design.border.UIRoundedBorder; |
|
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
|
import com.fr.design.dialog.BasicPane; |
|
|
|
|
import com.fr.design.gui.icheckbox.UICheckBox; |
|
|
|
|
import com.fr.design.gui.icontainer.UIScrollPane; |
|
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
|
import com.fr.design.gui.itextfield.UITextField; |
|
|
|
|
import com.fr.design.gui.ilist.TableViewList; |
|
|
|
|
import com.fr.design.gui.itextfield.UITextField; |
|
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
import com.fr.design.dialog.BasicPane; |
|
|
|
|
import com.fr.general.GeneralContext; |
|
|
|
|
|
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
|
import javax.swing.JPanel; |
|
|
|
|
import javax.swing.ToolTipManager; |
|
|
|
|
import javax.swing.event.DocumentEvent; |
|
|
|
|
import javax.swing.event.DocumentListener; |
|
|
|
|
import java.awt.*; |
|
|
|
|
import java.awt.event.*; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
import java.awt.Dimension; |
|
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
|
import java.awt.event.ActionListener; |
|
|
|
|
import java.awt.event.ItemListener; |
|
|
|
|
import java.awt.event.MouseAdapter; |
|
|
|
|
import java.awt.event.MouseEvent; |
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -48,10 +54,11 @@ public class ConnectionTableProcedurePane extends BasicPane {
|
|
|
|
|
filter(connection, conName, nameList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
protected void refreshItems() { |
|
|
|
|
super.refreshItems(); |
|
|
|
|
if (tableViewList != null) { |
|
|
|
|
search(); |
|
|
|
|
searchForRefresh(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
@ -190,13 +197,22 @@ public class ConnectionTableProcedurePane extends BasicPane {
|
|
|
|
|
tableViewList.populate(selectedObj, searchField.getText().trim(), types); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void searchForRefresh() { |
|
|
|
|
String databaseName = connectionComboBox.getSelectedItem(); |
|
|
|
|
if (databaseName != null) { |
|
|
|
|
tableViewList.clearCache(databaseName); |
|
|
|
|
} else { |
|
|
|
|
FineLoggerFactory.getLogger().warn("database name is null"); |
|
|
|
|
} |
|
|
|
|
search(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
protected String title4PopupWindow() { |
|
|
|
|
return "Connection"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* |
|
|
|
|
* @param l |
|
|
|
|
*/ |
|
|
|
|
public void addDoubleClickListener(DoubleClickSelectedNodeOnTreeListener l) { |
|
|
|
|