Browse Source

feat: 针对pr意见进行修改。

master
zjz1993 5 years ago
parent
commit
0b5d9ac685
  1. 23
      src/main/java/com/fanruan/api/design/DesignKit.java
  2. 8
      src/main/java/com/fanruan/api/design/ui/component/BasicPane.java
  3. 4
      src/main/java/com/fanruan/api/design/ui/component/ParameterTableModel.java
  4. 5
      src/main/java/com/fanruan/api/design/ui/component/UIIntNumberField.java
  5. 13
      src/main/java/com/fanruan/api/design/ui/component/UITableEditAction.java
  6. 8
      src/main/java/com/fanruan/api/design/ui/component/UpdateAction.java
  7. 23
      src/main/java/com/fanruan/api/util/GeneralKit.java
  8. 13
      src/main/java/com/fanruan/api/xml/XmlKit.java
  9. 18
      src/main/java/com/fanruan/api/xml/xml/component/XMLFileManager.java

23
src/main/java/com/fanruan/api/design/DesignKit.java

@ -10,10 +10,6 @@ import java.awt.*;
import java.awt.event.ActionEvent; import java.awt.event.ActionEvent;
public class DesignKit { public class DesignKit {
public static class UpdateAction extends com.fr.design.actions.UpdateAction{
@Override
public void actionPerformed(ActionEvent evt) {}
}
/** /**
* 直接预览数据集没有实际值及显示值 * 直接预览数据集没有实际值及显示值
* @param tableData 数据集 * @param tableData 数据集
@ -21,25 +17,6 @@ public class DesignKit {
public static void previewTableData(TableData tableData){ public static void previewTableData(TableData tableData){
PreviewTablePane.previewTableData(tableData, -1, -1); PreviewTablePane.previewTableData(tableData, -1, -1);
} }
public static class ParameterTableModel extends com.fr.design.gui.itableeditorpane.ParameterTableModel{
}
public static class UITableEditAction extends com.fr.design.gui.itableeditorpane.UITableEditAction{
@Override
public void checkEnabled() {
}
@Override
public void actionPerformed(ActionEvent e) {
}
}
public static class BasicPane extends com.fr.design.dialog.BasicPane{
@Override
protected String title4PopupWindow() {
return "";
}
}
/** /**
* 标题布局 * 标题布局
* @param components 组件 * @param components 组件

8
src/main/java/com/fanruan/api/design/ui/component/BasicPane.java

@ -0,0 +1,8 @@
package com.fanruan.api.design.ui.component;
public class BasicPane extends com.fr.design.dialog.BasicPane{
@Override
protected String title4PopupWindow() {
return "";
}
}

4
src/main/java/com/fanruan/api/design/ui/component/ParameterTableModel.java

@ -0,0 +1,4 @@
package com.fanruan.api.design.ui.component;
public class ParameterTableModel extends com.fr.design.gui.itableeditorpane.ParameterTableModel{
}

5
src/main/java/com/fanruan/api/design/ui/component/UIIntNumberField.java

@ -0,0 +1,5 @@
package com.fanruan.api.design.ui.component;
public class UIIntNumberField extends com.fr.design.gui.itextfield.UIIntNumberField{
}

13
src/main/java/com/fanruan/api/design/ui/component/UITableEditAction.java

@ -0,0 +1,13 @@
package com.fanruan.api.design.ui.component;
import java.awt.event.ActionEvent;
public class UITableEditAction extends com.fr.design.gui.itableeditorpane.UITableEditAction{
@Override
public void checkEnabled() {
}
@Override
public void actionPerformed(ActionEvent e) {
}
}

8
src/main/java/com/fanruan/api/design/ui/component/UpdateAction.java

@ -0,0 +1,8 @@
package com.fanruan.api.design.ui.component;
import java.awt.event.ActionEvent;
public class UpdateAction extends com.fr.design.actions.UpdateAction{
@Override
public void actionPerformed(ActionEvent evt) {}
}

23
src/main/java/com/fanruan/api/util/GeneralKit.java

@ -15,29 +15,6 @@ import java.util.Map;
* Created by richie on 2019-08-09 * Created by richie on 2019-08-09
*/ */
public class GeneralKit { public class GeneralKit {
/**
* 返回多个属性合并计算的哈希值
* @param args 对象列表
* @return 哈希值
*/
public static int hashCode(Object... args) {
return Objects.hashCode(args);
}
/**
* 判断两个对象是否相等
* @param source 对象1
* @param des 对象2
* @return 如果两个对象相等则返回true否则返回false
*/
public static boolean equals(Object source, Object des) {
if (source == null && des == null) {
return true;
} else if (source == null) {
return false;
} else {
return source!=null && source.equals(des);
}
}
/** /**
* 返回系统的首选MAC地址 * 返回系统的首选MAC地址
* *

13
src/main/java/com/fanruan/api/xml/XmlKit.java

@ -14,19 +14,6 @@ public class XmlKit {
* @param inputStream xml输入流 * @param inputStream xml输入流
* *
*/ */
public static class XMLFileManager extends com.fr.file.XMLFileManager {
@Override
public String fileName() {
return "";
}
@Override
public void writeXML(XMLPrintWriter writer) {
}
@Override
public void readXML(XMLableReader reader) {
}
}
public static void readInputStreamXML(XMLReadable xmlReadable, InputStream inputStream) throws Exception { public static void readInputStreamXML(XMLReadable xmlReadable, InputStream inputStream) throws Exception {
XMLTools.readInputStreamXML(xmlReadable, inputStream); XMLTools.readInputStreamXML(xmlReadable, inputStream);
} }

18
src/main/java/com/fanruan/api/xml/xml/component/XMLFileManager.java

@ -0,0 +1,18 @@
package com.fanruan.api.xml.xml.component;
import com.fr.stable.xml.XMLPrintWriter;
import com.fr.stable.xml.XMLableReader;
public class XMLFileManager extends com.fr.file.XMLFileManager {
@Override
public String fileName() {
return "";
}
@Override
public void writeXML(XMLPrintWriter writer) {
}
@Override
public void readXML(XMLableReader reader) {
}
}
Loading…
Cancel
Save