List of Listings

Chapter 1. Some Flex with your Java?

Listing 1.1. Main.mxml

Chapter 2. Beginning with Java

Listing 2.1. Packaging of type pom indicates a multimodule project

Listing 2.2. Create the flex-bugs-web module for the Java server side

Listing 2.3. The Issue model object

Listing 2.4. The comment model object

Listing 2.5. The CommentDao.java

Listing 2.6. The CommentDaoImpl.java

Listing 2.7. The IssueManager.java

Listing 2.8. The CommentManager.java

Listing 2.9. The IssueManagerImpl.java

Listing 2.10. The CommentManagerImpl.java

Listing 2.11. The applicationContext.xml

Listing 2.12. The IssueAction.java

Listing 2.13. The menu.jsp

Listing 2.14. The menu-config.xml

Listing 2.15. The issueList.jsp

Listing 2.16. The issueForm.jsp

Listing 2.17. The commentForm.jsp

Listing 2.18. The ApplicationResources.properties

Listing 2.19. The struts.xml

Listing 2.20. The hibernate.cfg.xml

Chapter 3. Getting rich with Flex

Listing 3.1. Parent pom.xml

Listing 3.2. The pom.xml for the Flex application

Listing 3.3. Configuring the maven-dependency-plugin

Listing 3.4. HTML wrapper values

Listing 3.5. Hello World! in Flex

Listing 3.6. Console output from the maven-jetty-plugin

Listing 3.7. Defining the ViewStacks

Listing 3.8. Header.mxml

Listing 3.9. Adding the header to Main.mxml

Listing 3.10. Footer.mxml

Listing 3.11. Main.mxml updated with footer

Listing 3.12. MasterView.mxml

Listing 3.13. DetailView.mxml

Listing 3.14. CommentsView.mxml

Listing 3.15. Laying out the application

Listing 3.16. EditCommentForm.mxml

Chapter 4. Connecting to web services

Listing 4.1. UIEvent.as

Listing 4.2. EventDispatcherFactory.as

Listing 4.3. Issue.as

Listing 4.4. Comment.as

Listing 4.5. MasterPresenter.as

Listing 4.6. IssueModel.as

Listing 4.7. MasterView.mxml

Listing 4.8. DetailPresenter.as

Listing 4.9. DetailPresenter.as

Listing 4.10. IssueModel.as

Listing 4.11. DetailView.mxml

Listing 4.12. CommentsListPresenter.as

Listing 4.13. CommentsListPresenter.as

Listing 4.14. CommentModel.as

Listing 4.15. CommentsListView.mxml

Listing 4.16. Adding a pop up to CommentListPresenter.as

Listing 4.17. CommentModel.as

Listing 4.18. EditCommentForm.mxml

Listing 4.19. Updated CommentListView.mxml

Chapter 5. BlazeDS remoting and logging

Listing 5.1. Adding BlazeDS to your pom.xml

Listing 5.2. BlazeDS configuration module POM

Listing 5.3. resources.xml

Listing 5.4. services-config.xml

Listing 5.5. proxy-config.xml

Listing 5.6. Adding BlazeDS config module to the top-level pom.xml

Listing 5.7. Adding the BlazeDS config dependency to the Java web module

Listing 5.8. Adding the BlazeDS config dependency to the Flex module

Listing 5.9. ApplicationContext.xml

Listing 5.10. flex-spring-servlet.xml plumbing

Listing 5.11. web.xml

Listing 5.12. IssueManager.java

Listing 5.13. CommentManager.java

Listing 5.14. Issue.as

Listing 5.15. IssueModel.as

Listing 5.16. log4j.xml

Listing 5.17. services-config.xml

Listing 5.18. services-config.xml

Chapter 6. Flex messaging

Listing 6.1. Adding the polling channel-definition to services-config.xml

Listing 6.2. Adding MessageBroker, MessageService, and MessageDestination

