01: /*
02: * Copyright 2000,2005 wingS development team.
03: *
04: * This file is part of wingS (http://wingsframework.org).
05: *
06: * wingS is free software; you can redistribute it and/or modify
07: * it under the terms of the GNU Lesser General Public License
08: * as published by the Free Software Foundation; either version 2.1
09: * of the License, or (at your option) any later version.
10: *
11: * Please see COPYING for the complete licence.
12: */
13: package org.wings.border;
14:
15: import java.awt.*;
16:
17: /**
18: * An invisible border around a component used for spacing.
19: *
20: * @author <a href="mailto:haaf@mercatis.de">Armin Haaf</a>
21: */
22: public class SEmptyBorder extends SAbstractBorder {
23:
24: /**
25: * Constructs a new empty border
26: * @param insets The desired insets / paddings.
27: * @see #setInsets(java.awt.Insets)
28: */
29: public SEmptyBorder(Insets insets) {
30: super (insets);
31: }
32:
33: /**
34: * Constructs a new empty border
35: * @param top top padding in px
36: * @param left left padding in px
37: * @param bottom bottom padding in px
38: * @param right right padding in px
39: */
40: public SEmptyBorder(int top, int left, int bottom, int right) {
41: this (new Insets(top, left, bottom, right));
42: }
43: }
|