// Copyright 2007. Adobe Systems Incorporated. All Rights Reserved. package fl.core { /** * The InvalidationType class defines InvalidationType constants * that are used by the type property of an event object that is * dispatched after a component is invalidated. These constants are used * by component developers to specify the portion of the component that is to be redrawn * after the component is invalidated. * * @langversion 3.0 * @playerversion Flash 9.0.28.0 */ public class InvalidationType { /** * The InvalidationType.ALL constant defines the value of the type * property of the event object that is dispatched to indicate that the component should * redraw itself entirely. * * @langversion 3.0 * @playerversion Flash 9.0.28.0 */ public static const ALL:String = "all"; /** * The InvalidationType.SIZE constant defines the value of the type * property of the event object that is dispatched to indicate that the screen dimensions of * the component are invalid. * * @langversion 3.0 * @playerversion Flash 9.0.28.0 * @internal [kenos] This one implies that the dimensions of the component on the screen * should be redrawn, but should say so if that is correct. */ public static const SIZE:String = "size"; /** * The InvalidationType.STYLES constant defines the value of the type * property of the event object that is dispatched to indicate that the styles of the component * are invalid. * * @langversion 3.0 * @playerversion Flash 9.0.28.0 * @internal [kenos] Would it be correct to say "that the component should redraw its styles?" */ public static const STYLES:String = "styles"; /** * The InvalidationType.RENDERER_STYLES constant defines the value of * the type property of the event object that is dispatched to indicate that * the renderer styles of the component are invalid. * * @langversion 3.0 * @playerversion Flash 9.0.28.0 * @internal [kenos] Should this one say, "that the component should redraw its renderer styles?" */ public static const RENDERER_STYLES:String = "rendererStyles"; /** * The InvalidationType.STATE constant defines the value of the type * property of the event object that is dispatched to indicate that the state of the component * is invalid. For example, this constant is used when the enabled state of a component * is no longer valid. * * @langversion 3.0 * @playerversion Flash 9.0.28.0 * @internal [kenos] What would be redrawn for a component with an invalid state? */ public static const STATE:String = "state"; /** * The InvalidationType.DATA constant defines the value of the type * property of the event object that is dispatched to indicate that the data that belongs to * a component is invalid. * * @langversion 3.0 * @playerversion Flash 9.0.28.0 * @internal [kenos] For this one, would the data require refreshing? Recreation? Replacement? */ public static const DATA:String = "data"; /** * The InvalidationType.SCROLL constant defines the value of the type * property of the event object that is dispatched to indicate that the scroll position of the * component is invalid. * * @langversion 3.0 * @playerversion Flash 9.0.28.0 * @internal [kenos] When the scroll position should be redrawn? */ public static const SCROLL:String = "scroll"; /** * The InvalidationType.SELECTED constant defines the value of the type * property of the event object that is dispatched to indicate that the selected * property of the component is invalid. * * @langversion 3.0 * @playerversion Flash 9.0.28.0 * @internal [kenos] For this one, does the component need to be redrawn to remove the focus indicator? */ public static const SELECTED:String = "selected"; } }