MACROMEDIA FLEX BUILDER-USING FLEX BUILDER Manuel d'utilisateur Page 17

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 39
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 16
Indicates that the AccountsView file is part of the main UI
Passes the Integration component's F3DesktopApplication instance to the AccountsView component by setting
its app attribute
Sets the relative dimensions of the AccountsView window
<local:AccountsView
includeIn="main"
app="{app}"
width="100%"
height="100%"/>
4. Save the file.
The final code for the Main.mxml file should look like this:
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
showStatusBar="false"
xmlns:local="*"
backgroundColor="#e7e7e7"
width="800"
height="600"
frameRate="31"
currentState="login"
xmlns:flexforforce="http://flexforforce.salesforce.com"
title="Account Manager">
<s:layout>
<s:BasicLayout/>
</s:layout>
<fx:Declarations>
<flexforforce:F3DesktopApplication
id="app"
statusChanged="statusChangedHandler(event)"
loginComplete="loginCompleteHandler(event)"
loginFailed="loginFailedHandler(event)"
sessionExpired="sessionExpiredHandler(event)"
requiredTypes="Account,Contact"/>
</fx:Declarations>
<fx:Script>
<![CDATA[
import com.salesforce.events.LoginFaultEvent;
import com.salesforce.events.LoginResultEvent;
import com.salesforce.events.SessionExpiredEvent;
import com.salesforce.events.StatusChangedEvent;
import mx.controls.Alert;
13
Step 7: Create the Account Manager Login Screen
Vue de la page 16
1 2 ... 12 13 14 15 16 17 18 19 20 21 22 ... 38 39

Commentaires sur ces manuels

Pas de commentaire