You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pu...@apache.org on 2020/12/17 14:45:41 UTC
[royale-asjs] branch develop updated: Update UIComponent.as added
dragComplete and dragOver Event
This is an automated email from the ASF dual-hosted git repository.
pushminakazi pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new d74f25d Update UIComponent.as added dragComplete and dragOver Event
d74f25d is described below
commit d74f25d523e14c5b4e3bc9872d92fecd1ee9d561
Author: pashminakazi <42...@users.noreply.github.com>
AuthorDate: Thu Dec 17 19:45:31 2020 +0500
Update UIComponent.as added dragComplete and dragOver Event
---
.../src/main/royale/mx/core/UIComponent.as | 73 ++++++++++++++++++++++
1 file changed, 73 insertions(+)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
index b7d88c2..a5a62b7 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
@@ -444,6 +444,79 @@ import org.apache.royale.utils.ClassSelectorList;
[Event(name="keyUp", type="mx.events.KeyboardEvent")]
[Event(name="keyDown", type="mx.events.KeyboardEvent")]
+
+/**
+ * Dispatched when the object has moved.
+ *
+ * <p>You can move the component by setting the <code>x</code>
+ * or <code>y</code> properties, by calling the <code>move()</code>
+ * method, by setting one
+ * of the following properties either on the component or on other
+ * components such that the LayoutManager needs to change the
+ * <code>x</code> or <code>y</code> properties of the component:</p>
+ *
+ * <ul>
+ * <li><code>minWidth</code></li>
+ * <li><code>minHeight</code></li>
+ * <li><code>maxWidth</code></li>
+ * <li><code>maxHeight</code></li>
+ * <li><code>explicitWidth</code></li>
+ * <li><code>explicitHeight</code></li>
+ * </ul>
+ *
+ * <p>When you call the <code>move()</code> method, the <code>move</code>
+ * event is dispatched before the method returns.
+ * In all other situations, the <code>move</code> event is not dispatched
+ * until after the property changes.</p>
+ *
+ * <p>This event only dispatched when there are one or more
+ * relevant listeners attached to the dispatching object.</p>
+ *
+ * @eventType mx.events.DragEvent.DRAG_COMPLETE
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+[Event(name="dragComplete", type="mx.events.DragEvent")]
+
+/**
+ * Dispatched when the object has moved.
+ *
+ * <p>You can move the component by setting the <code>x</code>
+ * or <code>y</code> properties, by calling the <code>move()</code>
+ * method, by setting one
+ * of the following properties either on the component or on other
+ * components such that the LayoutManager needs to change the
+ * <code>x</code> or <code>y</code> properties of the component:</p>
+ *
+ * <ul>
+ * <li><code>minWidth</code></li>
+ * <li><code>minHeight</code></li>
+ * <li><code>maxWidth</code></li>
+ * <li><code>maxHeight</code></li>
+ * <li><code>explicitWidth</code></li>
+ * <li><code>explicitHeight</code></li>
+ * </ul>
+ *
+ * <p>When you call the <code>move()</code> method, the <code>move</code>
+ * event is dispatched before the method returns.
+ * In all other situations, the <code>move</code> event is not dispatched
+ * until after the property changes.</p>
+ *
+ * <p>This event only dispatched when there are one or more
+ * relevant listeners attached to the dispatching object.</p>
+ *
+ * @eventType mx.events.DragEvent.DRAG_OVER
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+[Event(name="dragOver", type="mx.events.DragEvent")]
+
/**
* The main color for a component.
*