1 14 package org.wings.border; 15 16 import org.wings.style.CSSProperty; 17 18 import java.awt.*; 19 20 28 public class SLineBorder 29 extends SAbstractBorder { 30 31 public static final String DOTTED = "dotted"; 32 public static final String DASHED = "dashed"; 33 public static final String SOLID = "solid"; 34 35 private String borderStyle = SOLID; 36 37 public SLineBorder() { 38 setBorderStyle(SOLID); 39 } 40 41 public SLineBorder(int thickness) { 42 super(thickness); 43 setBorderStyle(SOLID); 44 } 45 46 public SLineBorder(Color c) { 47 super(c); 48 setBorderStyle(SOLID); 49 } 50 51 public SLineBorder(Color c, String borderStyle) { 52 super(c); 53 setBorderStyle(borderStyle); 54 setBorderStyle(SOLID); 55 } 56 57 public SLineBorder(int thickness, Insets insets) { 58 super(Color.black, thickness, insets); 59 setBorderStyle(SOLID); 60 } 61 62 public void setBorderStyle(String style) { 63 this.borderStyle = style; 64 attributes.put(CSSProperty.BORDER_STYLE, style); 65 } 66 67 public final String getBorderStyle() { return borderStyle; } 68 } 69 70 71 | Popular Tags |