⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dragablepanel.js

📁 xiorkflow工作流源码 是一个java开发的工作流源码
💻 JS
字号:
/**
 * <p>Title: DragablePanel</p>
 * <p>Description: 使用左坐标、上坐标定位。</p>
 * <p>Copyright: Copyright (c) xio.name 2006</p>
 * @author xio
 */function DragablePanel(ui, container) {    this.base = Panel;    this.base(ui);    this.setPosition("absolute");    this.setCursor(Cursor.MOVE);    this.container = container;    this.addMouseListener(new DragablePanelMouseListener(this, container));}DragablePanel.prototype = new Panel();DragablePanel.prototype.toString = function () {    return "[Component,Panel,DragablePanel]";};///** * */function DragablePanelMouseListener(source, container) {    this.source = source;    this.container = container;}DragablePanelMouseListener.prototype = new MouseListener();DragablePanelMouseListener.prototype.onMouseDown = function (e) {    var theButton = e.button;    if (theButton == Browser.BUTTON_LEFT) {        this.container.setDragSource(this.source);        this.container.setDragCoord(Toolkit.getContainerCoord(e, this.container));    }};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -