1 14 package org.wings.border; 15 16 import org.wings.style.CSSProperty; 17 18 import java.awt.*; 19 20 29 public class SBevelBorder 30 extends SAbstractBorder { 31 public static final int RAISED = 0; 32 public static final int LOWERED = 1; 33 34 private int bevelType = RAISED; 35 36 39 public SBevelBorder() { 40 setBevelType(RAISED); 41 } 42 43 49 public SBevelBorder(int bevelType) { 50 setBevelType(bevelType); 51 } 52 53 60 public SBevelBorder(int bevelType, Insets insets) { 61 super(Color.black, 2, insets); 62 setBevelType(bevelType); 63 } 64 65 74 public SBevelBorder(int bevelType, Insets insets, int thickness) { 75 super(Color.black, thickness, insets); 76 setBevelType(bevelType); 77 } 78 79 85 public void setBevelType(int bevelType) { 86 this.bevelType = bevelType; 87 attributes.put(CSSProperty.BORDER_STYLE, bevelType == RAISED ? "outset" : "inset"); 88 } 89 90 96 public int getBevelType() { 97 return bevelType; 98 } 99 } 100 101 102 | Popular Tags |