Adobe® Flash® Platform için ActionScript® 3.0 Başvurusu
Ana Sayfa  |  Paket ve Sınıf Listesini Gizle |  Paketler  |  Sınıflar  |  Yenilikler  |  Dizin  |  Ekler  |  Niçin İngilizce?
Filtreler: Sunucudan Veri Alınıyor...
Sunucudan Veri Alınıyor...
mx.managers 

DragManager  - AS3 Flex

Paketmx.managers
Sınıfpublic class DragManager
Miras AlmaDragManager Inheritance Object

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 3
Çalışma Zamanı Sürümleri: Flash Player 9, AIR 1.1

The DragManager class manages drag and drop operations, which let you move data from one place to another in a Flex application. For example, you can select an object, such as an item in a List control or a Flex control, such as an Image control, and then drag it over another component to add it to that component.

All methods and properties of the DragManager are static, so you do not need to create an instance of it.

All Flex components support drag and drop operations. Flex provides additional support for drag and drop to the List, Tree, and DataGrid controls.

When the user selects an item with the mouse, the selected component is called the drag initiator. The image displayed during the drag operation is called the drag proxy.

When the user moves the drag proxy over another component, the dragEnter event is sent to that component. If the component accepts the drag, it becomes the drop target and receives dragOver, dragExit, and dragDrop events.

When the drag is complete, a dragComplete event is sent to the drag initiator.

İlgili API Öğeleri



Genel Özellikler
 ÖzellikTanımlayan:
 Inheritedconstructor : Object
Belirli bir nesne örneği için sınıf nesnesine veya yapıcı işlevine bir başvuru.
Object
  isDragging : Boolean
[statik] [salt okunur] Read-only property that returns true if a drag is in progress.
DragManager
Genel Yöntemler
 YöntemTanımlayan:
  
[statik] Call this method from your dragEnter event handler if you accept the drag/drop data.
DragManager
  
doDrag(dragInitiator:IUIComponent, dragSource:DragSource, mouseEvent:MouseEvent, dragImage:IFlexDisplayObject = null, xOffset:Number = 0, yOffset:Number = 0, imageAlpha:Number = 0.5, allowMove:Boolean = true):void
[statik] Initiates a drag and drop operation.
DragManager
  
[statik] Returns the current drag and drop feedback.
DragManager
 Inherited
Bir nesnenin belirli bir özelliğinin tanımlı olup olmadığını gösterir.
Object
 Inherited
Object sınıfının bir örneğinin parametre olarak belirtilen nesnenin prototip zincirinde olup olmadığını gösterir.
Object
 Inherited
Belirtilen özelliğin bulunup bulunmadığını ve numaralandırılabilir olup olmadığını gösterir.
Object
 Inherited
Dinamik bir özelliğin döngü işlemlerinde kullanılabilirliğini ayarlar.
Object
  
[statik] Sets the feedback indicator for the drag and drop operation.
DragManager
 Inherited
Bu nesnenin, yerel ayara özel kurallara göre biçimlendirilmiş dize temsilini döndürür.
Object
 Inherited
Belirtilen nesnenin dize olarak temsil edilen halini döndürür.
Object
 Inherited
Belirtilen nesnenin temel değerini döndürür.
Object
Stiller

Stiller ortaktır veya belirli bir temayla ilişkilendilir. Stil ortak değilse herhangi bir temayla ilişkilendirilebilir. Stil belirli bir temayla ilişkilendirilirse, yalnızca uygulamanızın o temayı kullanması durumunda kullanılabilir.

Yaygın Stiller
 Stil Açıklama Tanımlayan:
  
copyCursor
Tür: Class CSS Mirası: Hayır
Dil Sürümü: ActionScript 3.0  Ürün Sürümü: Flex 3  Çalışma Zamanı Sürümleri: Flash9, AIR 1.1

Cursor displayed during a copy operation. The default value is the "mx.skins.cursor.DragCopy" symbol in the Assets.swf file.
DragManager
  
defaultDragImageSkin
Tür: Class CSS Mirası: Hayır
Dil Sürümü: ActionScript 3.0  Ürün Sürümü: Flex 3  Çalışma Zamanı Sürümleri: Flash9, AIR 1.1

Skin used to draw the default drag image, which is also called the drag proxy. Varsayılan değer şudur mx.skins.halo.DefaultDragImage (for both Halo and Spark themes).
DragManager
  
linkCursor
Tür: Class CSS Mirası: Hayır
Dil Sürümü: ActionScript 3.0  Ürün Sürümü: Flex 3  Çalışma Zamanı Sürümleri: Flash9, AIR 1.1

Cursor displayed during a link operation. The default value is the "mx.skins.cursor.DragLink" symbol in the Assets.swf file.
DragManager
  
moveCursor
Tür: Class CSS Mirası: Hayır
Dil Sürümü: ActionScript 3.0  Ürün Sürümü: Flex 3  Çalışma Zamanı Sürümleri: Flash9, AIR 1.1

Cursor displayed during a move operation. The default value is the "mx.skins.cursor.DragMove" symbol in the Assets.swf file.
DragManager
  
rejectCursor
Tür: Class CSS Mirası: Hayır
Dil Sürümü: ActionScript 3.0  Ürün Sürümü: Flex 3  Çalışma Zamanı Sürümleri: Flash9, AIR 1.1