Listing 6.3. Adding the injected MessageTemplate

Listing 6.4. ChannelSetFactory.as

Listing 6.5. The IssueModel message Consumer

Chapter 7. Securing and personalizing your application

Listing 7.1. ChannelSetFactory.as

Listing 7.2. UserEvent.as

Listing 7.3. LoginPanel.mxml

Listing 7.4. LoginPresenter.as

Listing 7.5. LoginModel.as

Listing 7.6. Header.mxml

Listing 7.7. flex-spring-servlet.xml

Listing 7.8. Spring Integration Security dependency

Listing 7.9. IssueManger.java

Listing 7.10. CommentManager.java

Listing 7.11. security.xml

Listing 7.12. IssueModel.as

Listing 7.13. CommentModel.as

Listing 7.14. LoginModel.as

Listing 7.15. LoginPresenter.as

Listing 7.16. DetailPresenter

Listing 7.17. CommentsListPresenter

Chapter 8. Charting with Degrafa

Listing 8.1. Example of drawing in ActionScript

Listing 8.2. PieChartEvent.as

Listing 8.3. PieChart.mxml

Listing 8.4. PieChart.mxml

Listing 8.5. PieChartSlice.mxml

Listing 8.6. PieLegendRenderer.mxml

Listing 8.7. PieChartPresenter.as

Listing 8.8. PieChartModel.as

Listing 8.9. GraphView.mxml

Listing 8.10. GraphPresenter.as

Listing 8.11. GraphModel

Chapter 9. Desktop 2.0 with AIR

Listing 9.1. flex-bug-lib pom.xml

Listing 9.2. MainCanvas.mxml

Listing 9.3. Main.mxml

Listing 9.4. flex-bugs-air pom.xml

Listing 9.5. AIR Main.mxml

Listing 9.6. air-app.xml

Listing 9.7. flex-bugs-air-package pom.xml

Listing 9.8. flex-bugs-air-package pom.xml

Listing 9.9. flex-bugs-air-package pom.xml

Listing 9.10. flex-bugs-air-package

Listing 9.11. flex-bugs-air-package pom.xml

Listing 9.12. resources.xml

Listing 9.13. flex-bugs-web pom.xml

Listing 9.14. download.jsp

Chapter 10. Testing your Flex application

Listing 10.1. Updated pom.xml

Listing 10.2. MasterPresenterTest.as

Listing 10.3. shouldCallGetIssuesFromModel

Listing 10.4. Updated MasterPresenter

Listing 10.5. shouldSetIssuesPropertyOnView

Listing 10.6. shouldCallRemoveIssueOnModel

Listing 10.7. shouldResetGridAndFireSelectedIssueChangedEvent

Listing 10.8. MasterViewTest

Listing 10.9. issuesPropertySetsDataProviderOnDataGrid

Listing 10.10. resetIssuesGridRemovesAllDataFromDataGrid

Listing 10.11. refreshButtonClickTriggersUIEvent

Listing 10.12. selectingDataGridItemTriggersUIEvent

Listing 10.13. IssueModelTest.as

Listing 10.14. MockIssueService.as

Listing 10.15. updated IssueModel constructor

Listing 10.16. callsGetAllOnRemoteService

Listing 10.17. callsGetOnRemoteService

Chapter 11. Flex on Grails

Listing 11.1. Contact.groovy file

Listing 11.2. ContactService.groovy file

Listing 11.3. BootStrap.groovy file

Listing 11.4. Contact.as

Listing 11.5. Main.mxml (a)

Listing 11.6. Main.mxml (b)

Listing 11.7. Main.mxml (c)

Listing 11.8. Adding the RemoteService

Listing 11.9. Main.mxm (d)

Listing 11.10. services-config.xml

Listing 11.11. ContactService updated

Listing 11.12. Main.mxml (e)

Listing 11.13. Main.mxml (f)

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.173.238