1  /*
     2   Copyright aswing.org, see the LICENCE.txt.
     3  */
     4  
     5  import org.aswing.border.*;
     6  
     7  /**
     8   * Through, this is same to org.aswing.plaf.basic.border.ButtonBorder, 
     9   * this is just a sample to show, you need implement your own Border for buttons 
    10   * in your LAF.
    11   * @author iiley
    12   */
    13  class org.aswing.plaf.asw.border.ButtonBorder extends org.aswing.plaf.basic.border.ButtonBorder{
    14  	
    15  	private static var aswInstance:Border;
    16  	/**
    17  	 * this make shared instance and construct when use.
    18  	 */	
    19  	public static function createInstance():Border{
    20  		if(aswInstance == null){
    21  			aswInstance = new ButtonBorder();
    22  		}
    23  		return aswInstance;
    24  	}
    25  	
    26  	private function ButtonBorder(){
    27  		super();
    28  	}
    29  }
    30