|
|
@ -9,6 +9,7 @@ import com.fr.design.mainframe.widget.renderer.PictureRenderer; |
|
|
|
import com.fr.design.mainframe.widget.renderer.UrlLinkRenderer; |
|
|
|
import com.fr.design.mainframe.widget.renderer.UrlLinkRenderer; |
|
|
|
import com.fr.form.ui.PictureWidget; |
|
|
|
import com.fr.form.ui.PictureWidget; |
|
|
|
import com.fr.general.IOUtils; |
|
|
|
import com.fr.general.IOUtils; |
|
|
|
|
|
|
|
import com.fr.general.locale.image.I18nImage; |
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
|
import java.awt.Dimension; |
|
|
|
import java.awt.Dimension; |
|
|
|
import java.awt.Image; |
|
|
|
import java.awt.Image; |
|
|
@ -59,7 +60,7 @@ public class XPicture extends XWidgetCreator { |
|
|
|
imgPanel.setBackgroundImage((Image) value); |
|
|
|
imgPanel.setBackgroundImage((Image) value); |
|
|
|
imgPanel.setImageDisplayMode(pictureWidget.getShowType()); |
|
|
|
imgPanel.setImageDisplayMode(pictureWidget.getShowType()); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
imgPanel.setBackgroundImage(IOUtils.readImage("com/fr/design/images/form/designer/widget/picture_widget_designer_bg.png")); |
|
|
|
imgPanel.setBackgroundImage(I18nImage.getImage("/com/fr/design/images/form/designer/widget/picture_widget_designer_bg.png")); |
|
|
|
imgPanel.setImageDisplayMode(0); |
|
|
|
imgPanel.setImageDisplayMode(0); |
|
|
|
} |
|
|
|
} |
|
|
|
this.editor.add(imgPanel, "Center"); |
|
|
|
this.editor.add(imgPanel, "Center"); |
|
|
|