Browse Source

REPORT-19464 【匹配移动端】TAB下菜单式图标优化2

research/11.0
Bruce.Deng 5 years ago
parent
commit
7800cc8235
  1. 12
      designer-base/src/main/java/com/fr/design/layout/FRGUIPaneFactory.java
  2. 8
      designer-base/src/main/java/com/fr/design/mainframe/mobile/ui/TabIconConfigPane.java

12
designer-base/src/main/java/com/fr/design/layout/FRGUIPaneFactory.java

@ -211,6 +211,18 @@ public class FRGUIPaneFactory {
* @return JPanel对象
*/
public static JPanel createMediumHGapFlowInnerContainer_M_Pane_First0() {
JPanel jp = new JPanel();
jp.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
jp.setLayout(new FRLeftFlowLayout(0, 20, 5));
return jp;
}
/**
* 创建一个靠左空边框面板间隔小firsthgap 为0
*
* @return JPanel对象
*/
public static JPanel createTinyHGapFlowInnerContainer_M_Pane_First0() {
JPanel jp = new JPanel();
jp.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
jp.setLayout(new FRLeftFlowLayout(0, 5, 0));

8
designer-base/src/main/java/com/fr/design/mainframe/mobile/ui/TabIconConfigPane.java

@ -46,7 +46,7 @@ public class TabIconConfigPane extends JPanel {
public void initComp(int count) {
this.setLayout(FRGUIPaneFactory.createBorderLayout());
JPanel panel = FRGUIPaneFactory.createMediumHGapFlowInnerContainer_M_Pane_First0();
JPanel panel = FRGUIPaneFactory.createTinyHGapFlowInnerContainer_M_Pane_First0();
panel.setBorder(BorderFactory.createEmptyBorder(5, 0, 5, 0));
editIconButton = new UIButton(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Edit"));
editIconButton.setFont(FRFont.getInstance("Helvetica", Font.PLAIN, 12, Color.decode("#3A383A")));
@ -182,11 +182,7 @@ public class TabIconConfigPane extends JPanel {
public void actionPerformed(ActionEvent evt) {
selectIconButton = this;
editIconButton.setEnabled(true);
if (StringUtils.equals("", this.getIconName())) {
deleteIconButton.setEnabled(false);
} else {
deleteIconButton.setEnabled(true);
}
deleteIconButton.setEnabled(StringUtils.isNotEmpty(this.getIconName()));
TabIconConfigPane.this.repaint();// repaint
}

Loading…
Cancel
Save