org.kuali.student.common.ui.client.widgets
Class KSButton
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.kuali.student.common.ui.client.widgets.KSButtonAbstract
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 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 |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
DEBUG_ID_PREFIX |
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 interface com.google.gwt.event.shared.HasHandlers |
fireEvent |
button
KSButtonAbstract button
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)
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 © 2007-2011 The Kuali Foundation. All Rights Reserved.