org.wings.SToolBar Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2000,2005 wingS development team.
*
* This file is part of wingS (http://wingsframework.org).
*
* wingS is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1
* of the License, or (at your option) any later version.
*
* Please see COPYING for the complete licence.
*/
package org.wings;
import org.wings.plaf.ToolBarCG;
/**
* Displays commonly used Actions or controls.
* The basic SToolBar is just an SPanel with a SBoxLayout manager.
*
* @author Armin Haaf
*/
public class SToolBar extends SPanel {
/**
* create a new SToolBar.
*/
public SToolBar() {
super(new SBoxLayout(null, SBoxLayout.HORIZONTAL));
}
public void setCG(ToolBarCG cg) {
super.setCG(cg);
}
public void addSeparator() {
add(new SSeparator(SConstants.VERTICAL));
}
}