Browse Source
Merge in DESIGN/design from ~STARRYI/design:feature/x to feature/x * commit 'fbde5db5db35ff023e9eca58ce02c2de2227c8c2': REPORT-58062 【主题切换】细节定制-单元格样式-样式数量较多,菜单栏中选择时没有滚动条research/11.0
starryi
3 years ago
10 changed files with 106 additions and 41 deletions
@ -0,0 +1,26 @@ |
|||||||
|
package com.fr.design.actions.cell; |
||||||
|
|
||||||
|
import com.fr.base.BaseUtils; |
||||||
|
import com.fr.design.i18n.Toolkit; |
||||||
|
import com.fr.design.menu.KeySetUtils; |
||||||
|
import com.fr.general.IOUtils; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Starryi |
||||||
|
* @version 1.0 |
||||||
|
* Created by Starryi on 2021/8/26 |
||||||
|
*/ |
||||||
|
public class CellStyleAttrAction extends CellAttributeTableAction { |
||||||
|
|
||||||
|
public CellStyleAttrAction() { |
||||||
|
this.setMenuKeySet(KeySetUtils.GLOBAL_STYLE); |
||||||
|
this.setName(getMenuKeySet().getMenuKeySetName()); |
||||||
|
this.setMnemonic(getMenuKeySet().getMnemonic()); |
||||||
|
this.setSmallIcon(IOUtils.readIcon("/com/fr/design/images/m_format/cell.png")); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
protected String getID() { |
||||||
|
return Toolkit.i18nText("Fine-Design_Form_Widget_Style"); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,22 @@ |
|||||||
|
package com.fr.design.actions.cell; |
||||||
|
|
||||||
|
import com.fr.design.i18n.Toolkit; |
||||||
|
import com.fr.design.mainframe.CellElementPropertyPane; |
||||||
|
|
||||||
|
import java.awt.event.ActionEvent; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Starryi |
||||||
|
* @version 1.0 |
||||||
|
* Created by Starryi on 2021/8/26 |
||||||
|
*/ |
||||||
|
public class CustomCellStyleAction extends CellStyleAttrAction { |
||||||
|
|
||||||
|
@Override |
||||||
|
public void actionPerformed(ActionEvent e) { |
||||||
|
CellElementPropertyPane.getInstance().GoToPane( |
||||||
|
Toolkit.i18nText("Fine-Design_Report_Engine_Style"), |
||||||
|
Toolkit.i18nText("Fine-Design_Report_Engine_Custom") |
||||||
|
); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue