| //////////////////////////////////////////////////////////////////////////////// |
| // |
| // 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 |
| { |
| import mx.graphics.IFill; |
| import mx.graphics.IStroke; |
| import spark.components.DataNavigator; |
| |
| // for asdoc |
| [Experimental] |
| |
| public class BorderDataNavigator extends DataNavigator |
| { |
| public function BorderDataNavigator() |
| { |
| } |
| |
| private var _backgroundFill:IFill; |
| |
| /** |
| * Defines the background of the BorderContainer. |
| * Setting this property override the <code>backgroundAlpha</code>, |
| * <code>backgroundColor</code>, <code>backgroundImage</code>, |
| * and <code>backgroundImageFillMode</code> styles. |
| * |
| * <p>The following example uses the <code>backgroundFill</code> property |
| * to set the background color to red:</p> |
| * |
| * <pre> |
| * <s:BorderContainer cornerRadius="10"> |
| * <s:backgroundFill> |
| * <s:SolidColor |
| * color="red" |
| * alpha="1"/> |
| * </s:backgroundFill> |
| * </s:BorderContainer> </pre> |
| * |
| * @default null |
| * |
| * @langversion 3.0 |
| * @playerversion Flash 10 |
| * @playerversion AIR 1.5 |
| * @productversion Flex 4 |
| */ |
| public function get backgroundFill():IFill |
| { |
| return _backgroundFill; |
| } |
| |
| /** |
| * @private |
| */ |
| public function set backgroundFill(value:IFill):void |
| { |
| if (value == _backgroundFill) |
| return; |
| |
| _backgroundFill = value; |
| |
| if (skin) |
| skin.invalidateDisplayList(); |
| } |
| |
| private var _borderStroke:IStroke; |
| |
| /** |
| * Defines the stroke of the BorderContainer container. |
| * Setting this property override the <code>borderAlpha</code>, |
| * <code>borderColor</code>, <code>borderStyle</code>, <code>borderVisible</code>, |
| * and <code>borderWeight</code> styles. |
| * |
| * <p>The following example sets the <code>borderStroke</code> property:</p> |
| * |
| * <pre> |
| * <s:BorderContainer cornerRadius="10"> |
| * <s:borderStroke> |
| * <mx:SolidColorStroke |
| * color="black" |
| * weight="3"/> |
| * </s:borderStroke> |
| * </s:BorderContainer> </pre> |
| * |
| * @default null |
| * |
| * @langversion 3.0 |
| * @playerversion Flash 10 |
| * @playerversion AIR 1.5 |
| * @productversion Flex 4 |
| */ |
| public function get borderStroke():IStroke |
| { |
| return _borderStroke; |
| } |
| |
| /** |
| * @private |
| */ |
| public function set borderStroke(value:IStroke):void |
| { |
| if (value == _borderStroke) |
| return; |
| |
| _borderStroke = value; |
| |
| if (skin) |
| skin.invalidateDisplayList(); |
| } |
| |
| } |
| } |