|
|
|
@ -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; |
|
|
|
@ -201,9 +202,20 @@ public class ChartEditorDefinePane extends MobileWidgetDefinePane {
|
|
|
|
|
|
|
|
|
|
MobileCollapsedStyle style = ((ChartEditor) xCreator.toData()).getMobileCollapsedStyle(); |
|
|
|
|
this.mobileCollapsedStyleEditor.setStyle(style); |
|
|
|
|
fix(style); |
|
|
|
|
this.mobileCollapsedStyleEditor.setSelected(style.isCollapsedWork()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 根据组件当前位置修正下属性 |
|
|
|
|
* |
|
|
|
|
* @param style |
|
|
|
|
*/ |
|
|
|
|
private void fix(MobileCollapsedStyle style) { |
|
|
|
|
style.setCollapsedWork(style.isCollapsedWork() && !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(); // 触发设计器保存按钮亮起来
|
|
|
|
|
} |
|
|
|
|