1  /*
     2   Copyright aswing.org, see the LICENCE.txt.
     3  */
     4   
     5  import org.aswing.ASColor;
     6  import org.aswing.border.Border;
     7  import org.aswing.plaf.winxp.border.TextBorder;
     8  import org.aswing.UIManager;
     9  
    10  /**
    11   * @author iiley
    12   */
    13  class org.aswing.plaf.winxp.border.TextAreaBorder extends TextBorder {
    14  		
    15  	private static var instance:Border;
    16  	/**
    17  	 * this make shared instance and construct when use.
    18  	 */	
    19  	public static function createInstance():Border{
    20  		if(instance == null){
    21  			instance = new TextAreaBorder(
    22  							UIManager.getColor("TextArea.shadow"),
    23  							UIManager.getColor("TextArea.darkShadow"),
    24  							UIManager.getColor("TextArea.light"),
    25  							UIManager.getColor("TextArea.highlight")		
    26  			);
    27  		}
    28  		return instance;
    29  	}
    30  	
    31  	public function TextAreaBorder(shadow : ASColor, darkShadow : ASColor, light : ASColor, highlight : ASColor) {
    32  		super(shadow, darkShadow, light, highlight);
    33  	}
    34  
    35  }
    36