|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.FocusWidget
com.google.gwt.user.client.ui.ButtonBase
com.google.gwt.user.client.ui.Button
edu.mayo.bsi.ngsportal.client.EnterButton
public class EnterButton
Class to implement a button that activates when the user hits the Return key in the attached text field.
@author Gregory Dougherty
| Nested Class Summary |
|---|
| 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 |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
EnterButton()
|
|
EnterButton(com.google.gwt.dom.client.Element element)
|
|
EnterButton(com.google.gwt.safehtml.shared.SafeHtml html)
|
|
EnterButton(com.google.gwt.safehtml.shared.SafeHtml html,
com.google.gwt.event.dom.client.ClickHandler handler)
|
|
EnterButton(String html)
|
|
EnterButton(String html,
com.google.gwt.event.dom.client.ClickHandler handler)
|
|
| Method Summary | |
|---|---|
void |
onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event)
Generate a click on this button whenever the user hits the enter key in an object that has made this button one of its KeyPressHandlers |
void |
targetWidget(com.google.gwt.user.client.ui.Widget target)
Enable a widget to handle KeyPress events, and make this button its handler for those events |
| Methods inherited from class com.google.gwt.user.client.ui.Button |
|---|
click, wrap |
| Methods inherited from class com.google.gwt.user.client.ui.ButtonBase |
|---|
getHTML, getText, setHTML, setHTML, setText |
| Methods inherited from class com.google.gwt.user.client.ui.FocusWidget |
|---|
addBlurHandler, addClickHandler, addClickListener, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addFocusHandler, addFocusListener, addGestureChangeHandler, addGestureEndHandler, addGestureStartHandler, addKeyboardListener, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addMouseDownHandler, addMouseListener, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addMouseWheelListener, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, getTabIndex, isEnabled, removeClickListener, removeFocusListener, removeKeyboardListener, removeMouseListener, removeMouseWheelListener, setAccessKey, setEnabled, setFocus, setTabIndex |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, fireEvent, getLayoutData, getParent, isAttached, onBrowserEvent, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Constructor Detail |
|---|
public EnterButton()
public EnterButton(com.google.gwt.safehtml.shared.SafeHtml html)
html - HTLM text for the button titlepublic EnterButton(String html)
html - HTLM text for the button titlepublic EnterButton(com.google.gwt.dom.client.Element element)
element - The element to be used
public EnterButton(com.google.gwt.safehtml.shared.SafeHtml html,
com.google.gwt.event.dom.client.ClickHandler handler)
html - HTLM text for the button titlehandler - Routine to be called when the button is clicked on
public EnterButton(String html,
com.google.gwt.event.dom.client.ClickHandler handler)
html - HTLM text for the button titlehandler - Routine to be called when the button is clicked on| Method Detail |
|---|
public void targetWidget(com.google.gwt.user.client.ui.Widget target)
target - The Widget gaining the ability to handle KeyPress eventspublic void onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event)
onKeyPress in interface com.google.gwt.event.dom.client.KeyPressHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||