coral.chen@fanruan.com
2 years ago
8 changed files with 207 additions and 47 deletions
@ -0,0 +1,41 @@ |
|||||||
|
package com.fr.design.widget.ui.mobile; |
||||||
|
|
||||||
|
import com.fr.design.foldablepane.UIExpandablePane; |
||||||
|
import com.fr.design.i18n.Toolkit; |
||||||
|
import com.fr.design.layout.FRGUIPaneFactory; |
||||||
|
import com.fr.design.widget.mobile.WidgetMobilePane; |
||||||
|
import com.fr.design.widget.ui.designer.mobile.component.MobileTextEditSettingPane; |
||||||
|
import com.fr.form.ui.NumberEditor; |
||||||
|
import com.fr.form.ui.Widget; |
||||||
|
|
||||||
|
import java.awt.BorderLayout; |
||||||
|
|
||||||
|
/** |
||||||
|
* 数字控件移动端属性 |
||||||
|
* |
||||||
|
* @author Coral.Chen |
||||||
|
* @since 11.0 |
||||||
|
* Created on 2023/4/11 |
||||||
|
*/ |
||||||
|
public class NumberEditorMobilePane extends WidgetMobilePane { |
||||||
|
private MobileTextEditSettingPane textSettingPane; |
||||||
|
|
||||||
|
@Override |
||||||
|
protected void init() { |
||||||
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
||||||
|
textSettingPane = new MobileTextEditSettingPane(); |
||||||
|
this.add(new UIExpandablePane(Toolkit.i18nText("Fine-Design_Report_Advanced"), 280, 20, textSettingPane), BorderLayout.NORTH); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void populate(Widget widget) { |
||||||
|
NumberEditor numberEditor = (NumberEditor) widget; |
||||||
|
textSettingPane.populateBean(numberEditor.getMobileTextEditAttr()); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void update(Widget widget) { |
||||||
|
NumberEditor numberEditor = (NumberEditor) widget; |
||||||
|
textSettingPane.updateBean(numberEditor.getMobileTextEditAttr()); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,42 @@ |
|||||||
|
package com.fr.design.widget.ui.mobile; |
||||||
|
|
||||||
|
import com.fr.design.foldablepane.UIExpandablePane; |
||||||
|
import com.fr.design.i18n.Toolkit; |
||||||
|
import com.fr.design.layout.FRGUIPaneFactory; |
||||||
|
import com.fr.design.widget.mobile.WidgetMobilePane; |
||||||
|
import com.fr.design.widget.ui.designer.mobile.component.MobilePasswordEditSettingPane; |
||||||
|
import com.fr.design.widget.ui.designer.mobile.component.MobileTextEditSettingPane; |
||||||
|
import com.fr.form.ui.TextEditor; |
||||||
|
import com.fr.form.ui.Widget; |
||||||
|
|
||||||
|
import java.awt.BorderLayout; |
||||||
|
|
||||||
|
/** |
||||||
|
* 密码控件移动端属性 |
||||||
|
* |
||||||
|
* @author Coral.Chen |
||||||
|
* @since 11.0 |
||||||
|
* Created on 2023/4/11 |
||||||
|
*/ |
||||||
|
public class PasswordMobilePane extends WidgetMobilePane { |
||||||
|
private MobileTextEditSettingPane textSettingPane; |
||||||
|
|
||||||
|
@Override |
||||||
|
protected void init() { |
||||||
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
||||||
|
textSettingPane = new MobilePasswordEditSettingPane(); |
||||||
|
this.add(new UIExpandablePane(Toolkit.i18nText("Fine-Design_Report_Advanced"), 280, 20, textSettingPane), BorderLayout.NORTH); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void populate(Widget widget) { |
||||||
|
TextEditor textEditor = (TextEditor) widget; |
||||||
|
textSettingPane.populateBean(textEditor.getMobileTextEditAttr()); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void update(Widget widget) { |
||||||
|
TextEditor textEditor = (TextEditor) widget; |
||||||
|
textSettingPane.updateBean(textEditor.getMobileTextEditAttr()); |
||||||
|
} |
||||||
|
} |
@ -1,38 +0,0 @@ |
|||||||
package com.fr.design.widget.ui.mobile; |
|
||||||
|
|
||||||
import com.fr.base.mobile.MobileScanCodeAttr; |
|
||||||
import com.fr.design.foldablepane.UIExpandablePane; |
|
||||||
import com.fr.design.i18n.Toolkit; |
|
||||||
import com.fr.design.layout.FRGUIPaneFactory; |
|
||||||
import com.fr.design.widget.mobile.WidgetMobilePane; |
|
||||||
import com.fr.design.widget.ui.designer.mobile.component.MobileTextFieldInputSettingPane; |
|
||||||
import com.fr.form.ui.TextEditor; |
|
||||||
import com.fr.form.ui.Widget; |
|
||||||
import java.awt.BorderLayout; |
|
||||||
|
|
||||||
|
|
||||||
public class ScanCodeMobilePane extends WidgetMobilePane { |
|
||||||
|
|
||||||
private MobileTextFieldInputSettingPane settingPane; |
|
||||||
|
|
||||||
@Override |
|
||||||
protected void init() { |
|
||||||
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
||||||
settingPane = new MobileTextFieldInputSettingPane(); |
|
||||||
this.add(new UIExpandablePane(Toolkit.i18nText("Fine-Design_Report_Advanced"), 280, 20, settingPane), BorderLayout.NORTH); |
|
||||||
} |
|
||||||
|
|
||||||
@Override |
|
||||||
public void populate(Widget widget) { |
|
||||||
MobileScanCodeAttr mobileScanCodeAttr = ((TextEditor) widget).getMobileScanCodeAttr(); |
|
||||||
settingPane.populateBean(mobileScanCodeAttr); |
|
||||||
} |
|
||||||
|
|
||||||
@Override |
|
||||||
public void update(Widget widget) { |
|
||||||
MobileScanCodeAttr mobileScanCodeAttr = ((TextEditor) widget).getMobileScanCodeAttr(); |
|
||||||
settingPane.updateBean(mobileScanCodeAttr); |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
} |
|
@ -0,0 +1,42 @@ |
|||||||
|
package com.fr.design.widget.ui.mobile; |
||||||
|
|
||||||
|
import com.fr.design.foldablepane.UIExpandablePane; |
||||||
|
import com.fr.design.i18n.Toolkit; |
||||||
|
import com.fr.design.layout.FRGUIPaneFactory; |
||||||
|
import com.fr.design.widget.mobile.WidgetMobilePane; |
||||||
|
import com.fr.design.widget.ui.designer.mobile.component.MobileTextAreaSettingPane; |
||||||
|
import com.fr.design.widget.ui.designer.mobile.component.MobileTextEditSettingPane; |
||||||
|
import com.fr.form.ui.TextEditor; |
||||||
|
import com.fr.form.ui.Widget; |
||||||
|
|
||||||
|
import java.awt.BorderLayout; |
||||||
|
|
||||||
|
/** |
||||||
|
* 文本域控件移动端属性 |
||||||
|
* |
||||||
|
* @author Coral.Chen |
||||||
|
* @since 11.0 |
||||||
|
* Created on 2023/4/11 |
||||||
|
*/ |
||||||
|
public class TextAreaMobilePane extends WidgetMobilePane { |
||||||
|
private MobileTextEditSettingPane textSettingPane; |
||||||
|
|
||||||
|
@Override |
||||||
|
protected void init() { |
||||||
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
||||||
|
textSettingPane = new MobileTextAreaSettingPane(); |
||||||
|
this.add(new UIExpandablePane(Toolkit.i18nText("Fine-Design_Report_Advanced"), 280, 20, textSettingPane), BorderLayout.NORTH); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void populate(Widget widget) { |
||||||
|
TextEditor textEditor = (TextEditor) widget; |
||||||
|
textSettingPane.populateBean(textEditor.getMobileTextEditAttr()); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void update(Widget widget) { |
||||||
|
TextEditor textEditor = (TextEditor) widget; |
||||||
|
textSettingPane.updateBean(textEditor.getMobileTextEditAttr()); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,53 @@ |
|||||||
|
package com.fr.design.widget.ui.mobile; |
||||||
|
|
||||||
|
import com.fr.design.foldablepane.UIExpandablePane; |
||||||
|
import com.fr.design.i18n.Toolkit; |
||||||
|
import com.fr.design.layout.FRGUIPaneFactory; |
||||||
|
import com.fr.design.widget.mobile.WidgetMobilePane; |
||||||
|
import com.fr.design.widget.ui.designer.mobile.component.MobileTextEditSettingPane; |
||||||
|
import com.fr.design.widget.ui.designer.mobile.component.MobileTextFieldInputSettingPane; |
||||||
|
import com.fr.form.ui.TextEditor; |
||||||
|
import com.fr.form.ui.Widget; |
||||||
|
|
||||||
|
import javax.swing.JPanel; |
||||||
|
import java.awt.BorderLayout; |
||||||
|
|
||||||
|
|
||||||
|
public class TextEditorMobilePane extends WidgetMobilePane { |
||||||
|
|
||||||
|
/** |
||||||
|
* 输入方式 |
||||||
|
*/ |
||||||
|
private MobileTextFieldInputSettingPane settingPane; |
||||||
|
/** |
||||||
|
* 输入框属性配置 |
||||||
|
*/ |
||||||
|
private MobileTextEditSettingPane textSettingPane; |
||||||
|
|
||||||
|
@Override |
||||||
|
protected void init() { |
||||||
|
JPanel container = FRGUIPaneFactory.createVerticalFlowLayout_S_Pane(true); |
||||||
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
||||||
|
settingPane = new MobileTextFieldInputSettingPane(); |
||||||
|
textSettingPane = new MobileTextEditSettingPane(); |
||||||
|
container.add(settingPane); |
||||||
|
container.add(textSettingPane); |
||||||
|
this.add(new UIExpandablePane(Toolkit.i18nText("Fine-Design_Report_Advanced"), 280, 20, container), BorderLayout.NORTH); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void populate(Widget widget) { |
||||||
|
TextEditor textEditor = (TextEditor) widget; |
||||||
|
settingPane.populateBean(textEditor.getMobileScanCodeAttr()); |
||||||
|
textSettingPane.populateBean(textEditor.getMobileTextEditAttr()); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void update(Widget widget) { |
||||||
|
TextEditor textEditor = (TextEditor) widget; |
||||||
|
settingPane.updateBean(textEditor.getMobileScanCodeAttr()); |
||||||
|
textSettingPane.updateBean(textEditor.getMobileTextEditAttr()); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
} |
Loading…
Reference in new issue