패키지 | mx.controls.treeClasses |
클래스 | public class DefaultDataDescriptor |
상속 | DefaultDataDescriptor Object |
구현 | ITreeDataDescriptor2, IMenuDataDescriptor |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
dataDescriptor
properties.
관련 API 요소
mx.controls.menuClasses.IMenuDataDescriptor
mx.controls.Menu
mx.controls.MenuBar
mx.controls.PopUpMenuButton
mx.controls.Tree
메서드 | 정의 주체 | ||
---|---|---|---|
Constructor. | DefaultDataDescriptor | ||
Add a child node to a node at the specified index. | DefaultDataDescriptor | ||
Provides access to a node's children. | DefaultDataDescriptor | ||
Returns a node's data. | DefaultDataDescriptor | ||
Returns the name of the radio button group to which
the node belongs, if any. | DefaultDataDescriptor | ||
getHierarchicalCollectionAdaptor(hierarchicalData:ICollectionView, uidFunction:Function, openItems:Object, model:Object = null):ICollectionView
Returns an ICollectionView instance that makes the hierarchical data appear
as if it was a linear ICollectionView instance. | DefaultDataDescriptor | ||
Returns the depth of the node, meaning the number of ancestors it has. | DefaultDataDescriptor | ||
Returns the parent of the node
The parent of a top-level node is null. | DefaultDataDescriptor | ||
Returns the type identifier of a node. | DefaultDataDescriptor | ||
Determines if the node actually has children. | DefaultDataDescriptor | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
Tests a node for termination. | DefaultDataDescriptor | ||
Returns whether the node is enabled. | DefaultDataDescriptor | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
Returns whether the node is toggled. | DefaultDataDescriptor | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
Removes the child node from a node at the specified index. | DefaultDataDescriptor | ||
Sets the value of the field or attribute in the data provider
that identifies whether the node is enabled. | DefaultDataDescriptor | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
Sets the value of the field or attribute in the data provider
that identifies whether the node is toggled. | DefaultDataDescriptor | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object |
DefaultDataDescriptor | () | 생성자 |
public function DefaultDataDescriptor()
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Constructor.
addChildAt | () | 메서드 |
public function addChildAt(parent:Object, newChild:Object, index:int, model:Object = null):Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Add a child node to a node at the specified index. This implementation does the following:
- If the
parent
parameter is null or undefined, inserts thechild
parameter at the specified index in the collection specified bymodel
parameter. - If the
parent
parameter has achildren
field or property, the method adds thechild
parameter to it at theindex
parameter location. In this case, themodel
parameter is not required. - If the
parent
parameter does not have achildren
field or property, the method adds thechildren
property to theparent
. The method then adds thechild
parameter to the parent at theindex
parameter location. In this case, themodel
parameter is not required. - If the
index
value is greater than the collection length or number of children in the parent, adds the object as the last child.
매개 변수
parent:Object — The node object that will parent the child.
| |
newChild:Object — The node object that will be parented by the node.
| |
index:int — The 0-based index of where to put the child node relative to the parent.
| |
model:Object (default = null ) — The entire collection that this node is a part of.
|
Boolean — true if successful.
|
getChildren | () | 메서드 |
public function getChildren(node:Object, model:Object = null):ICollectionView
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Provides access to a node's children. Returns a collection
of children if they exist. If the node is an Object, the method
returns the contents of the object's children
field as
an ArrayCollection.
If the node is XML, the method returns an XMLListCollection containing
the child elements.
매개 변수
node:Object — The node object currently being evaluated.
| |
model:Object (default = null ) — The collection that contains the node; ignored by this class.
|
ICollectionView — An object containing the children nodes.
|
getData | () | 메서드 |
public function getData(node:Object, model:Object = null):Object
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns a node's data. Currently returns the entire node.
매개 변수
node:Object — The node object currently being evaluated.
| |
model:Object (default = null ) — The collection that contains the node; ignored by this class.
|
Object — The node.
|
getGroupName | () | 메서드 |
public function getGroupName(node:Object):String
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns the name of the radio button group to which the node belongs, if any. This method is used by menu-based controls.
매개 변수
node:Object — The node for which to get the group name.
|
String — The value of the node's groupName
attribute or field, or an empty string if there is no such
entry.
|
getHierarchicalCollectionAdaptor | () | 메서드 |
public function getHierarchicalCollectionAdaptor(hierarchicalData:ICollectionView, uidFunction:Function, openItems:Object, model:Object = null):ICollectionView
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns an ICollectionView instance that makes the hierarchical data appear as if it was a linear ICollectionView instance.
매개 변수
hierarchicalData:ICollectionView — The hierarchical data.
| |
uidFunction:Function — A function that takes an Object and returns the UID, as a String.
This parameter is usually the Tree.itemToUID() method.
| |
openItems:Object — The items that have been opened or set opened.
| |
model:Object (default = null ) — The collection to which this node belongs.
|
ICollectionView — An ICollectionView instance.
|
getNodeDepth | () | 메서드 |
public function getNodeDepth(node:Object, iterator:IViewCursor, model:Object = null):int
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns the depth of the node, meaning the number of ancestors it has.
매개 변수
node:Object — The Object that defines the node.
| |
iterator:IViewCursor — An IViewCursor instance that could be used to do the calculation.
| |
model:Object (default = null ) — The collection to which this node belongs.
|
int — The depth of the node, where 0 corresponds to the top level,
and -1 if the depth cannot be calculated.
|
getParent | () | 메서드 |
public function getParent(node:Object, collection:ICollectionView, model:Object = null):Object
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns the parent of the node
The parent of a top-level node is null
.
매개 변수
node:Object — The Object that defines the node.
| |
collection:ICollectionView — An ICollectionView instance that could be used to do the calculation.
| |
model:Object (default = null ) — The collection to which this node belongs.
|
Object — The parent node containing the node as child,
null for a top-level node,
and undefined if the parent cannot be determined.
|
getType | () | 메서드 |
public function getType(node:Object):String
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns the type identifier of a node. This method is used by menu-based controls to determine if the node represents a separator, radio button, a check box, or normal item.
매개 변수
node:Object — The node object for which to get the type.
|
String — The value of the type attribute or field,
or the empty string if there is no such field.
|
hasChildren | () | 메서드 |
public function hasChildren(node:Object, model:Object = null):Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Determines if the node actually has children.
매개 변수
node:Object — The node object currently being evaluated.
| |
model:Object (default = null ) — The collection that contains the node; ignored by this class.
|
Boolean — true if this node currently has children.
|
isBranch | () | 메서드 |
public function isBranch(node:Object, model:Object = null):Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Tests a node for termination.
Branches are non-terminating but are not required to have any leaf nodes.
If the node is XML, returns true
if the node has children
or a true isBranch
attribute.
If the node is an object, returns true
if the node has a
(possibly empty) children
field.
매개 변수
node:Object — The node object currently being evaluated.
| |
model:Object (default = null ) — The collection that contains the node; ignored by this class.
|
Boolean — true if this node is non-terminating.
|
isEnabled | () | 메서드 |
public function isEnabled(node:Object):Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns whether the node is enabled. This method is used by menu-based controls.
매개 변수
node:Object — The node for which to get the status.
|
Boolean — The value of the node's enabled
attribute or field, or true if there is no such
entry or the value is not false .
|
isToggled | () | 메서드 |
public function isToggled(node:Object):Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns whether the node is toggled. This method is used by menu-based controls.
매개 변수
node:Object — The node for which to get the status.
|
Boolean — The value of the node's toggled
attribute or field, or false if there is no such
entry.
|
removeChildAt | () | 메서드 |
public function removeChildAt(parent:Object, child:Object, index:int, model:Object = null):Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Removes the child node from a node at the specified index.
If the parent
parameter is null
or undefined, the method uses the model
parameter to
access the child; otherwise, it uses the parent
parameter
and ignores the model
parameter.
매개 변수
parent:Object — The node object that currently parents the child node.
| |
child:Object — The node that is being removed.
| |
index:int — The 0-based index of the child node to remove relative to the parent.
| |
model:Object (default = null ) — The entire collection that this node is a part of.
|
Boolean — true if successful.
|
setEnabled | () | 메서드 |
public function setEnabled(node:Object, value:Boolean):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Sets the value of the field or attribute in the data provider
that identifies whether the node is enabled.
This method sets the value of the node's enabled
attribute or field.
This method is used by menu-based controls.
매개 변수
node:Object — The node for which to set the status.
| |
value:Boolean — Whether the node is enabled.
|
setToggled | () | 메서드 |
public function setToggled(node:Object, value:Boolean):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Sets the value of the field or attribute in the data provider
that identifies whether the node is toggled.
This method sets the value of the node's toggled
attribute or field.
This method is used by menu-based controls.
매개 변수
node:Object — The node for which to set the status.
| |
value:Boolean — Whether the node is toggled.
|
Tue Jun 12 2018, 03:17 PM Z