|
|
|
@ -1,7 +1,6 @@
|
|
|
|
|
package com.fr.design.mainframe; |
|
|
|
|
|
|
|
|
|
import com.fine.theme.icon.LazyIcon; |
|
|
|
|
import com.fine.theme.light.ui.RectangleButtonUI; |
|
|
|
|
import com.fine.theme.utils.FineUIScale; |
|
|
|
|
import com.fine.theme.utils.FineUIUtils; |
|
|
|
|
import com.formdev.flatlaf.FlatDarkLaf; |
|
|
|
@ -14,7 +13,6 @@ import com.fr.design.constants.UIConstants;
|
|
|
|
|
import com.fr.design.file.HistoryTemplateListCache; |
|
|
|
|
import com.fr.design.fun.PropertyItemPaneProvider; |
|
|
|
|
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.ilable.UILabel; |
|
|
|
|
import com.fr.design.layout.VerticalFlowLayout; |
|
|
|
@ -70,6 +68,9 @@ import java.util.List;
|
|
|
|
|
import java.util.Map; |
|
|
|
|
import java.util.Set; |
|
|
|
|
|
|
|
|
|
import static com.fine.theme.utils.FineUIStyle.STYLE_TEXT; |
|
|
|
|
import static com.fine.theme.utils.FineUIStyle.setStyle; |
|
|
|
|
|
|
|
|
|
public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
|
private static volatile EastRegionContainerPane THIS; |
|
|
|
|
private Map<String, PropertyItem> propertyItemMap; |
|
|
|
@ -974,7 +975,7 @@ public class EastRegionContainerPane extends UIEastResizableContainer {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void resetButtonIcon() { |
|
|
|
|
button.setBackground(null); |
|
|
|
|
button.setBackground(new Color(0, 0, 0, 0)); |
|
|
|
|
if (iconSuffix.equals(ICON_SUFFIX_SELECTED)) { |
|
|
|
|
iconSuffix = ICON_SUFFIX_NORMAL; |
|
|
|
|
button.setIcon(new LazyIcon(getBtnIconId())); |
|
|
|
@ -1003,7 +1004,7 @@ public class EastRegionContainerPane extends UIEastResizableContainer {
|
|
|
|
|
}; |
|
|
|
|
button.setDisabledIcon(new LazyIcon(btnIconName + ICON_SUFFIX_DISABLED)); |
|
|
|
|
button.set4LargeToolbarButton(); |
|
|
|
|
button.setUI(new RectangleButtonUI(false)); |
|
|
|
|
setStyle(button, STYLE_TEXT); |
|
|
|
|
button.addActionListener(new ActionListener() { |
|
|
|
|
@Override |
|
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
@ -1279,11 +1280,7 @@ public class EastRegionContainerPane extends UIEastResizableContainer {
|
|
|
|
|
} else if (StringUtils.equals(type, DOWN_BUTTON)) { |
|
|
|
|
popupButton = new UIButton(new LazyIcon("expand_popup")); |
|
|
|
|
} |
|
|
|
|
popupButton.setUI(new UIButtonUI()); |
|
|
|
|
popupButton.setBorderPainted(false); |
|
|
|
|
popupButton.setBorder(null); |
|
|
|
|
popupButton.setBackground(null); |
|
|
|
|
popupButton.setExtraPainted(false); |
|
|
|
|
setStyle(popupButton, STYLE_TEXT); |
|
|
|
|
popupButton.addActionListener(e -> { |
|
|
|
|
this.buttonType = type; |
|
|
|
|
onPop(); |
|
|
|
|