|
|
@ -1,5 +1,7 @@ |
|
|
|
package com.fr.design.utils; |
|
|
|
package com.fr.design.utils; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fine.theme.icon.LazyIcon; |
|
|
|
|
|
|
|
import com.fine.theme.utils.FineUIScale; |
|
|
|
import com.fr.common.report.ReportState; |
|
|
|
import com.fr.common.report.ReportState; |
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
import com.fr.design.RestartHelper; |
|
|
|
import com.fr.design.RestartHelper; |
|
|
@ -13,7 +15,6 @@ import com.fr.design.port.DesignerPortContext; |
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
import com.fr.exit.DesignerExiter; |
|
|
|
import com.fr.exit.DesignerExiter; |
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
import com.fr.general.IOUtils; |
|
|
|
|
|
|
|
import com.fr.process.engine.core.CarryMessageEvent; |
|
|
|
import com.fr.process.engine.core.CarryMessageEvent; |
|
|
|
import com.fr.process.engine.core.FineProcessContext; |
|
|
|
import com.fr.process.engine.core.FineProcessContext; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
@ -29,11 +30,12 @@ import javax.swing.event.DocumentEvent; |
|
|
|
import javax.swing.event.DocumentListener; |
|
|
|
import javax.swing.event.DocumentListener; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.Color; |
|
|
|
import java.awt.Color; |
|
|
|
import java.awt.Dimension; |
|
|
|
|
|
|
|
import java.awt.FlowLayout; |
|
|
|
import java.awt.FlowLayout; |
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
import java.awt.event.ActionListener; |
|
|
|
import java.awt.event.ActionListener; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import static com.fine.theme.utils.FineUIScale.scale; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 为的就是能替换 DesignPort.class 实现多开,因此避免编译器常量编译展开优化 |
|
|
|
* 为的就是能替换 DesignPort.class 实现多开,因此避免编译器常量编译展开优化 |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -128,7 +130,7 @@ public class DesignerPort implements XMLReadable, XMLWriter { |
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|
this.setModal(true); |
|
|
|
this.setModal(true); |
|
|
|
this.portFiled = new UITextField(); |
|
|
|
this.portFiled = new UITextField(); |
|
|
|
this.portFiled.setPreferredSize(new Dimension(180, 20)); |
|
|
|
this.portFiled.setPreferredSize(FineUIScale.createScaleDimension(180, 20)); |
|
|
|
this.portFiled.getDocument().addDocumentListener(new DocumentListener() { |
|
|
|
this.portFiled.getDocument().addDocumentListener(new DocumentListener() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void insertUpdate(DocumentEvent e) { |
|
|
|
public void insertUpdate(DocumentEvent e) { |
|
|
@ -147,7 +149,7 @@ public class DesignerPort implements XMLReadable, XMLWriter { |
|
|
|
}); |
|
|
|
}); |
|
|
|
JPanel iconPanel = new JPanel(); |
|
|
|
JPanel iconPanel = new JPanel(); |
|
|
|
UILabel iconLabel = new UILabel(); |
|
|
|
UILabel iconLabel = new UILabel(); |
|
|
|
iconLabel.setIcon(IOUtils.readIcon("com/fr/design/images/edit/edit_typing.png")); |
|
|
|
iconLabel.setIcon(new LazyIcon("edit")); |
|
|
|
iconPanel.add(iconLabel); |
|
|
|
iconPanel.add(iconLabel); |
|
|
|
iconPanel.add(iconLabel); |
|
|
|
iconPanel.add(iconLabel); |
|
|
|
JPanel textPane = FRGUIPaneFactory.createVerticalFlowLayout_Pane(true, FlowLayout.LEADING, 0, 10); |
|
|
|
JPanel textPane = FRGUIPaneFactory.createVerticalFlowLayout_Pane(true, FlowLayout.LEADING, 0, 10); |
|
|
@ -194,7 +196,7 @@ public class DesignerPort implements XMLReadable, XMLWriter { |
|
|
|
this.add(northPane, BorderLayout.NORTH); |
|
|
|
this.add(northPane, BorderLayout.NORTH); |
|
|
|
this.add(centerPane, BorderLayout.CENTER); |
|
|
|
this.add(centerPane, BorderLayout.CENTER); |
|
|
|
this.add(southPane, BorderLayout.SOUTH); |
|
|
|
this.add(southPane, BorderLayout.SOUTH); |
|
|
|
this.setSize(300, 150); |
|
|
|
this.setSize(scale(300), scale(150)); |
|
|
|
this.setTitle(Toolkit.i18nText("Fine-Design_Modify_Designer_Port")); |
|
|
|
this.setTitle(Toolkit.i18nText("Fine-Design_Modify_Designer_Port")); |
|
|
|
this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); |
|
|
|
this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); |
|
|
|
this.setResizable(false); |
|
|
|
this.setResizable(false); |
|
|
|