|
|
|
@ -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[][]{ |
|
|
|
|