Add TabsModel and TabVO to example
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/f79e7caf Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/f79e7caf Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/f79e7caf Branch: refs/heads/feature/fontawesome Commit: f79e7caff00a578af83511f3db8c34b18cdc7b9f Parents: e899d26 Author: piotrz <[email protected]> Authored: Wed Jan 4 18:10:53 2017 +0100 Committer: piotrz <[email protected]> Committed: Wed Jan 4 18:10:53 2017 +0100 ---------------------------------------------------------------------- .../src/main/flex/models/TabsModel.as | 38 ++++++++++++++++++++ .../MDLExample/src/main/flex/vos/TabVO.as | 32 +++++++++++++++++ 2 files changed, 70 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f79e7caf/examples/flexjs/MDLExample/src/main/flex/models/TabsModel.as ---------------------------------------------------------------------- diff --git a/examples/flexjs/MDLExample/src/main/flex/models/TabsModel.as b/examples/flexjs/MDLExample/src/main/flex/models/TabsModel.as new file mode 100644 index 0000000..2662678 --- /dev/null +++ b/examples/flexjs/MDLExample/src/main/flex/models/TabsModel.as @@ -0,0 +1,38 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// 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. +// +//////////////////////////////////////////////////////////////////////////////// +package models +{ + import org.apache.flex.events.EventDispatcher; + + import vos.TabVO; + + public class TabsModel extends EventDispatcher + { + private var _tabs:Array = [ + new TabVO("tab1", "Tab One"), + new TabVO("tab2", "Tab Two"), + new TabVO("tab3", "Tab Three") + ]; + + public function get tabs():Array + { + return _tabs; + } + } +} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f79e7caf/examples/flexjs/MDLExample/src/main/flex/vos/TabVO.as ---------------------------------------------------------------------- diff --git a/examples/flexjs/MDLExample/src/main/flex/vos/TabVO.as b/examples/flexjs/MDLExample/src/main/flex/vos/TabVO.as new file mode 100644 index 0000000..b202290 --- /dev/null +++ b/examples/flexjs/MDLExample/src/main/flex/vos/TabVO.as @@ -0,0 +1,32 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// 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. +// +//////////////////////////////////////////////////////////////////////////////// +package vos +{ + public class TabVO + { + public var tabId:String; + public var label:String; + + public function TabVO(tabId:String, label:String) + { + this.tabId = tabId; + this.label = label; + } + } +}
