| Pakiet | mx.controls.menuClasses |
| Interfejs | public interface IMenuDataDescriptor |
| Implementory | DefaultDataDescriptor |
| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Powiązane elementy interfejsu API
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
Add a child node to a node at the specified index. | IMenuDataDescriptor | ||
Provides access to a node's children. | IMenuDataDescriptor | ||
Returns a node's data. | IMenuDataDescriptor | ||
Returns the name of the radio button group to which
the node belongs, if any. | IMenuDataDescriptor | ||
Returns the type identifier of a node. | IMenuDataDescriptor | ||
Determines if the node actually has children. | IMenuDataDescriptor | ||
Tests a node for termination. | IMenuDataDescriptor | ||
Returns whether the node is enabled. | IMenuDataDescriptor | ||
Returns whether the node is toggled. | IMenuDataDescriptor | ||
Removes the child node from a node at the specified index. | IMenuDataDescriptor | ||
Sets the value of the field or attribute in the data provider
that identifies whether the node is enabled. | IMenuDataDescriptor | ||
Sets the value of the field or attribute in the data provider
that identifies whether the node is toggled. | IMenuDataDescriptor | ||
addChildAt | () | metoda |
public function addChildAt(parent:Object, newChild:Object, index:int, model:Object = null):Boolean| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Add a child node to a node at the specified index. This implementation does the following:
- If the
parentparameter is null or undefined, inserts thechildparameter at the specified index in the collection specified bymodelparameter. - If the
parentparameter has achildrenfield or property, the method adds thechildparameter to it at theindexparameter location. In this case, themodelparameter is not required. - If the
parentparameter does not have achildrenfield or property, the method adds thechildrenproperty to theparent. The method then adds thechildparameter to the parent at theindexparameter location. In this case, themodelparameter is not required. - If the
indexvalue is greater than the collection length or number of children in the parent, adds the object as the last child.
Parametry
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 | () | metoda |
public function getChildren(node:Object, model:Object = null):ICollectionView| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | 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.
Parametry
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 | () | metoda |
public function getData(node:Object, model:Object = null):Object| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Returns a node's data. Currently returns the entire node.
Parametry
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 | () | metoda |
public function getGroupName(node:Object):String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | 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.
Parametry
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.
|
getType | () | metoda |
public function getType(node:Object):String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | 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.
Parametry
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 | () | metoda |
public function hasChildren(node:Object, model:Object = null):Boolean| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Determines if the node actually has children.
Parametry
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 | () | metoda |
public function isBranch(node:Object, model:Object = null):Boolean| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | 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.
Parametry
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 | () | metoda |
public function isEnabled(node:Object):Boolean| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Returns whether the node is enabled. This method is used by menu-based controls.
Parametry
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 | () | metoda |
public function isToggled(node:Object):Boolean| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Returns whether the node is toggled. This method is used by menu-based controls.
Parametry
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 | () | metoda |
public function removeChildAt(parent:Object, child:Object, index:int, model:Object = null):Boolean| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | 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.
Parametry
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 | () | metoda |
public function setEnabled(node:Object, value:Boolean):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | 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.
Parametry
node:Object — The node for which to set the status.
| |
value:Boolean — Whether the node is enabled.
|
setToggled | () | metoda |
public function setToggled(node:Object, value:Boolean):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | 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.
Parametry
node:Object — The node for which to set the status.
| |
value:Boolean — Whether the node is toggled.
|
Tue Jun 12 2018, 12:06 PM Z