1 /* 2 Copyright aswing.org, see the LICENCE.txt. 3 */ 4 5 import org.aswing.*; 6 7 /** 8 * @author iiley 9 */ 10 class org.aswing.plaf.asw.icon.CheckBoxIcon extends org.aswing.plaf.basic.icon.CheckBoxIcon{ 11 private static var aswInstance:Icon; 12 /** 13 * this make shared instance and construct when use. 14 */ 15 public static function createInstance():Icon{ 16 if(aswInstance == null){ 17 aswInstance = new CheckBoxIcon(); 18 } 19 return aswInstance; 20 } 21 22 private function CheckBoxIcon(){ 23 super(); 24 } 25 } 26