01: /*
02: * Copyright Javelin Software, All rights reserved.
03: */
04:
05: package com.javelin.swinglets.border;
06:
07: import java.util.*;
08: import java.awt.*;
09: import java.io.*;
10:
11: import com.javelin.swinglets.*;
12:
13: /**
14: * SEmptyBorder is used to render an empty border around an SComponent.
15: * <p>
16: * This components uses a Table to create a border.
17: *
18: * @author Robin Sharp
19: */
20:
21: public class SEmptyBorder extends SBorder {
22: /**
23: * Constructs a new SEmptyBorder.
24: */
25: public SEmptyBorder(int top, int left, int bottom, int right) {
26: insets = new Insets(top, left, bottom, right);
27: }
28:
29: /**
30: * Creates an empty border with the specified insets.
31: */
32: public SEmptyBorder(Insets insets) {
33: this .insets = insets;
34: }
35:
36: /**
37: * Creates an empty border with the specified insets 8, 8, 8, 8.
38: */
39: public SEmptyBorder() {
40: this .insets = new Insets(8, 8, 8, 8);
41: }
42:
43: /**
44: * Returns the name of the L&F class that renders this border.
45: */
46: public Class getUIClass() {
47: return SEmptyBorder.class;
48: }
49:
50: /**
51: * Set the insets.
52: */
53: public void setInsets(Insets insets) {
54: this .insets = insets;
55: }
56:
57: /**
58: * Get the insets.
59: */
60: public Insets getInsets() {
61: return insets;
62: }
63:
64: // PRIVATE /////////////////////////////////////////////////////////////
65:
66: protected Insets insets;
67:
68: }
|