|
|
|
@ -9,19 +9,10 @@ import com.fr.design.layout.FRGUIPaneFactory;
|
|
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
|
import com.fr.design.menu.ShortCut; |
|
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
|
import com.fr.design.utils.gui.UIComponentUtils; |
|
|
|
|
import com.fr.design.widget.FRWidgetFactory; |
|
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
|
|
import com.fr.stable.os.OperatingSystem; |
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
|
import javax.swing.JComponent; |
|
|
|
|
import javax.swing.JDialog; |
|
|
|
|
import javax.swing.JOptionPane; |
|
|
|
|
import javax.swing.JPanel; |
|
|
|
|
import javax.swing.JSplitPane; |
|
|
|
|
import javax.swing.border.EmptyBorder; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
import java.awt.Color; |
|
|
|
|
import java.awt.Cursor; |
|
|
|
@ -35,6 +26,14 @@ import java.awt.Point;
|
|
|
|
|
import java.awt.Rectangle; |
|
|
|
|
import java.awt.Toolkit; |
|
|
|
|
import java.awt.Window; |
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
|
import javax.swing.JComponent; |
|
|
|
|
import javax.swing.JDialog; |
|
|
|
|
import javax.swing.JOptionPane; |
|
|
|
|
import javax.swing.JPanel; |
|
|
|
|
import javax.swing.JSplitPane; |
|
|
|
|
import javax.swing.border.EmptyBorder; |
|
|
|
|
|
|
|
|
|
import java.awt.event.MouseAdapter; |
|
|
|
|
import java.awt.event.MouseEvent; |
|
|
|
|
import java.awt.event.MouseListener; |
|
|
|
@ -73,7 +72,6 @@ abstract class UIControlPane extends JControlPane {
|
|
|
|
|
this.creators = this.createNameableCreators(); |
|
|
|
|
|
|
|
|
|
initCardPane(); |
|
|
|
|
|
|
|
|
|
if (isNewStyle()) { |
|
|
|
|
getPopupEditDialog(cardPane); |
|
|
|
|
this.add(getLeftPane(), BorderLayout.CENTER); |
|
|
|
@ -149,9 +147,7 @@ abstract class UIControlPane extends JControlPane {
|
|
|
|
|
topToolBar.setLayout(new BorderLayout()); |
|
|
|
|
ShortCut addItem = shortCutFactory.addItemShortCut().getShortCut(); |
|
|
|
|
addItem.intoJToolBar(topToolBar); |
|
|
|
|
|
|
|
|
|
JPanel leftTopPane = getLeftTopPane(topToolBar); |
|
|
|
|
|
|
|
|
|
leftTopPane.setBorder(BorderFactory.createEmptyBorder(0, 0, 6, 0)); |
|
|
|
|
leftPane.add(leftTopPane, BorderLayout.NORTH); |
|
|
|
|
|
|
|
|
@ -172,7 +168,6 @@ abstract class UIControlPane extends JControlPane {
|
|
|
|
|
JPanel leftTopPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
leftTopPane.add(toolBarPane, BorderLayout.EAST); |
|
|
|
|
leftTopPane.add(addItemLabel, BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
return leftTopPane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -203,7 +198,6 @@ abstract class UIControlPane extends JControlPane {
|
|
|
|
|
topToolBar.validate(); |
|
|
|
|
this.controlUpdatePane = createControlUpdatePane();//REPORT-4841 刷新一下编辑面板
|
|
|
|
|
cardPane.add(controlUpdatePane, "EDIT"); |
|
|
|
|
|
|
|
|
|
this.repaint(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -249,7 +243,6 @@ abstract class UIControlPane extends JControlPane {
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 要隐藏 先检查有没有非法输入
|
|
|
|
|
// 非法输入检查放在最后,因为可能出现面板弹出新弹框而失去焦点的情况,比如 输入公式时,弹出公式编辑对话框
|
|
|
|
|
try { |
|
|
|
@ -269,6 +262,7 @@ abstract class UIControlPane extends JControlPane {
|
|
|
|
|
addWindowFocusListener(new WindowAdapter() { |
|
|
|
|
@Override |
|
|
|
|
public void windowLostFocus(WindowEvent e) { |
|
|
|
|
//在Linux上拉回焦点,不然导致一些面板关不掉
|
|
|
|
|
if(OperatingSystem.isLinux()) { |
|
|
|
|
requestFocus(); |
|
|
|
|
} |
|
|
|
|