01: /*
02: * MyGWT Widget Library
03: * Copyright(c) 2007, MyGWT.
04: * licensing@mygwt.net
05: *
06: * http://mygwt.net/license
07: */
08: package net.mygwt.ui.client.widget;
09:
10: /**
11: * A <code>IconButton</code> that supports a set of predefined styles.
12: *
13: * <dt><b>Supported Styles:</b></dt>
14: * <dd>.my-tool-close</dd>
15: * <dd>.my-tool-minimize</dd>
16: * <dd>.my-tool-maximize</dd>
17: * <dd>.my-tool-restore</dd>
18: * <dd>.my-tool-gear</dd>
19: * <dd>.my-tool-pin</dd>
20: * <dd>.my-tool-unpin</dd>
21: * <dd>.my-tool-right</dd>
22: * <dd>.my-tool-left</dd>
23: * <dd>.my-tool-up</dd>
24: * <dd>.my-tool-down</dd>
25: * <dd>.my-tool-refresh</dd>
26: * <dd>.my-tool-minus</dd>
27: * <dd>.my-tool-plus</dd>
28: * <dd>.my-tool-search</dd>
29: * <dd>.my-tool-save</dd>
30: * <dd>.my-tool-help</dd>
31: * </dl>
32: */
33: public class ToolButton extends IconButton {
34:
35: /**
36: * Creates a new tool button.
37: *
38: * @param style the button style
39: */
40: public ToolButton(String style) {
41: super (style);
42: }
43:
44: protected void onRender() {
45: super .onRender();
46: addStyleName("my-tool");
47: }
48:
49: }
|