|
|
|
@ -4,7 +4,6 @@ import com.fr.base.GraphHelper;
|
|
|
|
|
import com.fr.base.iofile.attr.SharableAttrMark; |
|
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
|
import com.fr.design.base.mode.DesignModeContext; |
|
|
|
|
import com.fr.design.designer.beans.models.DraggingModel; |
|
|
|
|
import com.fr.design.designer.creator.XCreator; |
|
|
|
|
import com.fr.design.form.util.XCreatorConstants; |
|
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
@ -12,24 +11,23 @@ import com.fr.design.i18n.Toolkit;
|
|
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
import com.fr.design.login.DesignerLoginHelper; |
|
|
|
|
import com.fr.design.login.DesignerLoginSource; |
|
|
|
|
import com.fr.design.mainframe.FormDesigner; |
|
|
|
|
import com.fr.design.mainframe.WidgetToolBarPane; |
|
|
|
|
import com.fr.design.mainframe.share.collect.ComponentCollector; |
|
|
|
|
import com.fr.design.mainframe.share.ui.local.LocalWidgetRepoPane; |
|
|
|
|
import com.fr.design.mainframe.share.ui.online.AbstractOnlineWidgetSelectPane; |
|
|
|
|
import com.fr.design.mainframe.share.ui.online.CarouselStateManger; |
|
|
|
|
import com.fr.form.share.DefaultSharableWidget; |
|
|
|
|
import com.fr.form.share.group.DefaultShareGroup; |
|
|
|
|
import com.fr.design.mainframe.share.ui.local.LocalWidgetRepoPane; |
|
|
|
|
import com.fr.design.mainframe.share.ui.online.OnlineWidgetRepoPane; |
|
|
|
|
import com.fr.design.mainframe.share.util.DownloadUtils; |
|
|
|
|
import com.fr.design.mainframe.share.util.ShareComponentUtils; |
|
|
|
|
import com.fr.design.mainframe.share.util.ShareUIUtils; |
|
|
|
|
import com.fr.design.ui.util.UIUtil; |
|
|
|
|
import com.fr.form.share.DefaultSharableWidget; |
|
|
|
|
import com.fr.form.share.Group; |
|
|
|
|
import com.fr.form.share.SharableWidgetProvider; |
|
|
|
|
import com.fr.form.share.bean.OnlineShareWidget; |
|
|
|
|
import com.fr.form.share.constants.ShareComponentConstants; |
|
|
|
|
import com.fr.form.share.group.DefaultShareGroup; |
|
|
|
|
import com.fr.form.share.group.DefaultShareGroupManager; |
|
|
|
|
import com.fr.form.share.Group; |
|
|
|
|
import com.fr.form.share.utils.ShareUtils; |
|
|
|
|
import com.fr.form.ui.AbstractBorderStyleWidget; |
|
|
|
|
import com.fr.form.ui.Widget; |
|
|
|
@ -208,13 +206,7 @@ public class OnlineWidgetBlock extends AbstractOnlineWidgetBlock {
|
|
|
|
|
} else { |
|
|
|
|
xCreator = ShareComponentUtils.createXCreator(creatorSource, shareId, bindInfo); |
|
|
|
|
} |
|
|
|
|
FormDesigner designer = WidgetToolBarPane.getTarget(); |
|
|
|
|
designer.setDraggingModel(new DraggingModel() |
|
|
|
|
.designer(designer) |
|
|
|
|
.creator(xCreator) |
|
|
|
|
.lastPressEvent(lastPressEvent) |
|
|
|
|
.dragEvent(e)); |
|
|
|
|
designer.startDraggingNewWidget(xCreator); |
|
|
|
|
WidgetToolBarPane.getTarget().startDraggingNewWidget(xCreator, lastPressEvent, e); |
|
|
|
|
lastPressEvent = null; |
|
|
|
|
this.setBorder(null); |
|
|
|
|
} |
|
|
|
|