|
|
@ -67,6 +67,7 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
private JPanel leftPane; |
|
|
|
private JPanel leftPane; |
|
|
|
private JPanel rightPane; |
|
|
|
private JPanel rightPane; |
|
|
|
private FixedPopupPane currentPopupPane; |
|
|
|
private FixedPopupPane currentPopupPane; |
|
|
|
|
|
|
|
private UIButton currentButton; |
|
|
|
private static final int CONTAINER_WIDTH = containerWidth(); |
|
|
|
private static final int CONTAINER_WIDTH = containerWidth(); |
|
|
|
private static final int TAB_WIDTH = 38; |
|
|
|
private static final int TAB_WIDTH = 38; |
|
|
|
private static final int TAB_BUTTON_WIDTH = 32; |
|
|
|
private static final int TAB_BUTTON_WIDTH = 32; |
|
|
@ -929,6 +930,7 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
hideCurrentPopupPane(); |
|
|
|
hideCurrentPopupPane(); |
|
|
|
currentPopupPane = popupPane; |
|
|
|
currentPopupPane = popupPane; |
|
|
|
|
|
|
|
currentButton = button; |
|
|
|
GUICoreUtils.showPopupMenu(popupPane, button, -popupPane.getPreferredSize().width, 0); |
|
|
|
GUICoreUtils.showPopupMenu(popupPane, button, -popupPane.getPreferredSize().width, 0); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -990,6 +992,7 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void menuSelectionChanged(boolean isIncluded) { |
|
|
|
public void menuSelectionChanged(boolean isIncluded) { |
|
|
|
|
|
|
|
System.out.println("qghdefwqe"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Container getContentPane() { |
|
|
|
public Container getContentPane() { |
|
|
@ -1009,6 +1012,33 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @Description:刷新currentPopupPane面板位置,当设计器缩放时会调用这个函数 |
|
|
|
|
|
|
|
* @param |
|
|
|
|
|
|
|
* @return: |
|
|
|
|
|
|
|
* @Author: Henry.Wang |
|
|
|
|
|
|
|
* @date: 2020/7/30 11:39 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public void freshCurrentPopupPane() { |
|
|
|
|
|
|
|
hideCurrentPopupPane(); |
|
|
|
|
|
|
|
if (currentPopupPane != null && currentButton != null && currentPopupPane.isVisible()) { |
|
|
|
|
|
|
|
GUICoreUtils.showPopupMenu(currentPopupPane, currentButton, -currentPopupPane.getPreferredSize().width, 0); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @Description:清空currentPopupPane数据,当切换模板时会调用这个函数 |
|
|
|
|
|
|
|
* @param |
|
|
|
|
|
|
|
* @return: |
|
|
|
|
|
|
|
* @Author: Henry.Wang |
|
|
|
|
|
|
|
* @date: 2020/7/30 11:42 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public void clearCurrentPopupPane() { |
|
|
|
|
|
|
|
hideCurrentPopupPane(); |
|
|
|
|
|
|
|
currentPopupPane = null; |
|
|
|
|
|
|
|
currentButton = null; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 弹出属性面板的工具条
|
|
|
|
// 弹出属性面板的工具条
|
|
|
|
private class PopupToolPane extends JPanel { |
|
|
|
private class PopupToolPane extends JPanel { |
|
|
|
private String title; |
|
|
|
private String title; |
|
|
|