Cursor displayed for a reject operation. The default value is the "mx.skins.cursor.DragReject" symbol in the Assets.swf file.
DragManager
Genel Sabitler
 SabitTanımlayan:
  COPY : String = "copy"
[statik] Constant that specifies that the type of drag action is "copy".
DragManager
  LINK : String = "link"
[statik] Constant that specifies that the type of drag action is "link".
DragManager
  MOVE : String = "move"
[statik] Constant that specifies that the type of drag action is "move".
DragManager
  NONE : String = "none"
[statik] Constant that specifies that the type of drag action is "none".
DragManager
Özellik Ayrıntısı

isDragging

özellik
isDragging:Boolean  [salt okunur]

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 3
Çalışma Zamanı Sürümleri: Flash Player 9, AIR 1.1

Read-only property that returns true if a drag is in progress.



Uygulama
    public static function get isDragging():Boolean
Yöntem Ayrıntısı

acceptDragDrop

()yöntem
public static function acceptDragDrop(target:IUIComponent):void

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 3
Çalışma Zamanı Sürümleri: Flash Player 9, AIR 1.1

Call this method from your dragEnter event handler if you accept the drag/drop data. Typically, you cast event.target to the data type of the drop target. In the following example, the drop target is an MX Canvas container:

DragManager.acceptDragDrop(Canvas(event.target));

Parametreler

target:IUIComponent — The drop target accepting the drag.

doDrag

()yöntem 
public static function doDrag(dragInitiator:IUIComponent, dragSource:DragSource, mouseEvent:MouseEvent, dragImage:IFlexDisplayObject = null, xOffset:Number = 0, yOffset:Number = 0, imageAlpha:Number = 0.5, allowMove:Boolean = true):void

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 3
Çalışma Zamanı Sürümleri: Flash Player 9, AIR 1.1

Initiates a drag and drop operation.

Parametreler

dragInitiator:IUIComponent — IUIComponent that specifies the component initiating the drag.
 
dragSource:DragSource — DragSource object that contains the data being dragged.
 
mouseEvent:MouseEvent — The MouseEvent that contains the mouse information for the start of the drag.
 
dragImage:IFlexDisplayObject (default = null) — The image to drag. This argument is optional. If omitted, a standard drag rectangle is used during the drag and drop operation. If you specify an image, you must explicitly set a height and width of the image or else it will not appear.
 
xOffset:Number (default = 0) — Number that specifies the x offset, in pixels, for the dragImage. This argument is optional. If omitted, the drag proxy is shown at the upper-left corner of the drag initiator. The offset is expressed in pixels from the left edge of the drag proxy to the left edge of the drag initiator, and is usually a negative number.
 
yOffset:Number (default = 0) — Number that specifies the y offset, in pixels, for the dragImage. This argument is optional. If omitted, the drag proxy is shown at the upper-left corner of the drag initiator. The offset is expressed in pixels from the top edge of the drag proxy to the top edge of the drag initiator, and is usually a negative number.
 
imageAlpha:Number (default = 0.5) — Number that specifies the alpha value used for the drag image. This argument is optional. If omitted, the default alpha value is 0.5. A value of 0.0 indicates that the image is transparent; a value of 1.0 indicates it is fully opaque.
 
allowMove:Boolean (default = true) — Indicates if a drop target is allowed to move the dragged data.

getFeedback

()yöntem 
public static function getFeedback():String

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 3
Çalışma Zamanı Sürümleri: Flash Player 9, AIR 1.1

Returns the current drag and drop feedback.

Döndürür
String — Possible return values are DragManager.COPY, DragManager.MOVE, DragManager.LINK, or DragManager.NONE.

showFeedback

()yöntem 
public static function showFeedback(feedback:String):void

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 3
Çalışma Zamanı Sürümleri: Flash Player 9, AIR 1.1

Sets the feedback indicator for the drag and drop operation. Possible values are DragManager.COPY, DragManager.MOVE, DragManager.LINK, or DragManager.NONE.

Parametreler

feedback:String — The type of feedback indicator to display.

Sabit Ayrıntısı

COPY

Sabit
public static const COPY:String = "copy"

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 3
Çalışma Zamanı Sürümleri: Flash Player 9, AIR 1.1

Constant that specifies that the type of drag action is "copy".

LINK

Sabit 
public static const LINK:String = "link"

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 3
Çalışma Zamanı Sürümleri: Flash Player 9, AIR 1.1

Constant that specifies that the type of drag action is "link".

MOVE

Sabit 
public static const MOVE:String = "move"

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 3
Çalışma Zamanı Sürümleri: Flash Player 9, AIR 1.1

Constant that specifies that the type of drag action is "move".

NONE

Sabit 
public static const NONE:String = "none"

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 3
Çalışma Zamanı Sürümleri: Flash Player 9, AIR 1.1

Constant that specifies that the type of drag action is "none".





[ X ]Niçin İngilizce?
ActionScript 3.0 Başvurusu'ndaki içerik İngilizce görünür

ActionScript 3.0 Başvurusu'nun tüm bölümleri tüm dillere çevrilmemiştir. Bir dil öğesi çevrilmediğinde İngilizce görünür. Örneğin, ga.controls.HelpBox sınıfı hiçbir dile çevrilmez. Bu nedenle, başvurunun Türkçe versiyonunda ga.controls.HelpBox sınıfı İngilizce görünür.