net.sourceforge.gwtaddons.client.richtext
Class ImageButton

java.lang.Object
  extended bycom.google.gwt.user.client.ui.UIObject
      extended bycom.google.gwt.user.client.ui.Widget
          extended bycom.google.gwt.user.client.ui.Image
              extended bynet.sourceforge.gwtaddons.client.richtext.ImageButton
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.SourcesClickEvents, com.google.gwt.user.client.ui.SourcesLoadEvents, com.google.gwt.user.client.ui.SourcesMouseEvents

public class ImageButton
extends com.google.gwt.user.client.ui.Image

This class represent an image button for using in toolbars. Via css you can setup the typical visual effects. The ImageButton is using the follow stylenames:

Author:
Volker Berlin

Constructor Summary
ImageButton(java.lang.String url, java.lang.String tooltip)
          The constructor of an ImageButton
 
Method Summary
 void onBrowserEvent(com.google.gwt.user.client.Event event)
          Overriden to block the browser's default behaviour.
 
Methods inherited from class com.google.gwt.user.client.ui.Image
addClickListener, addLoadListener, addMouseListener, getUrl, prefetch, removeClickListener, removeLoadListener, removeMouseListener, setUrl
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
getParent, isAttached, onAttach, onDetach, onLoad
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, isVisible, isVisible, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageButton

public ImageButton(java.lang.String url,
                   java.lang.String tooltip)
The constructor of an ImageButton

Parameters:
url - The url of the Image.
tooltip - The text of a tooltip. Will be ignored if null or empty.
Method Detail

onBrowserEvent

public void onBrowserEvent(com.google.gwt.user.client.Event event)
Overriden to block the browser's default behaviour.