source: EDIS/tags/ed/tracking-ui-core/src/main/flex/gov/va/med/edp/widget/LinkButton.as@ 1240

Last change on this file since 1240 was 1240, checked in by George Lilly, 13 years ago

new version from the VA

File size: 1.5 KB
Line 
1package gov.va.med.edp.widget
2{
3 import gov.va.med.edp.skins.LinkButtonTabSkin;
4
5 import mx.controls.Button;
6 import mx.core.mx_internal;
7 import mx.styles.CSSStyleDeclaration;
8 import mx.styles.StyleManager;
9
10 use namespace mx_internal;
11
12 public class LinkButton extends Button
13 {
14
15 private static var classConstructed:Boolean = classConstruct();
16
17 private static function classConstruct():Boolean {
18 // If there is no CSS definition for our style,
19 // then create one and set the default value.
20
21 if (!StyleManager.getStyleDeclaration("LinkButton"))
22 {
23 var style:CSSStyleDeclaration = new CSSStyleDeclaration();
24 style.defaultFactory = function():void {
25 this.emphasized = false;
26 this.skin = "mx.skins.halo.LinkButtonSkin";
27 this.upSkin = "mx.skins.halo.LinkButtonSkin";
28 this.downSkin = "mx.skins.halo.LinkButtonSkin";
29 this.disabledSkin = "mx.skins.halo.LinkButtonSkin";
30 this.overSkin = "mx.skins.halo.LinkButtonSkin";
31 this.selectedUpSkin = "mx.skins.halo.LinkButtonSkin";
32 this.selectedDownSkin = "mx.skins.halo.LinkButtonSkin";
33 this.selectedOverSkin = "mx.skins.halo.LinkButtonSkin";
34 this.selectedDisabledSkin = "mx.skins.halo.LinkButtonSkin";
35 }
36 StyleManager.setStyleDeclaration("LinkButton", style, true);
37 }
38 return true;
39 }
40
41// because of the accessibility bug with LinkButtons, Make them Button components like link buttons for common look and feel-->
42
43 public function LinkButton()
44 {
45 super();
46 }
47
48 }
49}
Note: See TracBrowser for help on using the repository browser.