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