source: EDIS/trunk/java/tracking-ui-core/src/main/flex/gov/va/med/edp/view/LoadingDialog.mxml@ 1227

Last change on this file since 1227 was 1227, checked in by George Lilly, 13 years ago

initial load of EDIS 1.0

File size: 1.5 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:widget="gov.va.med.edp.widget.*"
3 title="Please Wait..."
4 minWidth="600" minHeight="100" showCloseButton="false" horizontalAlign="right" verticalAlign="top" layout="vertical"
5 paddingTop="10" paddingLeft="10" paddingRight="10">
6 <mx:Script>
7 <![CDATA[
8 import mx.core.Application;
9 import mx.managers.PopUpManager;
10
11 private static var dialog:LoadingDialog;
12
13 public static function show() : void {
14 if (dialog != null) return;
15 dialog = LoadingDialog(PopUpManager.createPopUp(Application.application as DisplayObject, LoadingDialog, true));
16 PopUpManager.centerPopUp(dialog);
17 }
18
19 public static function hide() : void {
20 if (dialog == null) return;
21 PopUpManager.removePopUp(dialog);
22 dialog = null;
23 }
24
25
26 ]]>
27 </mx:Script>
28 <mx:VBox id="content" height="90%" width="100%">
29 <mx:HBox width="100%" verticalAlign="middle">
30 <mx:Image source="@Embed('loading_icon.gif')" width="32" height="32"/>
31 <mx:Text fontSize="18" width="100%"
32 text="Loading..." textAlign="center"/>
33 </mx:HBox>
34 </mx:VBox>
35 <!--mx:HBox width="100%" height="10%" horizontalAlign="center">
36 <mx:Button label="Close" click="hide()" horizontalCenter="0"/>
37 </mx:HBox-->
38</mx:TitleWindow>
Note: See TracBrowser for help on using the repository browser.