rwt.widgets.base.HorizontalSpacer.js Maven / Gradle / Ivy
/*******************************************************************************
* Copyright: 2004, 2012 1&1 Internet AG, Germany, http://www.1und1.de,
* and EclipseSource
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this
* distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* 1&1 Internet AG and others - original API and implementation
* EclipseSource - adaptation for the Eclipse Rich Ajax Platform
******************************************************************************/
/**
* This widget can be used to create a horizontal spacing between
* widgets in e.g. a {@link rwt.widgets.base.HorizontalBoxLayout} or in
* a menu or toolbar.
*
* By default it tries to occupy the all the remaining space by setting
* a flex width of 1*
.
*/
rwt.qx.Class.define("rwt.widgets.base.HorizontalSpacer",
{
extend : rwt.widgets.base.Terminator,
construct : function()
{
this.base(arguments);
this.initWidth();
},
properties :
{
width :
{
refine : true,
init : "1*"
}
}
});