|
|
@ -12,6 +12,8 @@ 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; |
|
|
|
|
|
|
|
import com.fr.design.menu.SnapChatUtil; |
|
|
|
|
|
|
|
import com.fr.design.notification.SnapChat; |
|
|
|
import com.fr.design.ui.util.UIUtil; |
|
|
|
import com.fr.design.ui.util.UIUtil; |
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
import com.fr.design.utils.gui.GUIPaintUtils; |
|
|
|
import com.fr.design.utils.gui.GUIPaintUtils; |
|
|
@ -221,11 +223,13 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
String key = provider.key(); |
|
|
|
String key = provider.key(); |
|
|
|
PropertyItemBean itemBean = provider.getItem(); |
|
|
|
PropertyItemBean itemBean = provider.getItem(); |
|
|
|
PropertyItem propertyItem = new PropertyItem(itemBean.getName(), |
|
|
|
PropertyItem propertyItem = new PropertyItem(itemBean.getName(), |
|
|
|
itemBean.getTitle(), |
|
|
|
itemBean.getTitle(), |
|
|
|
itemBean.getBtnIconName(), |
|
|
|
itemBean.getBtnIconName(), |
|
|
|
itemBean.getBtnIconBaseDir(), |
|
|
|
itemBean.getBtnIconBaseDir(), |
|
|
|
itemBean.getVisibleModes(), |
|
|
|
itemBean.getVisibleModes(), |
|
|
|
itemBean.getEnableModes()); |
|
|
|
itemBean.getEnableModes(), |
|
|
|
|
|
|
|
itemBean.getSnapChat(), |
|
|
|
|
|
|
|
itemBean.getPromptWindow()); |
|
|
|
UIButton button = propertyItem.getButton(); |
|
|
|
UIButton button = propertyItem.getButton(); |
|
|
|
List<ActionListener> buttonListeners = itemBean.getButtonListeners(); |
|
|
|
List<ActionListener> buttonListeners = itemBean.getButtonListeners(); |
|
|
|
if (buttonListeners != null) { |
|
|
|
if (buttonListeners != null) { |
|
|
@ -657,6 +661,7 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class PropertyItem { |
|
|
|
class PropertyItem { |
|
|
|
|
|
|
|
private SnapChat snapChat; |
|
|
|
private UIButton button; |
|
|
|
private UIButton button; |
|
|
|
private String name; // 用于 card 切换
|
|
|
|
private String name; // 用于 card 切换
|
|
|
|
private String title; // 用于显示
|
|
|
|
private String title; // 用于显示
|
|
|
@ -667,6 +672,7 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
private FixedPopupPane popupPane; // 左侧固定弹出框
|
|
|
|
private FixedPopupPane popupPane; // 左侧固定弹出框
|
|
|
|
private PopupToolPane popupToolPane; // 弹出工具条
|
|
|
|
private PopupToolPane popupToolPane; // 弹出工具条
|
|
|
|
private PopupDialog popupDialog; // 弹出框
|
|
|
|
private PopupDialog popupDialog; // 弹出框
|
|
|
|
|
|
|
|
private PromptWindow promptWindow; //提示窗
|
|
|
|
private boolean isPoppedOut = false; // 是否弹出
|
|
|
|
private boolean isPoppedOut = false; // 是否弹出
|
|
|
|
private boolean isVisible = true; // 是否可见
|
|
|
|
private boolean isVisible = true; // 是否可见
|
|
|
|
private boolean replace = false; // 是否被替代
|
|
|
|
private boolean replace = false; // 是否被替代
|
|
|
@ -687,14 +693,16 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public PropertyItem(String name, String title, String btnIconName, PropertyMode[] visibleModes, PropertyMode[] enableModes) { |
|
|
|
public PropertyItem(String name, String title, String btnIconName, PropertyMode[] visibleModes, PropertyMode[] enableModes) { |
|
|
|
this(name, title, btnIconName, ICON_BASE_DIR, visibleModes, enableModes); |
|
|
|
this(name, title, btnIconName, ICON_BASE_DIR, visibleModes, enableModes, null,null); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public PropertyItem(String name, String title, String btnIconName, String iconBaseDir, PropertyMode[] visibleModes, PropertyMode[] enableModes) { |
|
|
|
public PropertyItem(String name, String title, String btnIconName, String iconBaseDir, PropertyMode[] visibleModes, PropertyMode[] enableModes, SnapChat snapChat,PromptWindow promptWindow) { |
|
|
|
this.name = name; |
|
|
|
this.name = name; |
|
|
|
this.title = title; |
|
|
|
this.title = title; |
|
|
|
this.btnIconName = btnIconName; |
|
|
|
this.btnIconName = btnIconName; |
|
|
|
this.iconBaseDir = iconBaseDir; |
|
|
|
this.iconBaseDir = iconBaseDir; |
|
|
|
|
|
|
|
this.snapChat = snapChat; |
|
|
|
|
|
|
|
this.promptWindow = promptWindow; |
|
|
|
initButton(); |
|
|
|
initButton(); |
|
|
|
initPropertyPanel(); |
|
|
|
initPropertyPanel(); |
|
|
|
initModes(visibleModes, enableModes); |
|
|
|
initModes(visibleModes, enableModes); |
|
|
@ -875,6 +883,9 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void paintComponent(Graphics g) { |
|
|
|
public void paintComponent(Graphics g) { |
|
|
|
super.paintComponent(g); |
|
|
|
super.paintComponent(g); |
|
|
|
|
|
|
|
if (snapChat != null && !snapChat.hasRead()) { |
|
|
|
|
|
|
|
SnapChatUtil.paintPropertyItemPoint(g, getBounds()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
button.set4LargeToolbarButton(); |
|
|
|
button.set4LargeToolbarButton(); |
|
|
@ -902,6 +913,13 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
popupFixedPane(); |
|
|
|
popupFixedPane(); |
|
|
|
} |
|
|
|
} |
|
|
|
setTabButtonSelected(); |
|
|
|
setTabButtonSelected(); |
|
|
|
|
|
|
|
if (snapChat != null && !snapChat.hasRead()) { |
|
|
|
|
|
|
|
snapChat.markRead(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (promptWindow != null) { |
|
|
|
|
|
|
|
promptWindow.showWindow(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
button.setToolTipText(title); |
|
|
|
button.setToolTipText(title); |
|
|
|