blob: bc287751ed013a4d51c3735bc668932f7d750aae [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!---
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to You under the Apache License, Version 2.0
// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
////////////////////////////////////////////////////////////////////////////////
-->
<jquery:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:local="*"
xmlns:js="library://ns.apache.org/royale/basic"
xmlns:jquery="library://ns.apache.org/royale/jquery"
xmlns:models="models.*"
xmlns:controllers="controllers.*"
initialize="MyModel(model).labelText='Hello World'"
>
<!--
To make this sample work, please add the following lines to the index.html
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
-->
<jquery:valuesImpl>
<js:SimpleCSSValuesImpl />
</jquery:valuesImpl>
<jquery:initialView>
<local:MyInitialView />
</jquery:initialView>
<jquery:model>
<models:MyModel />
</jquery:model>
<jquery:controller>
<controllers:MyController />
</jquery:controller>
<jquery:beads>
<js:HTTPService id="service">
<js:LazyCollection id="collection">
<js:inputParser>
<js:JSONInputParser />
</js:inputParser>
<js:itemConverter>
<local:StockDataJSONItemConverter />
</js:itemConverter>
</js:LazyCollection>
</js:HTTPService>
</jquery:beads>
</jquery:Application>