|
||||||||||
| 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.CustomButton
com.google.gwt.user.client.ui.PushButton
edu.mayo.bsi.ngsportal.client.DatePickerButton
public class DatePickerButton
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.CustomButton |
|---|
com.google.gwt.user.client.ui.CustomButton.Face |
| 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 | |
|---|---|
DatePickerButton(com.google.gwt.user.client.ui.TextBox ourBox,
boolean isStart)
Create a DatePickerButton with an attached TextBox |
|
| Method Summary | |
|---|---|
void |
onFocus(com.google.gwt.event.dom.client.FocusEvent event)
Whenever focus changes, make sure the dates are valid |
void |
onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent<Date> event)
|
static Date |
parseDate(com.google.gwt.user.client.ui.TextBox dateBox,
boolean isStartDate)
Date parser, made public so get the same answer no matter who needs it. |
void |
setOtherPicker(DatePickerButton otherPicker)
|
void |
setPosition(int offsetWidth,
int offsetHeight)
|
static void |
setupImage(NGSPortalResources piResources)
Tells the class how to get to the resources bundle so it can get the image for its buttons. |
| Methods inherited from class com.google.gwt.user.client.ui.CustomButton |
|---|
getDownDisabledFace, getDownFace, getDownHoveringFace, getHTML, getTabIndex, getText, getUpDisabledFace, getUpFace, getUpHoveringFace, onBrowserEvent, setAccessKey, setEnabled, setFocus, setHTML, setHTML, setTabIndex, 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, isEnabled, removeClickListener, removeFocusListener, removeKeyboardListener, removeMouseListener, removeMouseWheelListener |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, fireEvent, getLayoutData, getParent, isAttached, 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 DatePickerButton(com.google.gwt.user.client.ui.TextBox ourBox,
boolean isStart)
ourBox - The text box it shares data withisStart - true if this is the start date, false if it's the end date. This matters
because the Start Date shouldn't be after today's date, whereas the End data can be.| Method Detail |
|---|
public static void setupImage(NGSPortalResources piResources)
piResources - The resources bundle
public static final Date parseDate(com.google.gwt.user.client.ui.TextBox dateBox,
boolean isStartDate)
dateBox - The TextBox with the text to parseisStartDate - If true, and a Month / Day date, will set the date to today, or some
time within the last year, since can't have any reports that were analyzed tomorrow
public void onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent<Date> event)
onValueChange in interface com.google.gwt.event.logical.shared.ValueChangeHandler<Date>
public void setPosition(int offsetWidth,
int offsetHeight)
setPosition in interface com.google.gwt.user.client.ui.PopupPanel.PositionCallbackpublic final void setOtherPicker(DatePickerButton otherPicker)
otherPicker - the Picker paired to this pickerpublic void onFocus(com.google.gwt.event.dom.client.FocusEvent event)
onFocus in interface com.google.gwt.event.dom.client.FocusHandlerevent - Utterly worthless focus "event" object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||