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.layout;
09:
10: /**
11: * Horizontal layout which allows you to lay out components horizontally in a row with the specified spacing between
12: * components.
13: */
14: public class HorizontalLayout extends TableLayout {
15:
16: /**
17: * Create a new HorizontalLayout.
18: *
19: * @param spacing the spacing between components added
20: */
21: public HorizontalLayout(int spacing) {
22: setSpacing("padding:0 " + spacing + "px 0 0");
23: }
24: }
|