public class ModalPanel extends Component
Modifier and Type | Class and Description |
---|---|
static interface |
ModalPanel.ModalPanelAppearance |
static class |
ModalPanel.ModalPanelDefaultAppearance |
adjustSize, allowTextSelection, cacheSizes, disableContextMenu, disabled, disabledStyle, ensureVisibilityOnSizing, height, hidden, lastSize, layer, left, mask, maskMessage, monitorWindowResize, pageX, pageY, resizeHandler, shim, tabIndex, toolTip, toolTipConfig, top, width, windowResizeDelay, windowResizeTask
Constructor and Description |
---|
ModalPanel()
Creates a new model panel.
|
ModalPanel(ModalPanel.ModalPanelAppearance appearance)
Creates a model panel with the specified appearance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doAttachChildren() |
protected void |
doDetachChildren() |
ModalPanel.ModalPanelAppearance |
getAppearance() |
BaseEventPreview |
getEventPreview()
Returns the panel's event preview.
|
void |
hide()
Hides the panel.
|
boolean |
isBlink()
Returns true if blinking is enabled.
|
protected void |
onDetach() |
protected void |
onEventPreview(NativePreviewEvent pe) |
protected void |
onWindowResize(int width,
int height) |
static ModalPanel |
pop()
Returns a ModalPanel from the stack.
|
static void |
push(ModalPanel panel)
Pushes a panel back onto the stack.
|
void |
setBlink(boolean blink)
True to blink the widget being displayed when the use clicks outside of the
widgets bounds (defaults to false).
|
void |
show(Component component)
Displays the panel.
|
void |
syncModal()
Syncs to the viewport.
|
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addGestureRecognizer, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleDependentName, addStyleOnOver, adjustPosition, adjustSize, applyState, assertAfterRender, assertPreRender, blur, clearSizeCache, disable, disableContextMenu, disableEvents, enable, enableEvents, fireCancellableEvent, fireEvent, focus, getData, getElement, getFocusEl, getFocusSupport, getGestureRecognizer, getGestureRecognizerCount, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getPositionEl, getShadow, getShadowPosition, getStateId, getTabIndex, getToolTip, hideShadow, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isMonitorWindowResize, isRendered, isStateful, isVisible, isVisible, mask, mask, notifyHide, notifyShow, onAfterFirstAttach, onAttach, onBlur, onBrowserEvent, onDisable, onEnable, onFocus, onHide, onHideContextMenu, onLoad, onPosition, onResize, onRightClick, onShow, onShowContextMenu, onTouch, onUnload, removeStyleDependentName, removeStyleOnOver, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setId, setItemId, setMonitorWindowResize, setPagePosition, setPixelSize, setPosition, setShadow, setShadowPosition, setSize, setStateful, setStateId, setStyleDependentName, setTabIndex, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, show, sync, syncSize, unmask
public ModalPanel()
public ModalPanel(ModalPanel.ModalPanelAppearance appearance)
appearance
- the appearance of the modal panelpublic static ModalPanel pop()
public static void push(ModalPanel panel)
panel
- the panelpublic ModalPanel.ModalPanelAppearance getAppearance()
public BaseEventPreview getEventPreview()
public boolean isBlink()
public void setBlink(boolean blink)
blink
- true to blinkpublic void show(Component component)
component
- the component displayed above this modal panel.public void syncModal()
protected void doAttachChildren()
protected void doDetachChildren()
protected void onEventPreview(NativePreviewEvent pe)
protected void onWindowResize(int width, int height)
onWindowResize
in class Component
Copyright © 2018. All rights reserved.