|
|
|
@ -1,6 +1,5 @@
|
|
|
|
|
package com.fr.design.widget.ui.designer.mobile; |
|
|
|
|
|
|
|
|
|
import com.fr.base.mobile.ButtonGroupMaxRowsMobileAttr; |
|
|
|
|
import com.fr.design.constants.LayoutConstants; |
|
|
|
|
import com.fr.design.designer.creator.XCreator; |
|
|
|
|
import com.fr.design.foldablepane.UIExpandablePane; |
|
|
|
@ -69,16 +68,16 @@ public class ButtonGroupDefinePane extends MobileWidgetDefinePane {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void populate(FormDesigner designer) { |
|
|
|
|
ButtonGroupMaxRowsMobileAttr maxRowsMobileAttr = ((ButtonGroup)xCreator.toData()).getMobileMaxRowsAttr(); |
|
|
|
|
this.maxShowRowsSpinner.setValue(maxRowsMobileAttr.getMaxShowRows()); |
|
|
|
|
ButtonGroup buttonGroup = (ButtonGroup)xCreator.toData(); |
|
|
|
|
this.maxShowRowsSpinner.setValue(buttonGroup.getMaxShowRows()); |
|
|
|
|
// 数据 populate 完成后,再设置监听
|
|
|
|
|
this.bindListeners2Widgets(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void update() { |
|
|
|
|
ButtonGroupMaxRowsMobileAttr maxRowsMobileAttr = ((ButtonGroup)xCreator.toData()).getMobileMaxRowsAttr(); |
|
|
|
|
maxRowsMobileAttr.setMaxShowRows((int) maxShowRowsSpinner.getValue()); |
|
|
|
|
ButtonGroup buttonGroup = (ButtonGroup)xCreator.toData(); |
|
|
|
|
buttonGroup.setMaxShowRows((int) maxShowRowsSpinner.getValue()); |
|
|
|
|
DesignerContext.getDesignerFrame().getSelectedJTemplate().fireTargetModified(); // 触发设计器保存按钮亮起来
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|