////////////////////////////////////////////////////////////////////////////////
//
//  ADOBE SYSTEMS INCORPORATED
//  Copyright 2006 Adobe Systems Incorporated
//  All Rights Reserved.
//
//  NOTICE: Adobe permits you to use, modify, and distribute this file
//  in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////

package mx.core
{

/**
 *  Values for the <code>horizontalScrollPolicy</code> and
 *  <code>verticalScrollPolicy</code> properties
 *  of the Container and ScrollControlBase classes.
 *
 *  @see mx.core.Container
 *  @see mx.core.ScrollControlBase
 *  
 *  @langversion 3.0
 *  @playerversion Flash 9
 *  @playerversion AIR 1.1
 *  @productversion Flex 3
 */
public final class ScrollPolicy
{
	include "../core/Version.as";

	//--------------------------------------------------------------------------
	//
	//  Class constants
	//
	//--------------------------------------------------------------------------

	/**
	 *  Show the scrollbar if the children exceed the owner's dimension.
	 *  The size of the owner is not adjusted to account
	 *  for the scrollbars when they appear, so this may cause the
	 *  scrollbar to obscure the contents of the control or container.
	 *  
	 *  @langversion 3.0
	 *  @playerversion Flash 9
	 *  @playerversion AIR 1.1
	 *  @productversion Flex 3
	 */
	public static const AUTO:String = "auto";

	/**
	 *  Never show the scrollbar.
	 *  
	 *  @langversion 3.0
	 *  @playerversion Flash 9
	 *  @playerversion AIR 1.1
	 *  @productversion Flex 3
	 */
	public static const OFF:String = "off";
	
	/**
	 *  Always show the scrollbar.
	 *  The size of the scrollbar is automatically added to the size
	 *  of the owner's contents to determine the size of the owner
	 *  if explicit sizes are not specified.
	 *  
	 *  @langversion 3.0
	 *  @playerversion Flash 9
	 *  @playerversion AIR 1.1
	 *  @productversion Flex 3
	 */
	public static const ON:String = "on";
}

}
