|
|
|
@ -14,6 +14,7 @@ import com.fr.design.gui.ibutton.UIToggleButton;
|
|
|
|
|
import com.fr.design.gui.icombobox.LineComboBox; |
|
|
|
|
import com.fr.design.gui.icombobox.UIComboBox; |
|
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
|
import com.fr.design.gui.ispinner.UISpinner; |
|
|
|
|
import com.fr.design.gui.style.FRFontPane; |
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
@ -22,7 +23,6 @@ import com.fr.design.layout.TableLayoutHelper;
|
|
|
|
|
import com.fr.design.mainframe.JTemplate; |
|
|
|
|
import com.fr.design.style.color.NewColorSelectBox; |
|
|
|
|
import com.fr.design.utils.DesignUtils; |
|
|
|
|
import com.fr.design.widget.ui.designer.component.UIBoundSpinner; |
|
|
|
|
import com.fr.form.ui.Widget; |
|
|
|
|
import com.fr.general.FRFont; |
|
|
|
|
import com.fr.general.IOUtils; |
|
|
|
@ -72,7 +72,7 @@ public abstract class BaseStyleSettingPane<T extends Widget> extends BasicBeanPa
|
|
|
|
|
*/ |
|
|
|
|
protected NewColorSelectBox borderColorSelectBox; |
|
|
|
|
// 圆角边框
|
|
|
|
|
protected UIBoundSpinner borderRadiusSpinner; |
|
|
|
|
protected UISpinner borderRadiusSpinner; |
|
|
|
|
// 字体详细设置
|
|
|
|
|
protected FRFontPane frFontPane; |
|
|
|
|
// 按钮背景设置
|
|
|
|
@ -358,7 +358,7 @@ public abstract class BaseStyleSettingPane<T extends Widget> extends BasicBeanPa
|
|
|
|
|
private void initBorderPane() { |
|
|
|
|
lineComboBox = new LineComboBox(WidgetThemeDisplayConstants.BORDER_LINE_STYLE_ARRAY); |
|
|
|
|
borderColorSelectBox = new NewColorSelectBox(WidgetThemeDisplayConstants.THEME_WIDGET_COMPONENT_WIDTH, true); |
|
|
|
|
borderRadiusSpinner = new UIBoundSpinner(0, Integer.MAX_VALUE, 1); |
|
|
|
|
borderRadiusSpinner = new UISpinner(0, Integer.MAX_VALUE, 1); |
|
|
|
|
lineComboBox.addItemListener(e -> borderColorSelectBox.setVisible(!Integer.valueOf(0).equals(e.getItem()))); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|