org.gwtwidgets.client.ui
Class ToggleButton

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Image
              extended by org.gwtwidgets.client.ui.PNGImage
                  extended by org.gwtwidgets.client.ui.ImageButton
                      extended by org.gwtwidgets.client.ui.ToggleButton
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, com.google.gwt.user.client.ui.SourcesMouseWheelEvents

public class ToggleButton
extends ImageButton


Field Summary
 
Fields inherited from class org.gwtwidgets.client.ui.ImageButton
OFF_STATE, ON_STATE
 
Constructor Summary
ToggleButton(java.lang.String url, int width, int height)
           
 
Method Summary
protected  void init()
           
 void setOn(boolean on)
           
 void toggle()
          Toggle button state
 
Methods inherited from class org.gwtwidgets.client.ui.ImageButton
getBackgroundOffColor, getBackgroundOnColor, getBorderOffColor, getBorderOffStyle, getBorderOffWidth, getBorderOnColor, getBorderOnStyle, getBorderOnWidth, getOffStyle, getOnStyle, getState, isOn, setBackgroundOffColor, setBackgroundOnColor, setBorderOffColor, setBorderOffStyle, setBorderOffWidth, setBorderOnColor, setBorderOnStyle, setBorderOnWidth, setColors, setHorizontalMargin, setMargin, setOffStyle, setOnStyle, setState, setVerticleMargin
 
Methods inherited from class org.gwtwidgets.client.ui.PNGImage
getUrl, setUrl
 
Methods inherited from class com.google.gwt.user.client.ui.Image
addClickListener, addLoadListener, addMouseListener, addMouseWheelListener, getHeight, getOriginLeft, getOriginTop, getWidth, onBrowserEvent, prefetch, removeClickListener, removeLoadListener, removeMouseListener, removeMouseWheelListener, setUrlAndVisibleRect, setVisibleRect
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
doAttachChildren, doDetachChildren, getParent, isAttached, onAttach, onDetach, onLoad, onUnload, removeFromParent, setElement
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, 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

ToggleButton

public ToggleButton(java.lang.String url,
                    int width,
                    int height)
Method Detail

init

protected void init()
Overrides:
init in class ImageButton

setOn

public void setOn(boolean on)

toggle

public void toggle()
Toggle button state

Parameters:
on -


Copyright © 2009. All Rights Reserved.