패키지 | spark.collections |
클래스 | public class NumericDataProvider |
상속 | NumericDataProvider OnDemandEventDispatcher Object |
구현 | IList |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4.6 |
런타임 버전: | Flash Player 11, AIR 3 |
minimum
and maximum
properties. The stepSize
property defines the difference between
an item and the next item.
This class is used primarily as a data provider for the SpinnerList control; for example:
<s:SpinnerList> <s:dataProvider> <s:NumericDataProvider minimum="0" maximum="23" stepSize="1"/> </s:dataProvider> </s:SpinnerList>
The advantage of this class is that the item values are calculated on demand, instead of stored.
Because the values are calculated instead of stored, the addItem()
, addItemAt()
,
removeAll()
, removeItemAt()
, itemUpdated()
and setItemAt()
IList methods are not
supported.
관련 API 요소
속성 | 정의 주체 | ||
---|---|---|---|
constructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | Object | ||
length : int [읽기 전용]
The number of items in this collection. | NumericDataProvider | ||
maximum : Number
The value of the last item. | NumericDataProvider | ||
minimum : Number
The value of the first item. | NumericDataProvider | ||
stepSize : Number
The stepSize property controls the values of items between the first and last items. | NumericDataProvider |
메서드 | 정의 주체 | ||
---|---|---|---|
Constructor. | NumericDataProvider | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener
receives notification of an event. | OnDemandEventDispatcher | ||
This function is not supported. | NumericDataProvider | ||
This function is not supported. | NumericDataProvider | ||
Dispatches an event into the event flow. | OnDemandEventDispatcher | ||
Gets the item at the specified index. | NumericDataProvider | ||
Returns the index of the item if it is in the list such that
getItemAt(index) == item. | NumericDataProvider | ||
Checks whether the EventDispatcher object has any listeners registered for a specific type
of event. | OnDemandEventDispatcher | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
itemUpdated(item:Object, property:Object = null, oldValue:Object = null, newValue:Object = null):void
This function is not supported. | NumericDataProvider | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
This function is not supported. | NumericDataProvider | ||
Removes a listener from the EventDispatcher object. | OnDemandEventDispatcher | ||
This function is not supported. | NumericDataProvider | ||
This function is not supported. | NumericDataProvider | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
Returns an Array that is populated in the same order as the IList
implementation. | NumericDataProvider | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object | ||
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type. | OnDemandEventDispatcher |
length | 속성 |
maximum | 속성 |
minimum | 속성 |
stepSize | 속성 |
stepSize:Number
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4.6 |
런타임 버전: | Flash Player 11, AIR 3 |
The stepSize property controls the values of items between the first and last items.
For each item, the value is calculated as the sum of the minimum
and the item's index multiplied by this property.
For example, if minimum
is 10, maximum
is 20, and this property is 3, then the
item values of this data provider are 10, 13, 16, 19, and 20.
기본값: 1.
구현
public function get stepSize():Number
public function set stepSize(value:Number):void
NumericDataProvider | () | 생성자 |
public function NumericDataProvider()
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4.6 |
런타임 버전: | Flash Player 11, AIR 3 |
Constructor.
addItem | () | 메서드 |
addItemAt | () | 메서드 |
getItemAt | () | 메서드 |
public function getItemAt(index:int, prefetch:int = 0):Object
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4.6 |
런타임 버전: | Flash Player 11, AIR 3 |
Gets the item at the specified index.
매개 변수
index:int — The index in the list from which to retrieve the item.
| |
prefetch:int (default = 0 ) — An int indicating both the direction
and number of items to fetch during the request if the item is
not local.
|
Object — The item at that index, or null if there is none.
|
getItemIndex | () | 메서드 |
public function getItemIndex(item:Object):int
Returns the index of the item if it is in the list such that getItemAt(index) == item.
Note: unlike IViewCursor.findxxx()
methods,
The getItemIndex()
method cannot take a parameter with
only a subset of the fields in the item being serched for;
this method always searches for an item that exactly matches
the input parameter.
매개 변수
item:Object — The item to find.
|
int — The index of the item, or -1 if the item is not in the list.
|
itemUpdated | () | 메서드 |
public function itemUpdated(item:Object, property:Object = null, oldValue:Object = null, newValue:Object = null):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4.6 |
런타임 버전: | Flash Player 11, AIR 3 |
This function is not supported.
매개 변수
item:Object | |
property:Object (default = null )
| |
oldValue:Object (default = null )
| |
newValue:Object (default = null )
|
removeAll | () | 메서드 |
public function removeAll():void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4.6 |
런타임 버전: | Flash Player 11, AIR 3 |
This function is not supported.
removeItemAt | () | 메서드 |
setItemAt | () | 메서드 |
toArray | () | 메서드 |
Tue Jun 12 2018, 03:17 PM Z