blob: 8bb547d49dd6913fd1bdd0d7de7028fbf70ce063 [file] [log] [blame]
////////////////////////////////////////////////////////////////////////////////
//
// 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 mx.containers
{
import mx.core.mx_internal;
use namespace mx_internal;
//--------------------------------------
// Excluded APIs
//--------------------------------------
[Exclude(name="direction", kind="property")]
[Exclude(name="focusIn", kind="event")]
[Exclude(name="focusOut", kind="event")]
[Exclude(name="focusBlendMode", kind="style")]
[Exclude(name="focusSkin", kind="style")]
[Exclude(name="focusThickness", kind="style")]
[Exclude(name="focusInEffect", kind="effect")]
[Exclude(name="focusOutEffect", kind="effect")]
//--------------------------------------
// Other metadata
//--------------------------------------
[IconFile("VBox.png")]
[Alternative(replacement="spark.components.VGroup", since="4.0")]
[Alternative(replacement="spark.components.BorderContainer", since="4.0")]
/**
* The Halo VBox container lays out its children in a single vertical column.
* You use the <code>&lt;mx:VBox&gt;</code> tag instead of the
* <code>&lt;mx:Box&gt;</code> tag as a shortcut to avoid having to
* set the <code>direction</code> property to <code>"vertical"</code>.
*
* <p><b>Note:</b> Adobe recommends that, when possible, you use the Spark containers
* with VerticalLayout instead of the Halo VBox container.</p>
*
* <p>An VBox container has the following default sizing characteristics:</p>
* <table class="innertable">
* <tr>
* <th>Characteristic</th>
* <th>Description</th>
* </tr>
* <tr>
* <td>Default size</td>
* <td>The height is large enough to hold all its children at the default or explicit height of the children,
* plus any vertical gap between the children, plus the top and bottom padding of the container.
* The width is the default or explicit width of the widest child, plus the left and right padding of the container.
* </td>
* </tr>
* <tr>
* <td>Default padding</td>
* <td>0 pixels for the top, bottom, left, and right values.</td>
* </tr>
* </table>
*
* @mxml
*
* <p>The <code>&lt;mx:VBox&gt;</code> tag inherits all of the tag
* attributes of its superclass, except <code>direction</code>, and adds
* no new tag attributes.</p></p>
*
* @includeExample examples/VBoxExample.mxml
*
* @see mx.core.Container
* @see mx.containers.Box
* @see mx.containers.HBox
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
public class VBox extends Box
{
include "../core/Version.as";
//--------------------------------------------------------------------------
//
// Constructor
//
//--------------------------------------------------------------------------
/**
* Constructor.
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
public function VBox()
{
super();
layoutObject.direction = BoxDirection.VERTICAL;
}
//--------------------------------------------------------------------------
//
// Overridden properties
//
//--------------------------------------------------------------------------
//----------------------------------
// direction
//----------------------------------
[Inspectable(environment="none")]
/**
* @private
* Don't allow user to change the direction
*/
override public function set direction(value:String):void
{
}
}
}