|
|
@ -22,7 +22,6 @@ import com.fr.design.mainframe.WidgetPropertyPane; |
|
|
|
import com.fr.design.mainframe.mobile.ui.MobileCollapsedStyleExpandPane; |
|
|
|
import com.fr.design.mainframe.mobile.ui.MobileCollapsedStyleExpandPane; |
|
|
|
import com.fr.design.mainframe.mobile.ui.MobileComboBoxDialogEditor; |
|
|
|
import com.fr.design.mainframe.mobile.ui.MobileComboBoxDialogEditor; |
|
|
|
import com.fr.form.ui.ElementCaseEditor; |
|
|
|
import com.fr.form.ui.ElementCaseEditor; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.form.ui.mobile.MobileCollapsedStyle; |
|
|
|
import com.fr.form.ui.mobile.MobileCollapsedStyle; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
|
|
|
@ -30,7 +29,9 @@ import javax.swing.BorderFactory; |
|
|
|
import javax.swing.JOptionPane; |
|
|
|
import javax.swing.JOptionPane; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.SwingConstants; |
|
|
|
import javax.swing.SwingConstants; |
|
|
|
import java.awt.*; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
|
|
|
import java.awt.Component; |
|
|
|
|
|
|
|
import java.awt.Container; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 报表块-移动端属性面板 |
|
|
|
* 报表块-移动端属性面板 |
|
|
@ -123,7 +124,6 @@ public class ElementCaseDefinePane extends MobileWidgetDefinePane { |
|
|
|
panelWrapper.add(panel, BorderLayout.NORTH); |
|
|
|
panelWrapper.add(panel, BorderLayout.NORTH); |
|
|
|
UIExpandablePane folderPane = new UIExpandablePane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Fit"), 280, 20, panelWrapper); |
|
|
|
UIExpandablePane folderPane = new UIExpandablePane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Fit"), 280, 20, panelWrapper); |
|
|
|
this.add(folderPane, BorderLayout.NORTH); |
|
|
|
this.add(folderPane, BorderLayout.NORTH); |
|
|
|
this.bingListeners2Widgets(); |
|
|
|
|
|
|
|
this.setGlobalNames(); |
|
|
|
this.setGlobalNames(); |
|
|
|
this.repaint(); |
|
|
|
this.repaint(); |
|
|
|
} |
|
|
|
} |
|
|
@ -165,7 +165,6 @@ public class ElementCaseDefinePane extends MobileWidgetDefinePane { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void populate(FormDesigner designer) { |
|
|
|
public void populate(FormDesigner designer) { |
|
|
|
this.designer = designer; |
|
|
|
this.designer = designer; |
|
|
|
this.addAttributeChangeListener(changeListener); |
|
|
|
|
|
|
|
ElementCaseEditor elementCaseEditor = (ElementCaseEditor) xCreator.toData(); |
|
|
|
ElementCaseEditor elementCaseEditor = (ElementCaseEditor) xCreator.toData(); |
|
|
|
this.hComboBox.setSelectedItem(new Item(elementCaseEditor.getHorziontalAttr().description(), elementCaseEditor.getHorziontalAttr())); |
|
|
|
this.hComboBox.setSelectedItem(new Item(elementCaseEditor.getHorziontalAttr().description(), elementCaseEditor.getHorziontalAttr())); |
|
|
|
this.vComboBox.setSelectedItem(new Item(elementCaseEditor.getVerticalAttr().description(), elementCaseEditor.getVerticalAttr())); |
|
|
|
this.vComboBox.setSelectedItem(new Item(elementCaseEditor.getVerticalAttr().description(), elementCaseEditor.getVerticalAttr())); |
|
|
@ -178,6 +177,8 @@ public class ElementCaseDefinePane extends MobileWidgetDefinePane { |
|
|
|
this.mobileCollapsedStyleEditor.setStyle(elementCaseEditor.getMobileCollapsedStyle()); |
|
|
|
this.mobileCollapsedStyleEditor.setStyle(elementCaseEditor.getMobileCollapsedStyle()); |
|
|
|
fix(elementCaseEditor.getMobileCollapsedStyle()); |
|
|
|
fix(elementCaseEditor.getMobileCollapsedStyle()); |
|
|
|
this.mobileCollapsedStyleEditor.setSelected(elementCaseEditor.getMobileCollapsedStyle().isCollapsedWork()); |
|
|
|
this.mobileCollapsedStyleEditor.setSelected(elementCaseEditor.getMobileCollapsedStyle().isCollapsedWork()); |
|
|
|
|
|
|
|
this.bingListeners2Widgets(); |
|
|
|
|
|
|
|
this.addAttributeChangeListener(changeListener); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -191,7 +192,6 @@ public class ElementCaseDefinePane extends MobileWidgetDefinePane { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void update() { |
|
|
|
public void update() { |
|
|
|
DesignerContext.getDesignerFrame().getSelectedJTemplate().fireTargetModified(); // 触发设计器保存按钮亮起来
|
|
|
|
|
|
|
|
String globalName = this.getGlobalName(); |
|
|
|
String globalName = this.getGlobalName(); |
|
|
|
switch (globalName) { |
|
|
|
switch (globalName) { |
|
|
|
case "hComboBox": |
|
|
|
case "hComboBox": |
|
|
@ -220,6 +220,7 @@ public class ElementCaseDefinePane extends MobileWidgetDefinePane { |
|
|
|
style.setCollapsedWork(this.mobileCollapsedStyleEditor.isSelectedCustom() && !FormDesignerUtils.isInAbsoluteLayout(xCreator)); |
|
|
|
style.setCollapsedWork(this.mobileCollapsedStyleEditor.isSelectedCustom() && !FormDesignerUtils.isInAbsoluteLayout(xCreator)); |
|
|
|
((ElementCaseEditor) xCreator.toData()).setMobileCollapsedStyle(style); |
|
|
|
((ElementCaseEditor) xCreator.toData()).setMobileCollapsedStyle(style); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
DesignerContext.getDesignerFrame().getSelectedJTemplate().fireTargetModified(); // 触发设计器保存按钮亮起来
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void setGlobalNames() { |
|
|
|
private void setGlobalNames() { |
|
|
|