You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.6 KiB
47 lines
1.6 KiB
package com.fr.widgettheme.widget.mobile.pane; |
|
|
|
import com.fr.design.i18n.Toolkit; |
|
import com.fr.design.mainframe.mobile.ui.MobileStyleCustomDefinePane; |
|
import com.fr.form.ui.Widget; |
|
import com.fr.form.ui.mobile.MobileStyle; |
|
import com.fr.util.ColorUtils; |
|
import com.fr.widgettheme.theme.widget.theme.WidgetThemeDisplayConstants; |
|
|
|
/** |
|
* 按钮控件通用属性面板 |
|
* |
|
* @author Coral.Chen |
|
* @since 11.0 |
|
* Created on 2023/5/25 |
|
*/ |
|
public class FreeButtonMobileStyleDefinePane extends DisplayEnhanceMobileStyleDefinePane { |
|
|
|
public FreeButtonMobileStyleDefinePane(Widget widget, Class<? extends MobileStyleCustomDefinePane> customBeanPaneClass, Class<? extends MobileStyle> mobileStyleClazz) { |
|
super(widget, customBeanPaneClass, mobileStyleClazz); |
|
} |
|
|
|
@Override |
|
protected void createUniversalPane() { |
|
createBackgroundPane(); |
|
createBorderLinePane(); |
|
createBorderRadiusPane(); |
|
createFontPane(); |
|
} |
|
|
|
@Override |
|
protected void initDefaultBorder() { |
|
borderType.setSelectedLineStyle(com.fr.stable.Constants.LINE_NONE); |
|
} |
|
|
|
@Override |
|
protected void initBackgroundColor() { |
|
widgetBackgroundSelectBox.setSelectObject(getCurrentTemplateThemeColor()); |
|
widgetBgAlphaDragPane.populateBean(1); |
|
} |
|
|
|
@Override |
|
protected void createFontPane() { |
|
fontConfigPane = new MobileStyleFontConfigPane(ColorUtils.hexToColor(WidgetThemeDisplayConstants.COLOR_FFFFFF_HEX)); |
|
settingPane.add(createLeftRightComponentsPane(createConfigLabel(Toolkit.i18nText("Fine-Design_Mobile_Widget_Font")), fontConfigPane)); |
|
} |
|
} |