|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.fr.design.mainframe; |
|
|
|
|
|
|
|
|
|
import com.fine.theme.utils.FineUIScale; |
|
|
|
|
import com.formdev.flatlaf.util.ScaledEmptyBorder; |
|
|
|
|
import com.fr.common.inputevent.InputEventBaseOnOS; |
|
|
|
|
import com.fr.design.beans.BasicBeanPane; |
|
|
|
|
import com.fr.design.file.HistoryTemplateListPane; |
|
|
|
@ -37,7 +38,10 @@ import java.awt.event.MouseListener;
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.cell; |
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.column; |
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.flex; |
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.row; |
|
|
|
|
import static com.fine.theme.utils.FineUIScale.scale; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Author : daisy |
|
|
|
@ -134,14 +138,14 @@ public class AuthorityToolBarPane<T extends WebContent> extends BasicBeanPane<Re
|
|
|
|
|
|
|
|
|
|
public AuthorityToolBarPane() { |
|
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|
|
this.setBorder(BorderFactory.createEmptyBorder(0, PRE_GAP, 10, 0)); |
|
|
|
|
this.setBorder(new ScaledEmptyBorder(0, PRE_GAP, 10, 0)); |
|
|
|
|
title = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Toolbar_Choose_Role")); |
|
|
|
|
title.setHorizontalAlignment(SwingConstants.LEFT); |
|
|
|
|
title.setPreferredSize(new Dimension(FineUIScale.scale(120), title.getHeight())); |
|
|
|
|
title.setPreferredSize(new Dimension(scale(120), title.getHeight())); |
|
|
|
|
choseComboBox = new UIComboBox(CHOOSEITEM) { |
|
|
|
|
public Dimension getPreferredSize() { |
|
|
|
|
Dimension dim = super.getPreferredSize(); |
|
|
|
|
dim.width = COMBOX_WIDTH; |
|
|
|
|
dim.width = scale(COMBOX_WIDTH); |
|
|
|
|
return dim; |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
@ -158,7 +162,7 @@ public class AuthorityToolBarPane<T extends WebContent> extends BasicBeanPane<Re
|
|
|
|
|
authorityEditToolBarPane.setAuthorityToolBarPane(this); |
|
|
|
|
checkToolBarPaneEnable(); |
|
|
|
|
toolBarPane.setOpaque(false); |
|
|
|
|
this.add(row(10, cell(title), cell(choseComboBox), cell(toolBarPane)).getComponent()); |
|
|
|
|
this.add(row(10, cell(title), cell(choseComboBox), column(flex(), cell(toolBarPane), flex())).getComponent()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|