Subversion Repository Public Repository

litesoft

Diff Revisions 49 vs 139 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/CloseButton.java

Diff revisions: vs.
  @@ -1,12 +1,13 @@
1 1 // This Source Code is in the Public Domain per: http://litesoft.org/License.txt
2 2 package org.litesoft.GWT.client.widgets;
3 3
4 - import com.google.gwt.event.dom.client.*;
5 -
6 - public class CloseButton extends RedButton
4 + public class CloseButton implements ButtonFactory
7 5 {
8 - public CloseButton( ClickHandler pHandler )
6 + public static final String NAME = "Close";
7 + private static final String TOOL_TIP = "Close this window/dialog";
8 +
9 + public static DefButtonNamedTypedFactory factory()
9 10 {
10 - super( "Close", "Close this window/dialog", "", pHandler );
11 + return new DefButtonNamed( NAME ).red().text().enabledToolTip( TOOL_TIP ).disabledToolTip( "" );
11 12 }
12 13 }