Browse Source

编译问题

paid
richie 5 years ago
parent
commit
b3cb4d399c
  1. 21
      src/main/java/com/fr/plugin/db/redis/ui/RedisConnectionPane.java
  2. 13
      src/main/java/com/fr/plugin/db/redis/ui/pool/RedisConnectionPoolConfigPane.java

21
src/main/java/com/fr/plugin/db/redis/ui/RedisConnectionPane.java

@ -1,19 +1,18 @@
package com.fr.plugin.db.redis.ui; package com.fr.plugin.db.redis.ui;
import com.fr.design.border.UITitledBorder; import com.fanruan.api.design.DesignKit;
import com.fanruan.api.design.ui.container.DatabaseConnectionPane; import com.fanruan.api.design.ui.component.UIActionLabel;
import com.fanruan.api.design.ui.container.BasicDialog;
import com.fanruan.api.design.ui.container.DialogActionAdapter;
import com.fanruan.api.design.ui.component.UIPasswordField;
import com.fanruan.api.design.component.UIActionLabel;
import com.fanruan.api.design.ui.component.UILabel;
import com.fanruan.api.design.ui.component.UIIntNumberField; import com.fanruan.api.design.ui.component.UIIntNumberField;
import com.fanruan.api.design.ui.component.UINumberField; import com.fanruan.api.design.ui.component.UILabel;
import com.fanruan.api.design.ui.component.UIPasswordField;
import com.fanruan.api.design.ui.component.UITextField; import com.fanruan.api.design.ui.component.UITextField;
import com.fanruan.api.design.DesignKit; import com.fanruan.api.design.ui.container.BasicDialog;
import com.fanruan.api.design.util.GUICoreKit;
import com.fanruan.api.design.ui.container.DialogActionAdapter;
import com.fanruan.api.design.ui.layout.TableLayoutKit; import com.fanruan.api.design.ui.layout.TableLayoutKit;
import com.fanruan.api.design.util.GUICoreKit; import com.fanruan.api.design.util.GUICoreKit;
import com.fr.design.border.UITitledBorder;
import com.fr.design.data.datapane.connect.DatabaseConnectionPane;
import com.fr.plugin.db.redis.core.RedisDatabaseConnection; import com.fr.plugin.db.redis.core.RedisDatabaseConnection;
import com.fr.plugin.db.redis.core.pool.RedisConnectionPoolConfig; import com.fr.plugin.db.redis.core.pool.RedisConnectionPoolConfig;
import com.fr.plugin.db.redis.core.pool.RedisConnectionProxyConfig; import com.fr.plugin.db.redis.core.pool.RedisConnectionProxyConfig;
@ -28,7 +27,7 @@ import java.awt.event.ActionEvent;
import java.awt.event.ActionListener; import java.awt.event.ActionListener;
public class RedisConnectionPane extends DatabaseConnectionPane<com.fr.plugin.db.redis.core.RedisDatabaseConnection> { public class RedisConnectionPane extends DatabaseConnectionPane<RedisDatabaseConnection> {
private UITextField hostTextField; private UITextField hostTextField;
private UIIntNumberField portNumberField; private UIIntNumberField portNumberField;

13
src/main/java/com/fr/plugin/db/redis/ui/pool/RedisConnectionPoolConfigPane.java

@ -1,13 +1,12 @@
package com.fr.plugin.db.redis.ui.pool; package com.fr.plugin.db.redis.ui.pool;
import com.fanruan.api.design.ui.container.BasicPane; import com.fanruan.api.design.DesignKit;
import com.fanruan.api.layout.TableLayoutKit;
import com.fanruan.api.design.util.GUICoreKit;
import com.fanruan.api.design.ui.component.UICheckBox; import com.fanruan.api.design.ui.component.UICheckBox;
import com.fanruan.api.design.ui.component.UILabel;
import com.fanruan.api.design.ui.component.UIIntNumberField; import com.fanruan.api.design.ui.component.UIIntNumberField;
import com.fanruan.api.design.ui.component.UILabel;
import com.fanruan.api.design.ui.component.UINumberField; import com.fanruan.api.design.ui.component.UINumberField;
import com.fanruan.api.design.DesignKit; import com.fanruan.api.design.ui.container.BasicPane;
import com.fanruan.api.design.ui.layout.TableLayoutKit;
import com.fr.plugin.db.redis.core.pool.RedisConnectionPoolConfig; import com.fr.plugin.db.redis.core.pool.RedisConnectionPoolConfig;
import javax.swing.*; import javax.swing.*;
@ -55,7 +54,7 @@ public class RedisConnectionPoolConfigPane extends BasicPane {
double[] rowSize = new double[]{p, p, p, p, p, p}; double[] rowSize = new double[]{p, p, p, p, p, p};
double[] columnSize = new double[]{p, f}; double[] columnSize = new double[]{p, f};
add(GUICoreKit.createTableLayoutPane(comps, rowSize, columnSize), BorderLayout.CENTER); add(TableLayoutKit.createTableLayoutPane(comps, rowSize, columnSize), BorderLayout.CENTER);
} }
@Override @Override
@ -73,7 +72,7 @@ public class RedisConnectionPoolConfigPane extends BasicPane {
} }
public void update(RedisConnectionPoolConfig config) { public void update(RedisConnectionPoolConfig config) {
config.setMaxTotal((int)maxTotalNumberFiled.getValue()); config.setMaxTotal((int) maxTotalNumberFiled.getValue());
config.setMaxWait((int) maxWaitNumberField.getValue()); config.setMaxWait((int) maxWaitNumberField.getValue());
config.setMaxIdle((int) maxIdleNumberField.getValue()); config.setMaxIdle((int) maxIdleNumberField.getValue());
config.setBlockWhenExhausted(blockWhenExhaustedCheckBox.isSelected()); config.setBlockWhenExhausted(blockWhenExhaustedCheckBox.isSelected());

Loading…
Cancel
Save