//////////////////////////////////////////////////////////////////////////////// // // 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 spark.components.supportClasses { /** * The ViewReturnObject class encapsulates the return value of a view * when it is popped off a navigation stack. * The ViewReturnObject object contains a reference to the * returned object, and the context in which the popped view was created. * The context is an arbitrary object that is passed to the * ViewNavigator.pushView() method. * * @see spark.components.View * @see spark.components.ViewNavigator#pushView() * * @langversion 3.0 * @playerversion AIR 2.5 * @productversion Flex 4.5 */ public class ViewReturnObject { //-------------------------------------------------------------------------- // // Constructor // //-------------------------------------------------------------------------- /** * Constructor. * * @param object The returned object. * * @param context The context in which the owner was created. * * @langversion 3.0 * @playerversion AIR 2.5 * @productversion Flex 4.5 */ public function ViewReturnObject(object:Object = null, context:Object = null) { super(); this.object = object; this.context = context; } //-------------------------------------------------------------------------- // // Properties // //-------------------------------------------------------------------------- //---------------------------------- // context //---------------------------------- /** * The context identifier passed to the popped view when it was pushed * onto the navigation stack. * * @see spark.components.ViewNavigator#pushView() * * @langversion 3.0 * @playerversion AIR 2.5 * @productversion Flex 4.5 */ public var context:Object = null; //---------------------------------- // object //---------------------------------- /** * The return object generated by the view that is being removed. * * @langversion 3.0 * @playerversion AIR 2.5 * @productversion Flex 4.5 */ public var object:Object = null; } }