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