Created
March 31, 2010 17:39
-
-
Save brian428/350617 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Inject Bean Property (The property named "userCollection" from the bean named "userModel" is injected) | |
[Inject( source="userModel.userCollection" )] | |
public var users:ListCollectionView; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Inject Bean Property with Two-Way Binding (The property named "userCollection" from the bean named "userModel" is injected) | |
[Bindable] | |
[Inject( source="userModel.userCollection", twoWay="true" )] | |
public var users:ListCollectionView; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Inject by Bean Name (The bean named "userDelegate" is injected) | |
[Inject( "userDelegate" )] | |
public var delegate:GenericDelegate; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Inject by Type (The bean implementing IUserDelegate is injected) | |
[Inject] | |
public var delegate:IUserDelegate; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Inject Bean Property to Destination (The property "userName" in bean "userModel" is injected into this.label) | |
[Inject( source="userModel.userName", destination="this.label" )] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment