| Package | feathers.core |
| Class | public class TokenList |
| Inheritance | TokenList Object |
| Property | Defined By | ||
|---|---|---|---|
| length : int [read-only]
The number of tokens in the list. | TokenList | ||
| value : String
The tokens formated with space delimiters. | TokenList | ||
| Method | Defined By | ||
|---|---|---|---|
Constructor. | TokenList | ||
add(name:String):void
Adds a token to the list. | TokenList | ||
contains(name:String):Boolean
Determines if the specified token is in the list. | TokenList | ||
item(index:int):String
Returns the token at the specified index, or null, if there is no
token at that index. | TokenList | ||
remove(name:String):void
Removes a token from the list, if the token is in the list. | TokenList | ||
toggle(name:String):void
The token is added to the list if it doesn't appear in the list, or
it is removed from the list if it is already in the list. | TokenList | ||
| length | property |
length:int [read-only] The number of tokens in the list.
public function get length():int| value | property |
value:StringThe tokens formated with space delimiters.
public function get value():String public function set value(value:String):void| TokenList | () | Constructor |
public function TokenList()Constructor.
| add | () | method |
public function add(name:String):voidAdds a token to the list. If the token already appears in the list, it will not be added again.
Parameters
name:String |
| contains | () | method |
public function contains(name:String):BooleanDetermines if the specified token is in the list.
Parameters
name:String |
Boolean |
| item | () | method |
public function item(index:int):StringReturns the token at the specified index, or null, if there is no token at that index.
Parameters
index:int |
String |
| remove | () | method |
public function remove(name:String):voidRemoves a token from the list, if the token is in the list. If the token doesn't appear in the list, this call does nothing.
Parameters
name:String |
| toggle | () | method |
public function toggle(name:String):voidThe token is added to the list if it doesn't appear in the list, or it is removed from the list if it is already in the list.
Parameters
name:String |