From 425357ec3f5e39e4da27eb26cfe99f383c662859 Mon Sep 17 00:00:00 2001 From: "yaoh.wu" Date: Wed, 25 Oct 2017 14:11:06 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-5148=20=E5=8F=AA=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E4=B8=AD=E6=96=87=E6=90=9C=E7=B4=A2=E7=9A=84=E4=B8=8B=E6=8B=89?= =?UTF-8?q?=E6=A1=86=E6=8E=A7=E4=BB=B6=20=E6=8F=92=E4=BB=B6=E5=85=BC?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AccessibleDictionaryEditor.java | 30 +++++++++++++++---- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/designer_base/src/com/fr/design/mainframe/widget/accessibles/AccessibleDictionaryEditor.java b/designer_base/src/com/fr/design/mainframe/widget/accessibles/AccessibleDictionaryEditor.java index 735bbe002d..c2195512a3 100644 --- a/designer_base/src/com/fr/design/mainframe/widget/accessibles/AccessibleDictionaryEditor.java +++ b/designer_base/src/com/fr/design/mainframe/widget/accessibles/AccessibleDictionaryEditor.java @@ -1,14 +1,12 @@ package com.fr.design.mainframe.widget.accessibles; -import javax.swing.*; - import com.fr.data.Dictionary; -import com.fr.design.mainframe.widget.wrappers.DictionaryWrapper; -import com.fr.design.present.dict.DictionaryPane; import com.fr.design.dialog.BasicDialog; import com.fr.design.dialog.DialogActionAdapter; +import com.fr.design.mainframe.widget.wrappers.DictionaryWrapper; +import com.fr.design.present.dict.DictionaryPane; -import java.awt.*; +import javax.swing.SwingUtilities; public class AccessibleDictionaryEditor extends UneditableAccessibleEditor { @@ -38,4 +36,26 @@ public class AccessibleDictionaryEditor extends UneditableAccessibleEditor { dictPane.populateBean((Dictionary) getValue()); dlg.setVisible(true); } + + + /** + * @param dictionary dictionary + * @deprecated 这个方法只用于兼容8.0下拉框类型控件的插件, + * 推荐使用{@link UneditableAccessibleEditor#setValue(java.lang.Object)} + */ + @Deprecated + public void populateBean(Dictionary dictionary) { + this.setValue(dictionary); + } + + + /** + * @return Dictionary dictionary + * @deprecated 这个方法只用于兼容8.0下拉框类型控件的插件, + * 推荐使用{@link UneditableAccessibleEditor#getValue()} + */ + @Deprecated + public Dictionary updateBean() { + return (Dictionary) this.getValue(); + } } \ No newline at end of file