Browse Source

REPORT-92628 控件支持主题切换-部分控件未实现主题样式设置--注释

release/11.0
John.Ying-应志浩 2 years ago
parent
commit
d60548ccbf
  1. 3
      designer-base/src/main/java/com/fr/design/widget/btn/ButtonWithHotkeysDetailPane.java
  2. 14
      designer-form/src/main/java/com/fr/design/widget/ui/btn/ExtraButtonPane.java

3
designer-base/src/main/java/com/fr/design/widget/btn/ButtonWithHotkeysDetailPane.java

@ -64,6 +64,9 @@ public abstract class ButtonWithHotkeysDetailPane<T extends Button> extends Butt
protected abstract Component createCenterPane();
/**
* 判断是按钮控件下拉框的种类1.有自定义按钮 2.无自定义按钮
*/
protected DictionaryComboBox createCustomButtonTypeComboBox() {
return createButtonTypeComboBox();
}

14
designer-form/src/main/java/com/fr/design/widget/ui/btn/ExtraButtonPane.java

@ -20,6 +20,13 @@ import java.awt.Component;
import java.util.Set;
/**
* 用来处理额外的按钮属性
*
* @author John.Ying
* @version 11.0
* Created by John.Ying on 2023/4/23
*/
public abstract class ExtraButtonPane<T extends Button> extends ButtonWithHotkeysDetailPane<T> {
protected JPanel extraPane;
protected boolean containsExtraPane;
@ -32,6 +39,9 @@ public abstract class ExtraButtonPane<T extends Button> extends ButtonWithHotkey
}
/**
* 根据按钮类别判断需要返回什么类型的属性界面
*/
protected void refreshExtraAdvancedPane(Class cls) {
extraPaneList.clear();
boolean containsExtraPane = false;
@ -91,11 +101,15 @@ public abstract class ExtraButtonPane<T extends Button> extends ButtonWithHotkey
return button;
}
@Override
protected DictionaryComboBox createCustomButtonTypeComboBox() {
return createButtonTypeComboBox(containsExtraPane);
}
/**
* 生成额外的属性界面
*/
protected Component createExtraPane(@Nullable BasicPane pane) {
initExtraPane();
Component[][] components = new Component[][]{

Loading…
Cancel
Save