Packagejp.nium.display
Classpublic class ChildIterator
InheritanceChildIterator Inheritance Object

ChildIterator クラスは、IExDisplayObjectContainer インターフェイスを実装しているクラスと実装していないクラスを同じ構文で走査するためのイテレータクラスです。 ChildIterator class is an iterator class to scan the class which implements or does not implement the IExDsiplayObjectContainer interface, with same syntax.

View the examples



Public Methods
 MethodDefined By
  
ChildIterator(container:DisplayObjectContainer)
新しい ChildIterator インスタンスを作成します。 Creates a new ChildIterator object.
ChildIterator
  
hasNext():Boolean
現在のインデックス位置に対象が存在するかどうかを返します。 Returns if the object exists in the current index position.
ChildIterator
  
next():DisplayObject
現在の対象を返して、次の対象にインデックスを進めます。 Returns the current object and move the index to the next object.
ChildIterator
  
reset():void
現在のインデックス位置をリセットします。 Reset the current index position.
ChildIterator
  
toString():String
指定されたオブジェクトのストリング表現を返します。 Returns the string representation of the specified object.
ChildIterator
Constructor Detail
ChildIterator()Constructor
public function ChildIterator(container:DisplayObjectContainer)

新しい ChildIterator インスタンスを作成します。 Creates a new ChildIterator object.

Parameters
container:DisplayObjectContainer関連付けたい DisplayObjectContainer インスタンスです。 The DisplayObjectContainer instance that want to relate.
Method Detail
hasNext()method
public function hasNext():Boolean

現在のインデックス位置に対象が存在するかどうかを返します。 Returns if the object exists in the current index position.

Returns
Boolean対象が存在すれば true を、存在しなければ false です。 Returns true if the object exists and returns false if not.
next()method 
public function next():DisplayObject

現在の対象を返して、次の対象にインデックスを進めます。 Returns the current object and move the index to the next object.

Returns
DisplayObject現在の対象である DisplayObject インスタンスです。 The current DisplayObject instance.
reset()method 
public function reset():void

現在のインデックス位置をリセットします。 Reset the current index position.

toString()method 
public function toString():String

指定されたオブジェクトのストリング表現を返します。 Returns the string representation of the specified object.

Returns
Stringオブジェクトのストリング表現です。 A string representation of the object.
Examples