Browse Source

REPORT-576 dev内代码完善到release中

button初始化背景颜色
master
PanLi320 8 years ago
parent
commit
5cc464edb2
  1. 8
      designer_form/src/com/fr/design/designer/creator/cardlayout/XCardAddButton.java

8
designer_form/src/com/fr/design/designer/creator/cardlayout/XCardAddButton.java

@ -1,13 +1,12 @@
package com.fr.design.designer.creator.cardlayout;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.*;
import java.awt.event.MouseEvent;
import javax.swing.Icon;
import com.fr.base.BaseUtils;
import com.fr.base.background.ColorBackground;
import com.fr.design.designer.beans.AdapterBus;
import com.fr.design.designer.beans.ComponentAdapter;
import com.fr.design.designer.beans.models.SelectionModel;
@ -147,6 +146,7 @@ public class XCardAddButton extends XButton{
CardSwitchButton titleButton = new CardSwitchButton(index,cardLayoutName);
//设置标题
titleButton.setText(getTabTitleName());
titleButton.setInitialBackground(ColorBackground.getInstance(Color.WHITE));
XCardSwitchButton showButton = new XCardSwitchButton(titleButton,dimension,cardLayout,tagLayout);
titleButton.setShowButton(true);
showButton.setBackupParent(tagLayout);
@ -189,4 +189,4 @@ public class XCardAddButton extends XButton{
public XLayoutContainer getTopLayout() {
return this.getBackupParent().getTopLayout();
}
}
}

Loading…
Cancel
Save