套件 | spark.skins.spark |
類別 | public class UITextFieldGridItemRenderer |
繼承 | UITextFieldGridItemRenderer UITextField FlexTextField TextField InteractiveObject DisplayObject EventDispatcher Object |
實作 | IGridItemRenderer, IStyleClient |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 2.5 |
You can control the label text wrapping by using the wordWrap
property.
For example, setting wordWrap="false"
and variableRowHeight="false"
creates fixed height cells whose labels do not wrap.
If you do not explicitly set the wordWrap
property, wordWrap
will be set to the value of the grid's variableRowHeight
property.
UITextFieldGridItemRenderer inherits its the value of the
layoutDirection
property from its parent.
It should not be set directly on UITextFieldGridItemRenderer.
The UITextFieldGridItemRenderer class is not intended to be subclassed or copied. Create custom item renderers based on the GridItemRenderer class.
相關 API 元素
spark.components.gridClasses.GridItemRenderer
spark.skins.spark.DefaultGridItemRenderer
mx.core.FTETextField
屬性 | 定義自 | ||
---|---|---|---|
accessibilityImplementation : AccessibilityImplementation
對此 InteractiveObject 實體目前的輔助功能實作 (AccessibilityImplementation)。 | InteractiveObject | ||
accessibilityProperties : AccessibilityProperties
此顯示物件的目前輔助功能選項。 | DisplayObject | ||
alpha : Number
指出所指定物件的 Alpha 透明度值。 | DisplayObject | ||
alwaysShowSelection : Boolean
當設定為 true 而且文字欄位不在焦點中時,Flash Player 便會將文字欄位中的選取範圍反白標示為灰色。 | TextField | ||
antiAliasType : String
對此文字欄位使用的消除鋸齒類型。 | TextField | ||
automationDelegate : Object
The delegate object which is handling the automation related functionality. | UITextField | ||
automationEnabled : Boolean [唯讀]
True if this component is enabled for automation, false
otherwise. | UITextField | ||
automationName : String
Name that can be used as an identifier for this object. | UITextField | ||
automationOwner : DisplayObjectContainer [唯讀]
The owner of this component for automation purposes. | UITextField | ||
automationParent : DisplayObjectContainer [唯讀]
The parent of this component for automation purposes. | UITextField | ||
automationValue : Array [唯讀]
This value generally corresponds to the rendered appearance of the
object and should be usable for correlating the identifier with
the object as it appears visually within the application. | UITextField | ||
automationVisible : Boolean [唯讀]
True if this component is visible for automation, false
otherwise. | UITextField | ||
autoSize : String
控制文字欄位的自動調整大小和對齊方式。 | TextField | ||
background : Boolean
會指定文字欄位是否具有背景填色。 | TextField | ||
backgroundColor : uint
文字欄位背景的顏色。 | TextField | ||
baselinePosition : Number [唯讀]
The y-coordinate of the baseline of the first line of text. | UITextField | ||
blendMode : String
來自 BlendMode 類別的值,會指定要使用何種混合模式。 | DisplayObject | ||
blendShader : Shader [唯寫]
設定用來混合前景和背景的著色器。 | DisplayObject | ||
border : Boolean
會指定文字欄位是否具有邊框。 | TextField | ||
borderColor : uint
文字欄位邊框的顏色。 | TextField | ||
bottomScrollV : int [唯讀]
整數 (從 1 開始的索引),指出目前在指定之文字欄位中,可以看見的最底端字行。 | TextField | ||
cacheAsBitmap : Boolean
如果設定為 true,Flash 執行階段會快取顯示物件的內部點陣圖表示法。 | DisplayObject | ||
cacheAsBitmapMatrix : Matrix
如果為非 null,當 cacheAsBitmap 設定為 true 時,這個 Matrix 物件會定義顯示物件的顯示方法。 | DisplayObject | ||
caretIndex : int [唯讀]
插入點 (跳脫字元) 位置的索引。 | TextField | ||
className : String [唯讀]
The name of this instance's class, such as
"DataGridItemRenderer". | UITextField | ||
column : GridColumn
The GridColumn object representing the column associated with this item renderer. | UITextFieldGridItemRenderer | ||
columnIndex : int [唯讀]
The column index for this item renderer's cell. | UITextFieldGridItemRenderer | ||
condenseWhite : Boolean
Boolean 值,指定在具有 HTML 文字的文字欄位中,是否移除額外的空白字元 (空格、斷行符號等等)。 | TextField | ||
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
contextMenu : NativeMenu
指定與此物件有關聯的快顯選單。 | InteractiveObject | ||
data : Object
The value of the data provider item for the entire row of the grid control. | UITextFieldGridItemRenderer | ||
defaultTextFormat : flash.text:TextFormat
指定套用至新插入之文字 (例如,使用者所輸入的文字,或是以 replaceSelectedText() 方法插入的文字) 的格式。 | TextField | ||
displayAsPassword : Boolean
指定文字欄位是否為密碼文字欄位。 | TextField | ||
document : Object
A reference to the document object associated with this UITextField object. | UITextField | ||
doubleClickEnabled : Boolean
會指定物件是否會收到 doubleClick 事件。 | InteractiveObject | ||
down : Boolean
The grid control's updateDisplayList() method sets this property
before calling prepare(). | UITextFieldGridItemRenderer | ||
dragging : Boolean
Contains true if the item renderer is being dragged,
typically as part of a drag and drop operation. | UITextFieldGridItemRenderer | ||
embedFonts : Boolean
會指定是否要使用內嵌的字體外框顯示。 | TextField | ||
enabled : Boolean
A Boolean value that indicates whether the component is enabled. | UITextField | ||
enableIME : Boolean [唯讀]
A flag that indicates whether the IME should
be enabled when the component receives focus. | UITextField | ||
explicitHeight : Number
Number that specifies the explicit height of the component,
in pixels, in the component's coordinates. | UITextField | ||
explicitMaxHeight : Number [唯讀]
Number that specifies the maximum height of the component,
in pixels, in the component's coordinates, if the maxHeight property
is set. | UITextField | ||
explicitMaxWidth : Number [唯讀]
Number that specifies the maximum width of the component,
in pixels, in the component's coordinates, if the maxWidth property
is set. | UITextField | ||
explicitMinHeight : Number [唯讀]
The minimum recommended height of the component to be considered
by the parent during layout. | UITextField | ||
explicitMinWidth : Number [唯讀]
The minimum recommended width of the component to be considered
by the parent during layout. | UITextField | ||
explicitWidth : Number
Number that specifies the explicit width of the component,
in pixels, in the component's coordinates. | UITextField | ||
filters : Array
索引的陣列,其中包含目前和顯示物件相關的每個濾鏡物件。 | DisplayObject | ||
focusPane : Sprite
A single Sprite object that is shared among components
and used as an overlay for drawing the focus indicator. | UITextField | ||
focusRect : Object
會指定這個物件是否會顯示焦點矩形。 | InteractiveObject | ||
grid : Grid [唯讀]
The grid control associated with this item renderer. | UITextFieldGridItemRenderer | ||
gridFitType : String
對此文字欄位使用的格線符合類型。 | TextField | ||
height : Number
會指出顯示物件的高度,以像素為單位。 | DisplayObject | ||
hovered : Boolean
Set to true when the mouse is hovered over the item renderer. | UITextFieldGridItemRenderer | ||
htmlText : String
包含 HTML 表示方式的文字欄位內容。 | TextField | ||
ignorePadding : Boolean
If true, the paddingLeft and
paddingRight styles will not add space
around the text of the component. | UITextField | ||
imeMode : String
Specifies the IME (input method editor) mode. | UITextField | ||
includeInLayout : Boolean
Specifies whether this component is included in the layout of the
parent container. | UITextField | ||
inheritingStyles : Object
The beginning of this UITextField's chain of inheriting styles. | UITextField | ||
initialized : Boolean
A flag that determines if an object has been through all three phases
of layout validation (provided that any were required)
| UITextField | ||
isPopUp : Boolean
Set to true by the PopUpManager to indicate
that component has been popped up. | UITextField | ||
label : String
The grid control sets this property to the value of the column's
itemToLabel() method, before calling preprare().
The String to display in the item renderer. | UITextFieldGridItemRenderer | ||
length : int [唯讀]
文字欄位中的字元數。 | TextField | ||
loaderInfo : LoaderInfo [唯讀]
會傳回 LoaderInfo 物件,其中包含關於載入此顯示物件所屬之檔案的資訊。 | DisplayObject | ||
mask : DisplayObject
呼叫之顯示物件會以指定的 mask 物件遮蓋。 | DisplayObject | ||
maxChars : int
文字欄位可以包含的最大字元數,也就是使用者可輸入的字元數。 | TextField | ||
maxHeight : Number [唯讀]
The maximum recommended height of the component to be considered
by the parent during layout. | UITextField | ||
maxScrollH : int [唯讀]
scrollH 的最大值。 | TextField | ||
maxScrollV : int [唯讀]
scrollV 的最大值。 | TextField | ||
maxWidth : Number [唯讀]
The maximum recommended width of the component to be considered
by the parent during layout. | UITextField | ||
measuredHeight : Number [唯讀]
The default height of the component, in pixels. | UITextField | ||
measuredMinHeight : Number
The default minimum height of the component, in pixels. | UITextField | ||
measuredMinWidth : Number
The default minimum width of the component, in pixels. | UITextField | ||
measuredWidth : Number [唯讀]
The default width of the component, in pixels. | UITextField | ||
metaData : Object
如果中繼資料是透過 PlaceObject4 標籤與 SWF 檔案中的這個 DisplayObject 實體一同儲存,則會取得 DisplayObject 實體的中繼資料物件。 | DisplayObject | ||
minHeight : Number [唯讀]
The minimum recommended height of the component to be considered
by the parent during layout. | UITextField | ||
minWidth : Number [唯讀]
The minimum recommended width of the component to be considered
by the parent during layout. | UITextField | ||
moduleFactory : IFlexModuleFactory
The moduleFactory that is used to create TextFields in the correct SWF context. | UITextField | ||
mouseEnabled : Boolean
指定此物件是否接收滑鼠或其他使用者輸入及訊息。 | InteractiveObject | ||
mouseWheelEnabled : Boolean
Boolean 值,指出當使用者按一下文字欄位並滾動滑鼠滾輪時,Flash Player 是否會自動捲動多行文字欄位。 | TextField | ||
mouseX : Number [唯讀]
指出滑鼠或使用者輸入裝置位置的 x 座標,以像素為單位。 | DisplayObject | ||
mouseY : Number [唯讀]
指出滑鼠或使用者輸入裝置位置的 y 座標,以像素為單位。 | DisplayObject | ||
multiline : Boolean
指出欄位是否為多行文字欄位。 | TextField | ||
name : String
指出 DisplayObject 的實體名稱。 | DisplayObject | ||
needsSoftKeyboard : Boolean
指定虛擬鍵盤 (螢幕上的軟體鍵盤) 是否應在此 InteractiveObject 實體接收到焦點時顯示。 | InteractiveObject | ||
nestLevel : int
Depth of this object in the containment hierarchy. | UITextField | ||
nonInheritingStyles : Object
The beginning of this UITextField's chain of non-inheriting styles. | UITextField | ||
nonZeroTextHeight : Number [唯讀]
Unlike textHeight, this returns a non-zero value
even when the text is empty. | UITextField | ||
numLines : int [唯讀]
會定義多行文字欄位中的文字行數。 | TextField | ||
opaqueBackground : Object
會指定顯示物件是否不透明,並具有特定背景顏色。 | DisplayObject | ||
owner : DisplayObjectContainer
By default, set to the parent container of this object. | UITextField | ||
parent : DisplayObjectContainer [覆寫] [唯讀]
The parent container or component for this component. | UITextField | ||
percentHeight : Number
Specifies the height of a component as a percentage
of its parent's size. | UITextField | ||
percentWidth : Number
Specifies the width of a component as a percentage
of its parent's size. | UITextField | ||
processedDescriptors : Boolean
Set to true after the createChildren()
method creates any internal component children. | UITextField | ||
restrict : String
指出使用者能夠輸入文字欄位中的字元組。 | TextField | ||
root : DisplayObject [唯讀]
對載入之 SWF 檔案的顯示物件而言,root 屬性就是該 SWF 檔案所呈現之顯示清單樹狀結構部分的最上層顯示物件。 | DisplayObject | ||
rotation : Number
指出 DisplayObject 實體的旋轉度數 (從該物件原本方向算起)。 | DisplayObject | ||
rotationX : Number
表示 DisplayObject 實體相對於 3D 父輩容器從原始方向旋轉的 x 軸旋轉 (以度數為單位)。 | DisplayObject | ||
rotationY : Number
表示 DisplayObject 實體相對於 3D 父輩容器從原始方向旋轉的 y 軸旋轉 (以度數為單位)。 | DisplayObject | ||
rotationZ : Number
表示 DisplayObject 實體相對於 3D 父輩容器從原始方向旋轉的 z 軸旋轉 (以度數為單位)。 | DisplayObject | ||
rowIndex : int
The grid control's updateDisplayList() method sets this property
before calling prepare().
The zero-based index of the row of the cell being rendered. | UITextFieldGridItemRenderer | ||
scale9Grid : Rectangle
目前產生效用的縮放格線。 | DisplayObject | ||
scaleX : Number
指出從註冊點套用的物件水平縮放 (百分比)。 | DisplayObject | ||
scaleY : Number
指出從物件註冊點套用的物件垂直縮放 (百分比)。 | DisplayObject | ||
scaleZ : Number
指出從物件註冊點套用的物件深度縮放 (百分比)。 | DisplayObject | ||
scrollH : int
目前的水平捲動位置。 | TextField | ||
scrollRect : Rectangle
顯示物件的捲動矩形範圍。 | DisplayObject | ||
scrollV : int
文字欄位中文字的垂直位置。 | TextField | ||
selectable : Boolean
指出文字欄位是否可選取的 Boolean 值。 | TextField | ||
selected : Boolean
The grid control's updateDisplayList() method sets this property
before calling prepare().
Contains true if the item renderer's cell is part
of the current selection. | UITextFieldGridItemRenderer | ||
selectionBeginIndex : int [唯讀]
目前選取範圍中,第一個字元的字元索引值 (從零開始)。 | TextField | ||
selectionEndIndex : int [唯讀]
目前選取範圍中,最後一個字元的字元索引值 (從零開始)。 | TextField | ||
sharpness : Number
在這個文字欄位中,文字邊緣的清晰度。 | TextField | ||
showsCaret : Boolean
The grid control's updateDisplayList() method sets this property
before calling preprare(). | UITextFieldGridItemRenderer | ||
softKeyboard : String
控制軟體鍵盤的外觀。 | InteractiveObject | ||
softKeyboardInputAreaOfInterest : Rectangle
定義顯示軟體鍵盤時,應保留於螢幕上的區域 (iOS 未提供)。 | InteractiveObject | ||
stage : Stage [唯讀]
顯示物件的「舞台」。 | DisplayObject | ||
styleName : Object
The class style used by this component. | UITextField | ||
styleSheet : StyleSheet
將樣式表附加至文字欄位。 | TextField | ||
systemManager : ISystemManager
Returns the SystemManager object used by this component. | UITextField | ||
tabEnabled : Boolean
會指定這個物件是否在停駐點順序中。 | InteractiveObject | ||
tabIndex : int
會指定 SWF 檔中的物件停駐點順序。 | InteractiveObject | ||
text : String
做為文字欄位中目前文字的字串。 | TextField | ||
textColor : uint
文字欄位中文字的顏色,以十六進位格式表示。 | TextField | ||
textHeight : Number [唯讀]
文字的高度,以像素為單位。 | TextField | ||
textInteractionMode : String [唯讀]
互動模式屬性,預設值為 TextInteractionMode.NORMAL。 | TextField | ||
textWidth : Number [唯讀]
文字的寬度,以像素為單位。 | TextField | ||
thickness : Number
在這個文字欄位中,字符邊緣的粗細。 | TextField | ||
toolTip : String
Text to display in the ToolTip. | UITextField | ||
transform : flash.geom:Transform
這是一個物件,具有和顯示物件的矩陣、顏色轉換和像素邊界有關的屬性。 | DisplayObject | ||
tweeningProperties : Array
Array of properties that are currently being tweened on this object. | UITextField | ||
type : String
文字欄位的類型。 | TextField | ||
updateCompletePendingFlag : Boolean
A flag that determines if an object has been through all three phases
of layout validation (provided that any were required)
| UITextField | ||
useRichTextClipboard : Boolean
會指定文字格式是否隨著文字一起複製和貼上。 | TextField | ||
visible : Boolean
不管是否看得見顯示物件。 | DisplayObject | ||
width : Number
會指出顯示物件的寬度,以像素為單位。 | DisplayObject | ||
wordWrap : Boolean
指出文字欄位是否具有文字換行功能的 Boolean 值。 | TextField | ||
x : Number
指出 DisplayObject 實體相對於父輩 DisplayObjectContainer 之區域座標的 x 座標。 | DisplayObject | ||
y : Number
指出 DisplayObject 實體相對於父輩 DisplayObjectContainer 之區域座標的 y 座標。 | DisplayObject | ||
z : Number
表示 DisplayObject 實體相對於 3D 父輩容器的 z 座標位置 (沿著 z 軸)。 | DisplayObject |
方法 | 定義自 | ||
---|---|---|---|
Constructor. | UITextFieldGridItemRenderer | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
會在 EventDispatcher 物件註冊事件偵聽程式,以便讓偵聽程式收到事件的通知。 | EventDispatcher | ||
會將 newText 參數所指定的字串附加到文字欄位之文字的尾端。 | TextField | ||
Called from the item renderer parent's updateDisplayList() method
when it has been determined that this renderer will no longer be visible. | UITextFieldGridItemRenderer | ||
會將事件傳送到事件流程。 | EventDispatcher | ||
傳回可定義顯示物件區域 (相對於 targetCoordinateSpace 物件的座標系統) 的矩形。 | DisplayObject | ||
會傳回做為字元之範圍框的矩形。 | TextField | ||
會在 x 和 y 參數所指定的點,傳回字元的索引值 (從零開始)。 | TextField | ||
A convenience method for determining whether to use the
explicit or measured height
| UITextField | ||
A convenience method for determining whether to use the
explicit or measured width
| UITextField | ||
指定字元索引,會傳回相同段落中第一個字元的索引。 | TextField | ||
對於使用 <img> 標籤新增至 HTML 格式之文字欄位的影像或 SWF 檔,傳回指定之 id 的 DisplayObject 參考。 | TextField | ||
會在 x 和 y 參數所指定的點,傳回字行的索引值 (從零開始)。 | TextField | ||
會傳回字行的索引值 (從零開始),該字行包含 charIndex 參數所指定的字元。 | TextField | ||
會傳回特定文字行中的字元數。 | TextField | ||
會傳回關於指定之文字行的公制字資訊。 | TextField | ||
會傳回 lineIndex 參數所指定之字行中,第一個字元的字元索引。 | TextField | ||
會傳回 lineIndex 參數所指定之字行的文字。 | TextField | ||
指定字元索引,會傳回包含指定之字元的段落長度。 | TextField | ||
根據 targetCoordinateSpace 參數所定義的座標系統,並排除形狀上的任何筆畫,傳回可定義顯示物件邊界的矩形。 | DisplayObject | ||
Gets a style property that has been set anywhere in this
component's style lookup chain. | UITextField | ||
會傳回 TextFormat 物件,包含 beginIndex 和 endIndex 參數所指定之文字範圍的格式資訊。 | TextField | ||
Returns the TextFormat object that represents
character formatting information for this UITextField object. | UITextField | ||
Returns a UITextFormat object that contains formatting information for this component. | UITextField | ||
將 point 物件從「舞台」(全域) 座標轉換成顯示物件的 (區域) 座標。 | DisplayObject | ||
將二維點從「舞台」(全域) 座標轉換為三維顯示物件的 (區域) 座標。 | DisplayObject | ||
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。 | EventDispatcher | ||
指出物件是否有已定義的指定屬性。 | Object | ||
評估顯示物件的範圍框,看它是否與 obj 顯示物件的範圍框重疊或相交。 | DisplayObject | ||
評估顯示物件,看它是否與 x 和 y 參數所指定的點重疊或相交。 | DisplayObject | ||
Initializes this component. | UITextField | ||
Marks a component so that its updateDisplayList()
method gets called during a later screen update. | UITextField | ||
Marks a component so that its commitProperties()
method gets called during a later screen update. | UITextField | ||
Marks a component so that its measure()
method gets called during a later screen update. | UITextField | ||
[靜態]
如果指定的 fontName 和 fontStyle 提供內嵌字體,而 Font.fontType 為 flash.text.FontType.EMBEDDED 時,則傳回 true。 | TextField | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
將三維顯示物件的 (區域) 座標的三維點轉換為「舞台」(全域) 座標中的二維點。 | DisplayObject | ||
將 point 物件從顯示物件的 (區域) 座標轉換成「舞台」(全域) 座標。 | DisplayObject | ||
Moves the component to a specified position within its parent. | UITextField | ||
Returns true if the child is parented or owned by this object. | UITextField | ||
This function is called when a UITextField object is assigned
a parent. | UITextField | ||
Called from the item renderer parent's updateDisplayList() method
after all of the renderer's properties have been set. | UITextFieldGridItemRenderer | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
會從 EventDispatcher 物件移除偵聽程式。 | EventDispatcher | ||
會以 value 參數的內容取代目前的選取範圍。 | TextField | ||
會以 newText 參數的內容,取代 beginIndex 和 endIndex 參數所指定的字元範圍。 | TextField | ||
Replays the specified event. | UITextField | ||
升起顯示虛擬鍵盤。 | InteractiveObject | ||
Sizes the object. | UITextField | ||
Sets the font color of the text. | UITextField | ||
Sets the focus to this component. | UITextField | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
根據第一個和最後一個字元指定的索引值 (以 beginIndex 和 endIndex 參數指定),設定選取文字。 | TextField | ||
Does nothing. | UITextField | ||
會將 format 參數所指定的文字格式,套用至文字欄位中的指定文字。 | TextField | ||
Sets the visible property of this UITextField object. | UITextField | ||
Detects changes to style properties. | UITextField | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
[覆寫]
Returns a string indicating the location of this object
within the hierarchy of DisplayObjects in the Application. | FlexTextField | ||
Truncate text to make it fit horizontally in the area defined for the control,
and append an ellipsis, three periods (...), to the text. | UITextField | ||
Validate and update the properties and layout of this object
and redraw it, if necessary. | UITextField | ||
會傳回指定之物件的基本值。 | Object | ||
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。 | EventDispatcher |
事件 | 摘要 | 定義自 | ||
---|---|---|---|---|
[廣播事件] 當 Flash Player 或 AIR 應用程式取得作業系統焦點並成為作用中時傳送。 | EventDispatcher | |||
當顯示物件加入顯示清單中時傳送。 | DisplayObject | |||
會在顯示物件加入舞台上的顯示清單時,以直接或是透過加入包含該顯示物件之子樹狀結構的方式傳送。 | DisplayObject | |||
在修改控制項值之後傳送,不同於在修改值之前傳送的 textInput 事件。 | TextField | |||
當使用者從文字快顯選單中選取「清除」(或「刪除」) 時傳送。 | InteractiveObject | |||
會當使用者在相同的 InteractiveObject 上方按下並放開使用者的指向裝置主按鈕時傳送。 | InteractiveObject | |||
當使用者手勢在 AIR 應用程式中觸發與此互動式物件相關聯的快顯選單時傳送。 | InteractiveObject | |||
當使用者針對複製作業啟動平台特有的快速鍵組合或從文字快顯選單中選取「複製」時傳送。 | InteractiveObject | |||
當使用者針對剪下作業啟動平台特有的快速鍵組合或從文字快顯選單中選取「剪下」時傳送。 | InteractiveObject | |||
Dispatched when the bindable data property changes. | UITextFieldGridItemRenderer | |||
[廣播事件] 當 Flash Player 或 AIR 應用程式失去作業系統焦點並成為非作用中時傳送。 | EventDispatcher | |||
在 InteractiveObject 物件的 doubleClickEnabled 旗標設為 true 的情況下,當使用者在相同的物件上方連續兩次快速按下並放開指標裝置主要按鈕時傳送。 | InteractiveObject | |||
[廣播事件] 當播放磁頭進入新影格時傳送。 | DisplayObject | |||
[廣播事件] 當播放磁頭結束目前影格時傳送。 | DisplayObject | |||
當顯示物件取得焦點之後傳送。 | InteractiveObject | |||
當顯示物件失去焦點時傳送。 | InteractiveObject | |||
[廣播事件] 在影格顯示物件的建構函式執行之後,且影格指令碼執行之前傳送。 | DisplayObject | |||
當使用者沿著觸控面與 InteractiveObject 實體建立接觸點 (例如沿著 Apple TV 的 Siri Remote 觸控面點選),某些裝置可能也會將此接觸解譯為數個觸控事件的組合。 | InteractiveObject | |||
當使用在觸控裝置上的同一個 InteractiveObject 實體上按下兩個接觸點後送出 (例如在行動電話或平板電腦觸控螢幕的顯示物件上方,以兩支手指按下後鬆開)。 | InteractiveObject | |||
當使用者在觸控裝置上,將接觸點移動到 InteractiveObject 實體上方後傳送 (例如,在行動電話或平板電腦觸控螢幕的顯示物件上,由左向右移動手指)。 | InteractiveObject | |||
當使用者在 InteractiveObject 實體的接觸點上做出旋轉手勢後傳送 (例如兩指觸摸行動電話或平板電腦的觸控螢幕,然後手指在顯示物件上旋轉)。 | InteractiveObject | |||
當使用者在與 InteractiveObject 實體的某個接觸點上做出揮動手勢後傳送 (例如,三指併在一起觸碰行動電話或平板電腦的觸控螢幕,然後在顯示物件上快速平行移動手指)。 | InteractiveObject | |||
當使用者與 InteractiveObject 實體建立接觸點,然後在觸控裝置上點一下後送出 (例如,將多根手指放到行動電話或平板電腦觸控螢幕的顯示物件上以開啟選單,然後其中一根手點一下,選取選單項目)。 | InteractiveObject | |||
當使用者在 InteractiveObject 實體的某個接觸點上做出放大縮小手勢後傳送 (例如兩指併在一起觸摸行動電話或平板電腦的觸控螢幕,然後手指在顯示物件上快速張開)。 | InteractiveObject | |||
這個事件會送出至任何支援 IME 內嵌輸入的用戶端應用程式。 | InteractiveObject | |||
會當使用者按下按鍵時傳送。 | InteractiveObject | |||
當使用者嘗試使用鍵盤瀏覽變更焦點時傳送。 | InteractiveObject | |||
會當使用者放開按鍵時傳送。 | InteractiveObject | |||
當使用者按一下已啟用 HTML 功能之文字欄位中的超連結,並且其中的 URL 是以 "event:" 開始時,便會傳送。 | TextField | |||
當使用者在相同的 InteractiveObject 上方按下並放開使用者的指向裝置中間按鈕時傳送。 | InteractiveObject | |||
當使用者將指向裝置的中間按鈕移至 InteractiveObject 實體上方按下時傳送。 | InteractiveObject | |||
當使用者將指向裝置按鈕移至 InteractiveObject 實體上方放開時傳送。 | InteractiveObject | |||
當使用者將指向裝置按鈕移至 InteractiveObject 實體上方按下時傳送。 | InteractiveObject | |||
會當使用者嘗試使用指向裝置變更焦點時傳送。 | InteractiveObject | |||
會當指向裝置停在 InteractiveObject 上方的情況下使用者將其移動時傳送。 | InteractiveObject | |||
會當使用者將指向裝置移開 InteractiveObject 實體時傳送。 | InteractiveObject | |||
會當使用者將指向裝置移至 InteractiveObject 實體上方時傳送。 | InteractiveObject | |||
當使用者將指向裝置按鈕移至 InteractiveObject 實體上方放開時傳送。 | InteractiveObject | |||
當滑鼠滾輪在 InteractiveObject 實體上方轉動時傳送。 | InteractiveObject | |||
當使用者釋放手勢時,由拖曳初始程式 InteractiveObject 傳送。 | InteractiveObject | |||
已在目標 InteractiveObject 上放下拖曳的物件,而且已呼叫 DragManager.acceptDragDrop() 接受該放開的資料時,由此目標 InteractiveObject 傳送。 | InteractiveObject | |||
當手勢進入 InteractiveObject 的邊界時,由此 InteractiveObject 傳送。 | InteractiveObject | |||
當手勢離開 InteractiveObject 的邊界時,由此 InteractiveObject 傳送。 | InteractiveObject | |||
當拖曳手勢還留在 InteractiveObject 的邊界內,由此 InteractiveObject 持續傳送。 | InteractiveObject | |||
在呼叫 DragManager.doDrag() 進行拖曳作業初期,由指定做為拖曳初始程式的 InteractiveObject 傳送。 | InteractiveObject | |||
在呼叫 DragManager.doDrag() 進行拖曳作業期間,由指定做為拖曳初始程式的 InteractiveObject 傳送。 | InteractiveObject | |||
當使用者針對貼上作業啟動平台特有的快速鍵組合或從文字快顯選單中選取「貼上」時傳送。 | InteractiveObject | |||
在使用者將作用中觸控筆往下移至超過螢幕鄰近偵測邊框時傳送。 | InteractiveObject | |||
在使用者將作用中觸控筆提到螢幕鄰近偵測邊框時傳送。 | InteractiveObject | |||
在使用者將作用中觸控筆移到螢幕上方,而其餘仍在鄰近偵測邊框內時傳送。 | InteractiveObject | |||
在使用者將作用中觸控筆移出這個 InteractiveObject 之外,而其餘仍在螢幕的鄰近偵測邊框內時傳送。 | InteractiveObject | |||
在使用者直接將作用中觸控筆移到這個 InteractiveObject 上方,而其餘仍在螢幕的鄰近偵測邊框內時傳送。 | InteractiveObject | |||
在使用者將作用中觸控筆移出這個 InteractiveObject 及其任一子系之外,而其餘仍在螢幕的鄰近偵測邊框內時傳送。 | InteractiveObject | |||
在使用者透過這個 InteractiveObject,從顯示清單中後代的物件樹狀結構之外移動作用中觸控筆時傳送 (而其餘仍在螢幕的鄰近偵測邊框內)。 | InteractiveObject | |||
當使用者第一次按下 InteractiveObject 實體上方的按鈕,然後將指向裝置滑出 InteractiveObject 實體之後即放開指向裝置上的按鈕時傳送。 | InteractiveObject | |||
會當顯示物件將要從顯示清單移除時傳送。 | DisplayObject | |||
會在顯示物件即將從顯示清單移除時,以直接或是透過移除包含該顯示物件之子樹狀結構的方式傳送。 | DisplayObject | |||
[廣播事件] 當顯示清單將要更新和顯示時傳送。 | DisplayObject | |||
當使用者在相同的 InteractiveObject 上方按下並放開使用者的指向裝置右邊按鈕時傳送。 | InteractiveObject | |||
當使用者將指向裝置按鈕移至 InteractiveObject 實體上方按下時傳送。 | InteractiveObject | |||
當使用者將指向裝置按鈕移至 InteractiveObject 實體上方放開時傳送。 | InteractiveObject | |||
會當使用者將指向裝置移開 InteractiveObject 實體時傳送。 | InteractiveObject | |||
會當使用者將指向裝置移至 InteractiveObject 實體上方時傳送。 | InteractiveObject | |||
在使用者捲動之後,由 TextField 物件傳送。 | TextField | |||
當使用者針對全選作業啟動平台特有的快速鍵組合或從文字快顯選單中選取「全選」時傳送。 | InteractiveObject | |||
升起顯示軟體鍵盤之後立即傳送。 | InteractiveObject | |||
升起顯示軟體鍵盤前立即傳送。 | InteractiveObject | |||
降下隱藏軟體鍵盤之後立即傳送。 | InteractiveObject | |||
在物件的 tabChildren 旗標值變更時傳送。 | InteractiveObject | |||
在物件的 tabEnabled 旗標變更時傳送。 | InteractiveObject | |||
在物件的 tabIndex 屬性值變更時傳送。 | InteractiveObject | |||
當使用者輸入一個或多個文字字元時,Flash Player 便會傳送 textInput 事件。 | TextField | |||
當使用者變更文字欄位的互動模式時,Flash Player 會傳送 textInteractionModeChange 事件。 | TextField | |||
當使用者在第一次接觸觸控裝置後傳送 (例如手指觸摸行動電話或平板電腦的觸控螢幕)。 | InteractiveObject | |||
當使用者在觸控裝置上移除接觸點後傳送 (例如在行動電話或平板電腦觸控螢幕上移開手指)。 | InteractiveObject | |||
當使用者觸控裝置時傳送,並且連續不斷地傳送,直到接觸點移除為止。 | InteractiveObject | |||
當使用者在觸控裝置中,將接觸點移出 InteractiveObject 實體後送出 (例如在行動電話或平板電腦的觸控螢幕上,將手指從顯示物件移至另一個顯示物件)。 | InteractiveObject | |||
當使用者在觸控裝置中將接觸點移至 InteractiveObject 實體上方後送出 (例如在行動電話或平板電腦的觸控螢幕上,將手指從顯示物件外面的某一點,往顯示物件上方拖曳)。 | InteractiveObject | |||
當使用者在觸控裝置上,將接觸點從 InteractiveObject 實體移出後送出 (例如,在行動電話或平板電腦的觸控螢幕上,將手指從顯示物件上方拖曳到顯示物件以外)。 | InteractiveObject | |||
當使用者在觸控裝置中將接觸點移至 InteractiveObject 實體上方後送出 (例如在行動電話或平板電腦的觸控螢幕上,將手指從顯示物件外面的某一點,往顯示物件上方拖曳)。 | InteractiveObject | |||
當使用者在觸控裝置的同一個 InteractiveObject 實體上,在原先開始接觸點放開後送出 (例如在行動電話或平板電腦觸控螢幕上的顯示物件上方,以手指按下某個點後又鬆開)。 | InteractiveObject |
column | 屬性 |
column:GridColumn
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 2.5 |
The GridColumn object representing the column associated with this item renderer.
預設值為 null。
此屬性可以做為資料繫結的來源。一旦修改此屬性,將傳送 columnChanged
事件。
實作
public function get column():GridColumn
public function set column(value:GridColumn):void
columnIndex | 屬性 |
data | 屬性 |
data:Object
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 2.5 |
The value of the data provider item for the entire row of the grid control. Item renderers often bind visual element attributes to properties of this object.
預設值為 null。
此屬性可以做為資料繫結的來源。一旦修改此屬性,將傳送 dataChange
事件。
實作
public function get data():Object
public function set data(value:Object):void
down | 屬性 |
down:Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 2.5 |
The grid control's updateDisplayList()
method sets this property
before calling prepare()
.
true
when one of two input gestures occurs within a
grid cell: either the mouse button or the touch screen is pressed.
The down
property is reset to false
when
the mouse button goes up, the user lifts off
the touch screen, or the mouse/touch is dragged out of the grid cell.
Unlike a List item renderer, grid item renderers do not have exclusive responsibility for displaying the down indicator. The Grid itself renders the down indicator for the selected row or cell. The item renderer can also change its visual properties to emphasize that it's being pressed.
預設值為 false。
此屬性可以做為資料繫結的來源。一旦修改此屬性,將傳送 downChanged
事件。
實作
public function get down():Boolean
public function set down(value:Boolean):void
dragging | 屬性 |
dragging:Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 2.5 |
Contains true
if the item renderer is being dragged,
typically as part of a drag and drop operation.
Currently, drag and drop is not supported by the Spark DataGrid control.
預設值為 false。
此屬性可以做為資料繫結的來源。一旦修改此屬性,將傳送 draggingChanged
事件。
實作
public function get dragging():Boolean
public function set dragging(value:Boolean):void
grid | 屬性 |
hovered | 屬性 |
label | 屬性 |
label:String
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 2.0 |
The grid control sets this property to the value of the column's
itemToLabel()
method, before calling preprare()
.
The GridItemRenderer class automatically copies the
value of this property to the text
property
of its labelDisplay
element, if that element was specified.
The Grid sets the label
to the value returned by the column's
itemToLabel()
method.
預設值為 ""。
此屬性可以做為資料繫結的來源。一旦修改此屬性,將傳送 labelChanged
事件。
實作
public function get label():String
public function set label(value:String):void
rowIndex | 屬性 |
rowIndex:int
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 2.0 |
The grid control's updateDisplayList()
method sets this property
before calling prepare()
.
預設值為 -1。
此屬性可以做為資料繫結的來源。一旦修改此屬性,將傳送 rowIndexChanged
事件。
實作
public function get rowIndex():int
public function set rowIndex(value:int):void
selected | 屬性 |
selected:Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 2.0 |
The grid control's updateDisplayList()
method sets this property
before calling prepare()
.
true
if the item renderer's cell is part
of the current selection.
Unlike a List item renderer, grid item renderers do not have exclusive responsibility for displaying something to indicate that they're part of the selection. The Grid itself automatically displays the selectionIndicator skin part for the selected rows or cells. The item renderer can also change its visual properties to emphasize that it's part of the selection.
預設值為 false。
此屬性可以做為資料繫結的來源。一旦修改此屬性,將傳送 selectedChanged
事件。
實作
public function get selected():Boolean
public function set selected(value:Boolean):void
showsCaret | 屬性 |
showsCaret:Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 2.0 |
The grid control's updateDisplayList()
method sets this property
before calling preprare()
.
true
if the item renderer's cell is indicated by the caret.
Unlike a List item renderer, grid item renderers do not have exclusive responsibility for displaying something to indicate their cell or row has the caret. The Grid itself automatically displays the caretIndicator skin part for the caret row or cell. The item renderer can also change its visual properties to emphasize that it has the caret.
預設值為 false。
此屬性可以做為資料繫結的來源。一旦修改此屬性,將傳送 showsCaretChanged
事件。
實作
public function get showsCaret():Boolean
public function set showsCaret(value:Boolean):void
UITextFieldGridItemRenderer | () | 建構函式 |
public function UITextFieldGridItemRenderer()
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 2.0 |
Constructor.
discard | () | 方法 |
public function discard(hasBeenRecycled:Boolean):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 2.5 |
Called from the item renderer parent's updateDisplayList()
method
when it has been determined that this renderer will no longer be visible.
If the willBeRecycled
parameter is true
,
then the owner adds this renderer to its internal free list for reuse.
Implementations can use this method to clear any renderer properties that are no longer needed.
This method is not intended to be called directly. It is called by the DataGrid implementation.
參數
hasBeenRecycled:Boolean — true if this renderer is going to be added
to the owner's internal free list for reuse.
|
prepare | () | 方法 |
public function prepare(willBeRecycled:Boolean):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 2.5 |
Called from the item renderer parent's updateDisplayList()
method
after all of the renderer's properties have been set.
The hasBeenRecycled
parameter is false
if this renderer has not been used before, meaning it was not recycled.
This method is called when a renderer is about to become visible
and each time it's redisplayed because of a change in a renderer
property, or because a redisplay was explicitly requested.
This method can be used to configure all of a renderer's visual
elements and properties.
Using this method can be more efficient than binding data
properties to visual element properties.
Note: Because the prepare()
method is called frequently,
make sure that it is coded efficiently.
The prepare()
method may be called many times
before the discard()
method is called.
This method is not intended to be called directly. It is called by the DataGrid implementation.
參數
willBeRecycled:Boolean — true if this renderer is being reused.
|
dataChange | 事件 |
mx.events.FlexEvent
屬性 FlexEvent.type =
mx.events.FlexEvent.DATA_CHANGE
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 2.0 |
Dispatched when the bindable data
property changes.
FlexEvent.DATA_CHANGE
constant defines the value of the
type
property of the event object for a dataChange
event.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
Tue Jun 12 2018, 03:47 PM Z