public class Popover extends Dialog
com.smartgwt.mobile.client.internal.widgets.Popup.PopupStatecom.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Modifier and Type | Field and Description |
|---|---|
static com.smartgwt.mobile.client.internal.theme.iphone.PopoverCssResourceIPhone |
_CSS |
APPLY, CANCEL, DONE, NO, OK, YES_CONTENT_CHANGED_EVENT_TYPE, _HISTORY_ENABLED, _REQUEST_SCROLL_TO_EVENT_TYPE, id, touched| Modifier | Constructor and Description |
|---|---|
|
Popover() |
protected |
Popover(com.smartgwt.mobile.client.internal.widgets.PopoverImpl impl) |
|
Popover(java.lang.String title) |
|
Popover(java.lang.String title,
Canvas child) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_destroyPopup() |
void |
_doDefaultAction() |
boolean |
_getSmallFormFactor() |
int |
getPreferredContentHeight()
The preferred height in pixels of the content area, which holds the child widget.
|
boolean |
getShowCancelButton()
The "Cancel" button is shown if showCancelButton is
true; hidden otherwise. |
boolean |
getShowDoneButton()
The "Done" button is shown if showDoneButton is
true; hidden otherwise. |
java.lang.Boolean |
getSmallFormFactor() |
void |
setChild(Canvas child)
Sets the child widget of the
Popover, which is added to the content area. |
void |
setPreferredContentHeight(int preferredContentHeight)
Sets
preferredContentHeight. |
void |
setShowCancelButton(java.lang.Boolean showCancelButton) |
void |
setShowDoneButton(java.lang.Boolean showDoneButton) |
void |
setSmallFormFactor(java.lang.Boolean smallFormFactor) |
void |
show(Canvas target) |
void |
showForArea(int clientX,
int clientY,
int offsetWidth,
int offsetHeight)
Show the popover for the given area of interest.
|
void |
showForArea(Rectangle rect)
Show the popover for the given area of interest.
|
_getButtonsContainerElem, _getChildFromLocatorSubstring, addButtonClickHandler, applyClick, cancelClick, doDefaultAction, doneClick, getDefaultAction, getMessage, noClick, okClick, setButtons, setDefaultAction, setMessage, yesClick_doHide, _doShow, _getAttributeFromSplitLocator, _getBackgroundElem, _getHeaderElem, _getHideAnimationName, _getImpl, _getInnerAttributeFromSplitLocator, _getInnerElement, _getShowAnimationName, _makeModalMask, _setHideAnimationName, _setShowAnimationName, addCloseClickHandler, getAnimateHideEffect, getAnimateShowEffect, getBackgroundStyle, getBodyStyle, getDismissOnOutsideClick, getIsModal, getModalMask, getModalMaskStyle, getShowHeader, getTitle, hide, onBrowserEvent, setAnimateHideEffect, setAnimateShowEffect, setBackgroundStyle, setBodyStyle, setDismissOnOutsideClick, setIsModal, setModalMaskStyle, setShowHeader, setTitle, show_addPopupDismissedHandler, _getIsModal, _getModalMask, _getModalMaskStyle, _getStateAsString, _isHidden, _isHiding, _isShowing, _isShown, _onHidden, _onShown, _setHistoryMarker, _setIsModal, _setModalMaskStyle, destroy, onLoad, onUnload_add, _booleanValue, _fireContentChangedEvent, _fireContentChangedEvent, _fireRequestScrollToEvent, _getAndroidWindowSoftInputMode, _getFixNavigationBarPositionDuringKeyboardFocus, _getHideTabBarDuringKeyboardFocus, _hideAddressBar, _hideAddressBarNow, _insert, _isDifferent, _isHDPIDisplay, _isIOS4OrOlder, _isIOS5, _isIOSMin6_0, _isStandaloneMode, _nativeParseFloat, _removeClassName, _setClassName, _setHandleDisabled, _sinkAnimationEndEvent, _sinkContentChangedEvent, _sinkFocusInEvent, _sinkFocusOutEvent, _sinkInputEvent, _sinkRequestScrollToEvent, _sinkTransitionEndEvent, _triggerDebugger, addChild, addChild, addChild, addClickHandler, addShowContextMenuHandler, disable, enable, getContextMenu, getID, getInnerHTML, getMargin, hasChild, hasChild, isAndroid, isDisabled, isEnabled, isIPad, isIPhone, isSafari, isStandAlone, isUIWebView, parseDimension, removeChild, removeChild, setContents, setContextMenu, setDisabled, setElement, setID, setMargin, setStyleName, split, useIOSNativeScrollingadd, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeadd, add, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, setVisible, setWidth, sinkBitlessEvent, toString@SGWTInternal public static final com.smartgwt.mobile.client.internal.theme.iphone.PopoverCssResourceIPhone _CSS
protected Popover(com.smartgwt.mobile.client.internal.widgets.PopoverImpl impl)
public Popover()
public Popover(java.lang.String title)
public Popover(java.lang.String title,
Canvas child)
protected void _destroyPopup()
_destroyPopup in class Dialogpublic final boolean getShowCancelButton()
true; hidden otherwise.truepublic void setShowCancelButton(java.lang.Boolean showCancelButton)
public final boolean getShowDoneButton()
true; hidden otherwise.truepublic void setShowDoneButton(java.lang.Boolean showDoneButton)
public final java.lang.Boolean getSmallFormFactor()
@SGWTInternal public final boolean _getSmallFormFactor()
public void setSmallFormFactor(java.lang.Boolean smallFormFactor)
public void setChild(Canvas child)
Popover, which is added to the content area.
NOTE: The Popover may need to limit the size of its content area
so that it fits entirely on screen. If a widget is moderately bulky, it is recommended
to use a ScrollablePanel for the child widget
so that any overflow remains accessible to the user. See the Widgets -> Dialogs ->
TableView with Popover example in Showcase for a sample.
child - child widget.getPreferredContentHeight()public final int getPreferredContentHeight()
Popover will try to set the height of the content area to at least
this many pixels (allowing more space if the child widget's offsetHeight is more than
the preferred content height); however, in no case will the content height be set so
that a part of the Popover is off-screen.public void setPreferredContentHeight(int preferredContentHeight)
preferredContentHeight.preferredContentHeight - the new preferred content height.java.lang.IllegalArgumentException - if preferredContentHeight is negative.@SGWTInternal public final void _doDefaultAction()
public final void show(Canvas target)
public final void showForArea(Rectangle rect)
rect - the area of interest.public void showForArea(int clientX,
int clientY,
int offsetWidth,
int offsetHeight)
clientX - X coordinate relative to the viewport of the upper left corner of the area of interest.clientY - Y coordinate relative to the viewport of the upper left corner of the area of interest.offsetWidth - offset width of the area of interest.offsetHeight - offset height of the area of interest.