Browse Source
【问题原因】 1. 模版主题功能中工具栏样式按钮中的预定义样式 下拉列表废弃,点击样式菜单直接跳转到右侧属 性面板中的单元格样式面板 2. 修复之前版本就有的单元格样式面板切换交互问题,以及不同单元格之间切换,其样式面板的展示问题. 正确的交互行为应该是: (1)如果之前有跟随主题的样式,则打开样式面板显示跟随主题,否则就是自定义 (2)对于同一个单元格,用户从自定义切换到跟随主题,则跟随主题没有选中项,且用户样式依然为自定义样式, 当用户在跟随主题面板中选择了某个样式,则用户样式变为跟随主题面板中的被选中样式 (3)对于同一个单元格,用户从跟随主题切换到自定义,如果跟随主题里之前有选中项,自定义的设置与那个被选中项 一致,否则为默认样式,且将单元格样式设置为自定义样式 【改动思路】 同上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