|
|
|
@ -24,6 +24,7 @@ import com.fr.design.mainframe.mobile.ui.MobileCollapsedStylePane;
|
|
|
|
|
import com.fr.design.mainframe.mobile.ui.MobileComboBoxDialogEditor; |
|
|
|
|
import com.fr.form.ui.BaseChartEditor; |
|
|
|
|
import com.fr.form.ui.ChartEditor; |
|
|
|
|
import com.fr.form.ui.ElementCaseEditor; |
|
|
|
|
import com.fr.form.ui.mobile.MobileCollapsedStyle; |
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
@ -202,8 +203,19 @@ public class ChartEditorDefinePane extends MobileWidgetDefinePane {
|
|
|
|
|
MobileCollapsedStyle style = ((ChartEditor) xCreator.toData()).getMobileCollapsedStyle(); |
|
|
|
|
this.mobileCollapsedStyleEditor.setStyle(style); |
|
|
|
|
this.mobileCollapsedStyleEditor.setSelected(style.isCollapsedWork()); |
|
|
|
|
fix(style); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 根据组件当前位置修正下属性 |
|
|
|
|
* |
|
|
|
|
* @param style |
|
|
|
|
*/ |
|
|
|
|
private void fix(MobileCollapsedStyle style) { |
|
|
|
|
style.setCollapsedWork(!FormDesignerUtils.isInAbsoluteLayout(xCreator)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void update() { |
|
|
|
|
ChartMobileAttrProvider mobileAttr = ((BaseChartEditor)xCreator.toData()).getMobileAttr(); |
|
|
|
@ -219,7 +231,7 @@ public class ChartEditorDefinePane extends MobileWidgetDefinePane {
|
|
|
|
|
MobileCollapsedStyle style = this.mobileCollapsedStyleEditor.getStyle(); |
|
|
|
|
if (style != null) { |
|
|
|
|
((ChartEditor) xCreator.toData()).setMobileCollapsedStyle(style); |
|
|
|
|
style.setCollapsedWork(this.mobileCollapsedStyleEditor.isSelectedCustom()); |
|
|
|
|
style.setCollapsedWork(this.mobileCollapsedStyleEditor.isSelectedCustom() && !FormDesignerUtils.isInAbsoluteLayout(xCreator)); |
|
|
|
|
} |
|
|
|
|
DesignerContext.getDesignerFrame().getSelectedJTemplate().fireTargetModified(); // 触发设计器保存按钮亮起来
|
|
|
|
|
} |
|
|
|
|