01: /*
02: * GWT-Ext Widget Library
03: * Copyright(c) 2007-2008, GWT-Ext.
04: * licensing@gwt-ext.com
05: *
06: * http://www.gwt-ext.com/license
07: */
08: package com.gwtext.client.widgets;
09:
10: /**
11: * Convenience Panel subclass for HTML-only Components.
12: */
13: public class HTMLPanel extends Panel {
14:
15: /**
16: * Create a new HTMLPanel.
17: */
18: public HTMLPanel() {
19: setBorder(false);
20: }
21:
22: /**
23: * Create a new HTMLPanel.
24: *
25: * @param html the html
26: */
27: public HTMLPanel(String html) {
28: setBorder(false);
29: setHtml(html);
30: }
31:
32: /**
33: * Create a new HTMLPanel.
34: *
35: * @param html the html
36: * @param paddings the paddings on all sides
37: */
38: public HTMLPanel(String html, int paddings) {
39: setBorder(false);
40: setHtml(html);
41: setPaddings(paddings);
42: }
43:
44: /**
45: * Create a new HTMLPanel.
46: *
47: * @param html the html
48: * @param topPadding the top padding
49: * @param leftPadding the left padding
50: * @param rightPadding the right padding
51: * @param bottomPadding the bottom padding
52: */
53: public HTMLPanel(String html, int topPadding, int leftPadding,
54: int rightPadding, int bottomPadding) {
55: setBorder(false);
56: setHtml(html);
57: setPaddings(topPadding, leftPadding, rightPadding,
58: bottomPadding);
59: }
60: }
|