|
|
@ -3,6 +3,7 @@ package com.fr.design.widget.ui.btn; |
|
|
|
import java.awt.Component; |
|
|
|
import java.awt.Component; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.form.ui.FreeButton; |
|
|
|
import com.fr.form.ui.FreeButton; |
|
|
|
|
|
|
|
import com.fr.widgettheme.util.WidgetThemeDesignerUtils; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 自定义按钮 |
|
|
|
* 自定义按钮 |
|
|
@ -16,7 +17,7 @@ public class FreeButtonDetailPane extends AbstractExtraButtonPane<FreeButton> { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected Component createCenterPane() { |
|
|
|
protected Component createCenterPane() { |
|
|
|
buttonSytleDefinedPane = new ButtonSytleDefinedPane(); |
|
|
|
buttonSytleDefinedPane = WidgetThemeDesignerUtils.enableWidgetEnhance() ? null : new ButtonSytleDefinedPane(); |
|
|
|
return createExtraPane(buttonSytleDefinedPane); |
|
|
|
return createExtraPane(buttonSytleDefinedPane); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -27,13 +28,17 @@ public class FreeButtonDetailPane extends AbstractExtraButtonPane<FreeButton> { |
|
|
|
|
|
|
|
|
|
|
|
public void populate(FreeButton button) { |
|
|
|
public void populate(FreeButton button) { |
|
|
|
super.populate(button); |
|
|
|
super.populate(button); |
|
|
|
|
|
|
|
if (buttonSytleDefinedPane != null) { |
|
|
|
buttonSytleDefinedPane.populate(button); |
|
|
|
buttonSytleDefinedPane.populate(button); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public FreeButton update() { |
|
|
|
public FreeButton update() { |
|
|
|
FreeButton button = super.update(); |
|
|
|
FreeButton button = super.update(); |
|
|
|
|
|
|
|
if (buttonSytleDefinedPane != null) { |
|
|
|
buttonSytleDefinedPane.update(button); |
|
|
|
buttonSytleDefinedPane.update(button); |
|
|
|
|
|
|
|
} |
|
|
|
return button; |
|
|
|
return button; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|