|
|
@ -1,5 +1,7 @@ |
|
|
|
package com.fr.design.mainframe; |
|
|
|
package com.fr.design.mainframe; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.formdev.flatlaf.FlatDarkLaf; |
|
|
|
|
|
|
|
import com.formdev.flatlaf.ui.FlatLineBorder; |
|
|
|
import com.fr.base.FRContext; |
|
|
|
import com.fr.base.FRContext; |
|
|
|
import com.fr.base.svg.IconUtils; |
|
|
|
import com.fr.base.svg.IconUtils; |
|
|
|
import com.fr.base.vcs.DesignerMode; |
|
|
|
import com.fr.base.vcs.DesignerMode; |
|
|
@ -9,7 +11,6 @@ import com.fr.design.constants.UIConstants; |
|
|
|
import com.fr.design.file.HistoryTemplateListCache; |
|
|
|
import com.fr.design.file.HistoryTemplateListCache; |
|
|
|
import com.fr.design.fun.PropertyItemPaneProvider; |
|
|
|
import com.fr.design.fun.PropertyItemPaneProvider; |
|
|
|
import com.fr.design.gui.ibutton.UIButton; |
|
|
|
import com.fr.design.gui.ibutton.UIButton; |
|
|
|
import com.fr.design.gui.ibutton.UIButtonUI; |
|
|
|
|
|
|
|
import com.fr.design.gui.icontainer.UIEastResizableContainer; |
|
|
|
import com.fr.design.gui.icontainer.UIEastResizableContainer; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.layout.VerticalFlowLayout; |
|
|
|
import com.fr.design.layout.VerticalFlowLayout; |
|
|
@ -21,7 +22,6 @@ import com.fr.design.ui.util.UIUtil; |
|
|
|
import com.fr.design.utils.DesignUtils; |
|
|
|
import com.fr.design.utils.DesignUtils; |
|
|
|
import com.fr.design.utils.SvgDrawUtils; |
|
|
|
import com.fr.design.utils.SvgDrawUtils; |
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
import com.fr.design.utils.gui.GUIPaintUtils; |
|
|
|
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.plugin.context.PluginContext; |
|
|
|
import com.fr.plugin.context.PluginContext; |
|
|
|
import com.fr.plugin.context.PluginRuntime; |
|
|
|
import com.fr.plugin.context.PluginRuntime; |
|
|
@ -41,6 +41,8 @@ import javax.swing.JPanel; |
|
|
|
import javax.swing.JPopupMenu; |
|
|
|
import javax.swing.JPopupMenu; |
|
|
|
import javax.swing.SwingConstants; |
|
|
|
import javax.swing.SwingConstants; |
|
|
|
import javax.swing.SwingUtilities; |
|
|
|
import javax.swing.SwingUtilities; |
|
|
|
|
|
|
|
import javax.swing.UIManager; |
|
|
|
|
|
|
|
import javax.swing.UnsupportedLookAndFeelException; |
|
|
|
import javax.swing.border.EmptyBorder; |
|
|
|
import javax.swing.border.EmptyBorder; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.CardLayout; |
|
|
|
import java.awt.CardLayout; |
|
|
@ -49,9 +51,9 @@ import java.awt.Container; |
|
|
|
import java.awt.Cursor; |
|
|
|
import java.awt.Cursor; |
|
|
|
import java.awt.Dimension; |
|
|
|
import java.awt.Dimension; |
|
|
|
import java.awt.Graphics; |
|
|
|
import java.awt.Graphics; |
|
|
|
import java.awt.Graphics2D; |
|
|
|
|
|
|
|
import java.awt.GraphicsEnvironment; |
|
|
|
import java.awt.GraphicsEnvironment; |
|
|
|
import java.awt.Image; |
|
|
|
import java.awt.Image; |
|
|
|
|
|
|
|
import java.awt.Insets; |
|
|
|
import java.awt.Point; |
|
|
|
import java.awt.Point; |
|
|
|
import java.awt.Rectangle; |
|
|
|
import java.awt.Rectangle; |
|
|
|
import java.awt.Toolkit; |
|
|
|
import java.awt.Toolkit; |
|
|
@ -76,9 +78,9 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
private FixedPopupPane currentPopupPane; |
|
|
|
private FixedPopupPane currentPopupPane; |
|
|
|
private UIButton currentButton; |
|
|
|
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 = 42; |
|
|
|
private static final int TAB_BUTTON_WIDTH = 32; |
|
|
|
private static final int TAB_BUTTON_WIDTH = 40; |
|
|
|
private static final int TAB_BUTTON_HEIGHT = 28; |
|
|
|
private static final int TAB_BUTTON_HEIGHT = 34; |
|
|
|
private static final int CONTENT_WIDTH = CONTAINER_WIDTH - TAB_WIDTH; |
|
|
|
private static final int CONTENT_WIDTH = CONTAINER_WIDTH - TAB_WIDTH; |
|
|
|
private static final int POPUP_TOOLPANE_HEIGHT = 27; |
|
|
|
private static final int POPUP_TOOLPANE_HEIGHT = 27; |
|
|
|
private static final int ARROW_RANGE_START = CONTENT_WIDTH - 30; |
|
|
|
private static final int ARROW_RANGE_START = CONTENT_WIDTH - 30; |
|
|
@ -92,6 +94,7 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
public static final String KEY_CONDITION_ATTR = "conditionAttr"; |
|
|
|
public static final String KEY_CONDITION_ATTR = "conditionAttr"; |
|
|
|
public static final String KEY_HYPERLINK = "hyperlink"; |
|
|
|
public static final String KEY_HYPERLINK = "hyperlink"; |
|
|
|
public static final String KEY_WIDGET_LIB = "widgetLib"; |
|
|
|
public static final String KEY_WIDGET_LIB = "widgetLib"; |
|
|
|
|
|
|
|
public static final String KEY_AI_CHAT = "AIChat"; |
|
|
|
public static final String KEY_AUTHORITY_EDITION = "authorityEdition"; |
|
|
|
public static final String KEY_AUTHORITY_EDITION = "authorityEdition"; |
|
|
|
public static final String KEY_CONFIGURED_ROLES = "editedRoles"; |
|
|
|
public static final String KEY_CONFIGURED_ROLES = "editedRoles"; |
|
|
|
public static final String DEFAULT_PANE = "defaultPane"; |
|
|
|
public static final String DEFAULT_PANE = "defaultPane"; |
|
|
@ -166,7 +169,7 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
switchMode(PropertyMode.REPORT); |
|
|
|
switchMode(PropertyMode.REPORT); |
|
|
|
setContainerWidth(CONTAINER_WIDTH); |
|
|
|
setContainerWidth(CONTAINER_WIDTH); |
|
|
|
|
|
|
|
|
|
|
|
initPluginPane(); |
|
|
|
// initPluginPane();
|
|
|
|
listenPlugin(); |
|
|
|
listenPlugin(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -332,6 +335,18 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
"configuredroles", new PropertyMode[]{PropertyMode.AUTHORITY_EDITION_DISABLED}, |
|
|
|
"configuredroles", new PropertyMode[]{PropertyMode.AUTHORITY_EDITION_DISABLED}, |
|
|
|
new PropertyMode[]{PropertyMode.AUTHORITY_EDITION}); |
|
|
|
new PropertyMode[]{PropertyMode.AUTHORITY_EDITION}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PropertyItem aiChat = new PropertyItem( |
|
|
|
|
|
|
|
KEY_AI_CHAT, |
|
|
|
|
|
|
|
"设计器助手", |
|
|
|
|
|
|
|
"widgetlib", |
|
|
|
|
|
|
|
new PropertyMode[]{PropertyMode.REPORT}, |
|
|
|
|
|
|
|
new PropertyMode[]{PropertyMode.REPORT}, |
|
|
|
|
|
|
|
null, |
|
|
|
|
|
|
|
null, |
|
|
|
|
|
|
|
e -> { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
propertyItemMap.put(KEY_CELL_ELEMENT, cellElement); |
|
|
|
propertyItemMap.put(KEY_CELL_ELEMENT, cellElement); |
|
|
|
propertyItemMap.put(KEY_CELL_ATTR, cellAttr); |
|
|
|
propertyItemMap.put(KEY_CELL_ATTR, cellAttr); |
|
|
|
propertyItemMap.put(KEY_FLOAT_ELEMENT, floatElement); |
|
|
|
propertyItemMap.put(KEY_FLOAT_ELEMENT, floatElement); |
|
|
@ -339,6 +354,7 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
propertyItemMap.put(KEY_CONDITION_ATTR, conditionAttr); |
|
|
|
propertyItemMap.put(KEY_CONDITION_ATTR, conditionAttr); |
|
|
|
propertyItemMap.put(KEY_HYPERLINK, hyperlink); |
|
|
|
propertyItemMap.put(KEY_HYPERLINK, hyperlink); |
|
|
|
propertyItemMap.put(KEY_WIDGET_LIB, widgetLib); |
|
|
|
propertyItemMap.put(KEY_WIDGET_LIB, widgetLib); |
|
|
|
|
|
|
|
propertyItemMap.put(KEY_AI_CHAT, aiChat); |
|
|
|
propertyItemMap.put(KEY_AUTHORITY_EDITION, authorityEdition); |
|
|
|
propertyItemMap.put(KEY_AUTHORITY_EDITION, authorityEdition); |
|
|
|
propertyItemMap.put(KEY_CONFIGURED_ROLES, configuredRoles); |
|
|
|
propertyItemMap.put(KEY_CONFIGURED_ROLES, configuredRoles); |
|
|
|
} |
|
|
|
} |
|
|
@ -383,7 +399,6 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
private void initRightPane() { |
|
|
|
private void initRightPane() { |
|
|
|
rightPane = new JPanel(); |
|
|
|
rightPane = new JPanel(); |
|
|
|
propertyCard = new CardLayout(); |
|
|
|
propertyCard = new CardLayout(); |
|
|
|
rightPane.setBackground(Color.green); |
|
|
|
|
|
|
|
rightPane.setLayout(propertyCard); |
|
|
|
rightPane.setLayout(propertyCard); |
|
|
|
for (PropertyItem item : propertyItemMap.values()) { |
|
|
|
for (PropertyItem item : propertyItemMap.values()) { |
|
|
|
if (item.isPoppedOut() || !item.isVisible()) { |
|
|
|
if (item.isPoppedOut() || !item.isVisible()) { |
|
|
@ -401,15 +416,15 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
// 左侧按钮面板
|
|
|
|
// 左侧按钮面板
|
|
|
|
private void initLeftPane() { |
|
|
|
private void initLeftPane() { |
|
|
|
leftPane = new JPanel(); |
|
|
|
leftPane = new JPanel(); |
|
|
|
leftPane.setLayout(new VerticalFlowLayout(VerticalFlowLayout.TOP, 4, 4)); |
|
|
|
leftPane.setLayout(new VerticalFlowLayout(VerticalFlowLayout.TOP, 1, 4)); |
|
|
|
for (PropertyItem item : propertyItemMap.values()) { |
|
|
|
for (PropertyItem item : propertyItemMap.values()) { |
|
|
|
if (item.isPoppedOut() || !item.isVisible()) { |
|
|
|
if (item.isPoppedOut() || !item.isVisible()) { |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
leftPane.add(item.getButton()); |
|
|
|
leftPane.add(item.getButton()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
leftPane.setBorder(new FlatLineBorder(new Insets(0,0,0,0), UIManager.getColor("East.border"))); |
|
|
|
|
|
|
|
|
|
|
|
leftPane.setBackground(UIConstants.PROPERTY_PANE_BACKGROUND); |
|
|
|
|
|
|
|
replaceLeftPane(leftPane); |
|
|
|
replaceLeftPane(leftPane); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -557,6 +572,15 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
propertyItemMap.get(KEY_CONFIGURED_ROLES).replaceContentPane(pane); |
|
|
|
propertyItemMap.get(KEY_CONFIGURED_ROLES).replaceContentPane(pane); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void replaceAIChatPane(JComponent pane) { |
|
|
|
|
|
|
|
propertyItemMap.get(KEY_AI_CHAT).replaceContentPane(pane); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public JComponent getAIChatPane() { |
|
|
|
|
|
|
|
return propertyItemMap.get(KEY_AI_CHAT).getContentPane(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void replaceKeyPane(final String key, final JComponent pane) { |
|
|
|
public void replaceKeyPane(final String key, final JComponent pane) { |
|
|
|
|
|
|
|
|
|
|
|
//需要放到 ui 线程中处理
|
|
|
|
//需要放到 ui 线程中处理
|
|
|
@ -580,13 +604,18 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|
public static void main(String[] args) { |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
UIManager.setLookAndFeel( new FlatDarkLaf() ); |
|
|
|
|
|
|
|
} catch (UnsupportedLookAndFeelException e) { |
|
|
|
|
|
|
|
throw new RuntimeException(e); |
|
|
|
|
|
|
|
} |
|
|
|
JFrame jf = new JFrame("test"); |
|
|
|
JFrame jf = new JFrame("test"); |
|
|
|
// jf = new JFrame("test");
|
|
|
|
// jf = new JFrame("test");
|
|
|
|
|
|
|
|
|
|
|
|
jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |
|
|
|
jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |
|
|
|
|
|
|
|
|
|
|
|
JPanel cc = new JPanel(); |
|
|
|
JPanel cc = new JPanel(); |
|
|
|
cc.setBackground(Color.WHITE); |
|
|
|
// cc.setBackground(Color.WHITE);
|
|
|
|
// JPanel leftPane = new JPanel();
|
|
|
|
// JPanel leftPane = new JPanel();
|
|
|
|
// leftPane.setBackground(Color.yellow);
|
|
|
|
// leftPane.setBackground(Color.yellow);
|
|
|
|
// JPanel rightPane = new JPanel();
|
|
|
|
// JPanel rightPane = new JPanel();
|
|
|
@ -861,7 +890,6 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
|
|
|
|
|
|
|
|
private void initPropertyPanel() { |
|
|
|
private void initPropertyPanel() { |
|
|
|
propertyPanel = new JPanel(); |
|
|
|
propertyPanel = new JPanel(); |
|
|
|
propertyPanel.setBackground(Color.pink); |
|
|
|
|
|
|
|
contentPane = generateContentPane(); |
|
|
|
contentPane = generateContentPane(); |
|
|
|
popupToolPane = new PopupToolPane(this, PopupToolPane.DOWN_BUTTON); |
|
|
|
popupToolPane = new PopupToolPane(this, PopupToolPane.DOWN_BUTTON); |
|
|
|
headerPane = new JPanel(); |
|
|
|
headerPane = new JPanel(); |
|
|
@ -947,7 +975,7 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
if (iconSuffix.equals(ICON_SUFFIX_SELECTED)) { |
|
|
|
if (iconSuffix.equals(ICON_SUFFIX_SELECTED)) { |
|
|
|
iconSuffix = ICON_SUFFIX_NORMAL; |
|
|
|
iconSuffix = ICON_SUFFIX_NORMAL; |
|
|
|
button.setIcon(IconUtils.readIcon(getBtnIconUrl())); |
|
|
|
button.setIcon(IconUtils.readIcon(getBtnIconUrl())); |
|
|
|
button.setBackground(originBtnBackground); |
|
|
|
// button.setBackground(originBtnBackground);
|
|
|
|
button.setOpaque(false); |
|
|
|
button.setOpaque(false); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -956,7 +984,7 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
resetPropertyIcons(); |
|
|
|
resetPropertyIcons(); |
|
|
|
iconSuffix = ICON_SUFFIX_SELECTED; |
|
|
|
iconSuffix = ICON_SUFFIX_SELECTED; |
|
|
|
button.setIcon(IconUtils.readIcon(getBtnIconUrl())); |
|
|
|
button.setIcon(IconUtils.readIcon(getBtnIconUrl())); |
|
|
|
button.setBackground(selectedBtnBackground); |
|
|
|
// button.setBackground(selectedBtnBackground);
|
|
|
|
button.setOpaque(true); |
|
|
|
button.setOpaque(true); |
|
|
|
selectedItem = this; |
|
|
|
selectedItem = this; |
|
|
|
} |
|
|
|
} |
|
|
@ -970,28 +998,23 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
public Dimension getPreferredSize() { |
|
|
|
public Dimension getPreferredSize() { |
|
|
|
return new Dimension(TAB_BUTTON_WIDTH, TAB_BUTTON_HEIGHT); |
|
|
|
return new Dimension(TAB_BUTTON_WIDTH, TAB_BUTTON_HEIGHT); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void paintComponent(Graphics g) { |
|
|
|
|
|
|
|
super.paintComponent(g); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
button.setDisabledIcon(IconUtils.readIcon(getIconBaseDir() + btnIconName + ICON_SUFFIX_DISABLED)); |
|
|
|
button.setDisabledIcon(IconUtils.readIcon(getIconBaseDir() + btnIconName + ICON_SUFFIX_DISABLED)); |
|
|
|
button.set4LargeToolbarButton(); |
|
|
|
button.set4LargeToolbarButton(); |
|
|
|
button.setUI(new UIButtonUI() { |
|
|
|
// button.setUI(new UIButtonUI() {
|
|
|
|
@Override |
|
|
|
// @Override
|
|
|
|
protected void doExtraPainting(UIButton b, Graphics2D g2d, int w, int h, String selectedRoles) { |
|
|
|
// protected void doExtraPainting(UIButton b, Graphics2D g2d, int w, int h, String selectedRoles) {
|
|
|
|
if (isPressed(b) && b.isPressedPainted()) { |
|
|
|
// if (isPressed(b) && b.isPressedPainted()) {
|
|
|
|
Color pressColor = isTabButtonSelected() ? UIConstants.TAB_BUTTON_PRESS_SELECTED : UIConstants.TAB_BUTTON_PRESS; |
|
|
|
// Color pressColor = isTabButtonSelected() ? UIConstants.TAB_BUTTON_PRESS_SELECTED : UIConstants.TAB_BUTTON_PRESS;
|
|
|
|
GUIPaintUtils.fillPressed(g2d, 0, 0, w, h, b.isRoundBorder(), b.getRectDirection(), b.isDoneAuthorityEdited(selectedRoles), pressColor); |
|
|
|
// GUIPaintUtils.fillPressed(g2d, 0, 0, w, h, b.isRoundBorder(), b.getRectDirection(), b.isDoneAuthorityEdited(selectedRoles), pressColor);
|
|
|
|
} else if (isRollOver(b)) { |
|
|
|
// } else if (isRollOver(b)) {
|
|
|
|
Color hoverColor = isTabButtonSelected() ? UIConstants.TAB_BUTTON_HOVER_SELECTED : UIConstants.TAB_BUTTON_HOVER; |
|
|
|
// Color hoverColor = isTabButtonSelected() ? UIConstants.TAB_BUTTON_HOVER_SELECTED : UIConstants.TAB_BUTTON_HOVER;
|
|
|
|
GUIPaintUtils.fillRollOver(g2d, 0, 0, w, h, b.isRoundBorder(), b.getRectDirection(), b.isDoneAuthorityEdited(selectedRoles), b.isPressedPainted(), hoverColor); |
|
|
|
// GUIPaintUtils.fillRollOver(g2d, 0, 0, w, h, b.isRoundBorder(), b.getRectDirection(), b.isDoneAuthorityEdited(selectedRoles), b.isPressedPainted(), hoverColor);
|
|
|
|
} else if (b.isNormalPainted()) { |
|
|
|
// } else if (b.isNormalPainted()) {
|
|
|
|
GUIPaintUtils.fillNormal(g2d, 0, 0, w, h, b.isRoundBorder(), b.getRectDirection(), b.isDoneAuthorityEdited(selectedRoles), b.isPressedPainted()); |
|
|
|
// GUIPaintUtils.fillNormal(g2d, 0, 0, w, h, b.isRoundBorder(), b.getRectDirection(), b.isDoneAuthorityEdited(selectedRoles), b.isPressedPainted());
|
|
|
|
} |
|
|
|
// }
|
|
|
|
} |
|
|
|
// }
|
|
|
|
}); |
|
|
|
// });
|
|
|
|
originBtnBackground = button.getBackground(); |
|
|
|
originBtnBackground = button.getBackground(); |
|
|
|
button.addActionListener(new ActionListener() { |
|
|
|
button.addActionListener(new ActionListener() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -1182,7 +1205,7 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
public void mouseExited(MouseEvent e) { |
|
|
|
public void mouseExited(MouseEvent e) { |
|
|
|
setCursor(Cursor.getDefaultCursor()); |
|
|
|
setCursor(Cursor.getDefaultCursor()); |
|
|
|
if (mouseDownCompCoords == null) { |
|
|
|
if (mouseDownCompCoords == null) { |
|
|
|
contentPane.setBackground(originColor); |
|
|
|
// contentPane.setBackground(originColor);
|
|
|
|
} |
|
|
|
} |
|
|
|
repaint(); |
|
|
|
repaint(); |
|
|
|
} |
|
|
|
} |
|
|
@ -1198,7 +1221,7 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
public void mouseReleased(MouseEvent e) { |
|
|
|
public void mouseReleased(MouseEvent e) { |
|
|
|
mouseDownCompCoords = null; |
|
|
|
mouseDownCompCoords = null; |
|
|
|
if (!getBounds().contains(e.getPoint())) { |
|
|
|
if (!getBounds().contains(e.getPoint())) { |
|
|
|
contentPane.setBackground(originColor); |
|
|
|
// contentPane.setBackground(originColor);
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -1217,7 +1240,7 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); |
|
|
|
setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); |
|
|
|
} else if (isMovable) { |
|
|
|
} else if (isMovable) { |
|
|
|
setCursor(Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR)); |
|
|
|
setCursor(Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR)); |
|
|
|
contentPane.setBackground(UIConstants.POPUP_TITLE_BACKGROUND); |
|
|
|
// contentPane.setBackground(UIConstants.POPUP_TITLE_BACKGROUND);
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
setCursor(Cursor.getDefaultCursor()); |
|
|
|
setCursor(Cursor.getDefaultCursor()); |
|
|
|
} |
|
|
|
} |
|
|
@ -1263,7 +1286,7 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
originColor = UIConstants.UI_TOOLBAR_COLOR; |
|
|
|
originColor = UIConstants.UI_TOOLBAR_COLOR; |
|
|
|
|
|
|
|
|
|
|
|
contentPane = new JPanel(); |
|
|
|
contentPane = new JPanel(); |
|
|
|
contentPane.setBackground(originColor); |
|
|
|
// contentPane.setBackground(originColor);
|
|
|
|
contentPane.setLayout(new BorderLayout()); |
|
|
|
contentPane.setLayout(new BorderLayout()); |
|
|
|
UILabel label = new UILabel(title); |
|
|
|
UILabel label = new UILabel(title); |
|
|
|
contentPane.add(label, BorderLayout.WEST); |
|
|
|
contentPane.add(label, BorderLayout.WEST); |
|
|
|