|
|
@ -4,6 +4,7 @@ import com.fr.base.GraphHelper; |
|
|
|
import com.fr.base.iofile.attr.SharableAttrMark; |
|
|
|
import com.fr.base.iofile.attr.SharableAttrMark; |
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
import com.fr.design.base.mode.DesignModeContext; |
|
|
|
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.designer.creator.XCreator; |
|
|
|
import com.fr.design.form.util.XCreatorConstants; |
|
|
|
import com.fr.design.form.util.XCreatorConstants; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
@ -11,6 +12,7 @@ import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
import com.fr.design.login.DesignerLoginHelper; |
|
|
|
import com.fr.design.login.DesignerLoginHelper; |
|
|
|
import com.fr.design.login.DesignerLoginSource; |
|
|
|
import com.fr.design.login.DesignerLoginSource; |
|
|
|
|
|
|
|
import com.fr.design.mainframe.FormDesigner; |
|
|
|
import com.fr.design.mainframe.WidgetToolBarPane; |
|
|
|
import com.fr.design.mainframe.WidgetToolBarPane; |
|
|
|
import com.fr.design.mainframe.share.collect.ComponentCollector; |
|
|
|
import com.fr.design.mainframe.share.collect.ComponentCollector; |
|
|
|
import com.fr.design.mainframe.share.ui.online.AbstractOnlineWidgetSelectPane; |
|
|
|
import com.fr.design.mainframe.share.ui.online.AbstractOnlineWidgetSelectPane; |
|
|
@ -163,6 +165,12 @@ public class OnlineWidgetBlock extends AbstractOnlineWidgetBlock { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void mouseReleased(MouseEvent e) { |
|
|
|
|
|
|
|
super.mouseReleased(e); |
|
|
|
|
|
|
|
WidgetToolBarPane.getTarget().stopDragging(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void mouseDragged(MouseEvent e) { |
|
|
|
public void mouseDragged(MouseEvent e) { |
|
|
|
if (!getWidget().isCompatibleWithCurrentEnv()) { |
|
|
|
if (!getWidget().isCompatibleWithCurrentEnv()) { |
|
|
@ -200,7 +208,13 @@ public class OnlineWidgetBlock extends AbstractOnlineWidgetBlock { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
xCreator = ShareComponentUtils.createXCreator(creatorSource, shareId, bindInfo); |
|
|
|
xCreator = ShareComponentUtils.createXCreator(creatorSource, shareId, bindInfo); |
|
|
|
} |
|
|
|
} |
|
|
|
WidgetToolBarPane.getTarget().startDraggingNewWidget(xCreator, lastPressEvent, e); |
|
|
|
FormDesigner designer = WidgetToolBarPane.getTarget(); |
|
|
|
|
|
|
|
designer.setDraggingModel(new DraggingModel() |
|
|
|
|
|
|
|
.designer(designer) |
|
|
|
|
|
|
|
.creator(xCreator) |
|
|
|
|
|
|
|
.lastPressEvent(lastPressEvent) |
|
|
|
|
|
|
|
.dragEvent(e)); |
|
|
|
|
|
|
|
designer.startDraggingNewWidget(xCreator); |
|
|
|
lastPressEvent = null; |
|
|
|
lastPressEvent = null; |
|
|
|
this.setBorder(null); |
|
|
|
this.setBorder(null); |
|
|
|
} |
|
|
|
} |
|
|
|