1 14 package org.wings.border; 15 16 import org.wings.style.CSSProperty; 17 18 import java.awt.*; 19 20 29 public class SEtchedBorder 30 extends SAbstractBorder { 31 public static final int RAISED = 0; 32 public static final int LOWERED = 1; 33 34 int etchedType = RAISED; 35 36 public SEtchedBorder() { 37 setEtchedType(RAISED); 38 } 39 40 public SEtchedBorder(int etchedType) { 41 setEtchedType(etchedType); 42 } 43 44 public SEtchedBorder(int etchedType, Insets insets) { 45 super(Color.black, 2, insets); 46 setEtchedType(etchedType); 47 } 48 49 public void setEtchedType(int etchedType) { 50 this.etchedType = etchedType; 51 attributes.put(CSSProperty.BORDER_STYLE, etchedType == RAISED ? "ridge" : "groove"); 52 } 53 54 public int getEtchedType() { return etchedType; } 55 } 56 57 58 | Popular Tags |