|
|
@ -27,19 +27,16 @@ import com.fr.design.mod.bean.ContentChangeItem; |
|
|
|
import com.fr.design.mod.event.TableDataModifyEvent; |
|
|
|
import com.fr.design.mod.event.TableDataModifyEvent; |
|
|
|
import com.fr.design.utils.ComponentUtils; |
|
|
|
import com.fr.design.utils.ComponentUtils; |
|
|
|
import com.fr.event.EventDispatcher; |
|
|
|
import com.fr.event.EventDispatcher; |
|
|
|
import com.fr.form.share.editor.SharableEditorProvider; |
|
|
|
|
|
|
|
import com.fr.form.share.SharableWidgetProvider; |
|
|
|
import com.fr.form.share.SharableWidgetProvider; |
|
|
|
import com.fr.form.share.ShareLoader; |
|
|
|
import com.fr.form.share.ShareLoader; |
|
|
|
|
|
|
|
import com.fr.form.share.editor.SharableEditorProvider; |
|
|
|
import com.fr.form.ui.Widget; |
|
|
|
import com.fr.form.ui.Widget; |
|
|
|
import com.fr.stable.Constants; |
|
|
|
import com.fr.stable.Constants; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.Collections; |
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.JWindow; |
|
|
|
import javax.swing.JWindow; |
|
|
|
import java.util.List; |
|
|
|
import javax.swing.SwingUtilities; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
import java.awt.Color; |
|
|
|
import java.awt.Color; |
|
|
|
import java.awt.Component; |
|
|
|
import java.awt.Component; |
|
|
|
import java.awt.Point; |
|
|
|
import java.awt.Point; |
|
|
@ -49,7 +46,10 @@ import java.awt.dnd.DropTarget; |
|
|
|
import java.awt.dnd.DropTargetDragEvent; |
|
|
|
import java.awt.dnd.DropTargetDragEvent; |
|
|
|
import java.awt.dnd.DropTargetDropEvent; |
|
|
|
import java.awt.dnd.DropTargetDropEvent; |
|
|
|
import java.awt.dnd.DropTargetEvent; |
|
|
|
import java.awt.dnd.DropTargetEvent; |
|
|
|
import javax.swing.SwingUtilities; |
|
|
|
import java.util.Collections; |
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 添加模式下鼠标事件处理器。 |
|
|
|
* 添加模式下鼠标事件处理器。 |
|
|
@ -141,7 +141,9 @@ public class FormCreatorDropTarget extends DropTarget { |
|
|
|
} |
|
|
|
} |
|
|
|
designer.getSelectionModel().setSelectedCreators( |
|
|
|
designer.getSelectionModel().setSelectedCreators( |
|
|
|
FormSelectionUtils.rebuildSelection(xCreator, new Widget[]{widget})); |
|
|
|
FormSelectionUtils.rebuildSelection(xCreator, new Widget[]{widget})); |
|
|
|
|
|
|
|
if (!addingModel.isAddedIllegal()) { |
|
|
|
designer.getEditListenerTable().fireCreatorModified(addingModel.getXCreator(), DesignerEvent.CREATOR_ADDED); |
|
|
|
designer.getEditListenerTable().fireCreatorModified(addingModel.getXCreator(), DesignerEvent.CREATOR_ADDED); |
|
|
|
|
|
|
|
} |
|
|
|
tabDragInner.tryDragIn(); |
|
|
|
tabDragInner.tryDragIn(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
Toolkit.getDefaultToolkit().beep(); |
|
|
|
Toolkit.getDefaultToolkit().beep(); |
|
|
|