|
|
|
@ -3,8 +3,6 @@ package com.fr.design.gui.ilist;
|
|
|
|
|
import com.fine.theme.icon.LazyIcon; |
|
|
|
|
import com.fine.theme.utils.FineUIScale; |
|
|
|
|
import com.formdev.flatlaf.ui.FlatUIUtils; |
|
|
|
|
import com.fanruan.config.impl.data.ConnectionConfigProviderFactory; |
|
|
|
|
import com.fr.base.BaseUtils; |
|
|
|
|
import com.fr.data.core.DataCoreUtils; |
|
|
|
|
import com.fr.data.core.db.TableProcedure; |
|
|
|
|
import com.fr.data.core.db.dialect.base.key.check.DataBaseDetail; |
|
|
|
@ -19,7 +17,6 @@ import com.fr.general.ComparatorUtils;
|
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
import com.fr.workspace.server.entity.connection.ConnectionBean; |
|
|
|
|
import com.fr.workspace.server.repository.connection.ConnectionRepository; |
|
|
|
|
|
|
|
|
|
import javax.swing.DefaultListCellRenderer; |
|
|
|
@ -47,9 +44,10 @@ import java.util.concurrent.CancellationException;
|
|
|
|
|
* 表或者视图或者存储过程组成的一个下拉列表 |
|
|
|
|
* |
|
|
|
|
* @author zhou |
|
|
|
|
* @since 2012-3-28下午10:07:34 |
|
|
|
|
* @Created on 2012-3-28下午10:07:34 |
|
|
|
|
* @since 11.0 |
|
|
|
|
*/ |
|
|
|
|
public class TableViewList extends UIList { |
|
|
|
|
public class TableViewList extends JList { |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* |
|
|
|
@ -162,7 +160,7 @@ public class TableViewList extends UIList {
|
|
|
|
|
* august:databaseName是数据库名字,searchFilter是输入的过滤条件,typesFilter是视图、表、 |
|
|
|
|
* 存储过程中的一者或者几者 |
|
|
|
|
* |
|
|
|
|
* @param databaseName |
|
|
|
|
* @param datasource |
|
|
|
|
* @param searchFilter |
|
|
|
|
* @param typesFilter |
|
|
|
|
*/ |
|
|
|
@ -267,7 +265,7 @@ public class TableViewList extends UIList {
|
|
|
|
|
icon = new LazyIcon("store_procedure"); |
|
|
|
|
} |
|
|
|
|
this.setIcon(icon); |
|
|
|
|
|
|
|
|
|
this.setToolTipText(getPreferredSize().width > list.getVisibleRect().width ? this.getText() : null); |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|