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;
14:
15: import org.wings.plaf.ToolBarCG;
16:
17: /**
18: * Displays commonly used Actions or controls.
19: * The basic SToolBar is just an SPanel with a SBoxLayout manager.
20: *
21: * @author <a href="mailto:haaf@mercatis.de">Armin Haaf</a>
22: */
23: public class SToolBar extends SPanel {
24: /**
25: * create a new SToolBar.
26: */
27: public SToolBar() {
28: super (new SBoxLayout(SBoxLayout.HORIZONTAL));
29: }
30:
31: public void setCG(ToolBarCG cg) {
32: super .setCG(cg);
33: }
34:
35: public void addSeparator() {
36: add(new SSeparator(SConstants.VERTICAL));
37: }
38: }
|