Subversion Repository Public Repository

litesoft

Diff Revisions 136 vs 141 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/CancelButton.java

Diff revisions: vs.
  @@ -1,9 +1,7 @@
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 CancelButton extends RedButton implements ButtonFactory
4 + public class CancelButton implements ButtonFactory
7 5 {
8 6 public static final String NAME = "Cancel";
9 7
  @@ -14,11 +12,6 @@
14 12
15 13 public static DefButtonNamedTypedFactory factory( String pText )
16 14 {
17 - return new DefButtonNamed( NAME ).red().text( pText );
18 - }
19 -
20 - public CancelButton( ClickHandler pHandler )
21 - {
22 - super( NAME, "Cancel/close this window/dialog", "", pHandler );
15 + return new DefButtonNamed( NAME ).red().text( pText ).enabledToolTip( "Cancel/close this window/dialog" ).disabledToolTip( "" );
23 16 }
24 17 }