org.kuali.student.common.ui.client.widgets
Class KSButton

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.Composite
              extended by org.kuali.student.common.ui.client.widgets.KSButtonAbstract
                  extended by org.kuali.student.common.ui.client.widgets.KSButton
All Implemented Interfaces:
com.google.gwt.event.dom.client.HasClickHandlers, com.google.gwt.event.dom.client.HasMouseOutHandlers, com.google.gwt.event.dom.client.HasMouseOverHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener

public class KSButton
extends KSButtonAbstract

KSButton wraps gwt Button. This class provides most of the same functionality, but sets KS css styles for its default look and a variety of button events (for improved browser compatibility and customizability). An image can be also be added to a KSButton (an improvement over gwt Button).

Author:
Kuali Student Team

Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.student.common.ui.client.widgets.KSButtonAbstract
KSButtonAbstract.ButtonStyle
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
(package private)  KSButtonAbstract button
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
KSButton()
           
KSButton(String text)
           
KSButton(String text, com.google.gwt.event.dom.client.ClickHandler handler)
           
KSButton(String text, KSButtonAbstract.ButtonStyle style)
           
KSButton(String text, KSButtonAbstract.ButtonStyle style, com.google.gwt.event.dom.client.ClickHandler handler)
           
 
Method Summary
 com.google.gwt.event.shared.HandlerRegistration addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler handler)
           
 void addStyleName(String style)
           
 void init()
           
 void init(String text)
           
 void init(String text, com.google.gwt.event.dom.client.ClickHandler handler)
           
 void init(String text, KSButtonAbstract.ButtonStyle style)
           
 void init(String text, KSButtonAbstract.ButtonStyle style, com.google.gwt.event.dom.client.ClickHandler handler)
           
 boolean isEnabled()
           
 void removeStyleName(String style)
           
 void setEnabled(boolean enabled)
           
 void setStyleName(String style)
           
 void setText(String text)
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addDomHandler, addHandler, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Field Detail

button

KSButtonAbstract button
Constructor Detail

KSButton

public KSButton()

KSButton

public KSButton(String text,
                com.google.gwt.event.dom.client.ClickHandler handler)

KSButton

public KSButton(String text)

KSButton

public KSButton(String text,
                KSButtonAbstract.ButtonStyle style)

KSButton

public KSButton(String text,
                KSButtonAbstract.ButtonStyle style,
                com.google.gwt.event.dom.client.ClickHandler handler)
Method Detail

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in class KSButtonAbstract

setEnabled

public void setEnabled(boolean enabled)
Specified by:
setEnabled in class KSButtonAbstract

setText

public void setText(String text)
Specified by:
setText in class KSButtonAbstract

addClickHandler

public com.google.gwt.event.shared.HandlerRegistration addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)

addMouseOverHandler

public com.google.gwt.event.shared.HandlerRegistration addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler handler)

addMouseOutHandler

public com.google.gwt.event.shared.HandlerRegistration addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler handler)

init

public void init()
Specified by:
init in class KSButtonAbstract

init

public void init(String text)
Specified by:
init in class KSButtonAbstract

init

public void init(String text,
                 KSButtonAbstract.ButtonStyle style)
Specified by:
init in class KSButtonAbstract

init

public void init(String text,
                 KSButtonAbstract.ButtonStyle style,
                 com.google.gwt.event.dom.client.ClickHandler handler)
Specified by:
init in class KSButtonAbstract

init

public void init(String text,
                 com.google.gwt.event.dom.client.ClickHandler handler)
Specified by:
init in class KSButtonAbstract

addStyleName

public void addStyleName(String style)
Overrides:
addStyleName in class com.google.gwt.user.client.ui.UIObject

removeStyleName

public void removeStyleName(String style)
Overrides:
removeStyleName in class com.google.gwt.user.client.ui.UIObject

setStyleName

public void setStyleName(String style)
Overrides:
setStyleName in class com.google.gwt.user.client.ui.UIObject


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.