public class StatusProxy extends Component
Modifier and Type | Class and Description |
---|---|
static interface |
StatusProxy.StatusProxyAppearance |
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
Modifier | Constructor and Description |
---|---|
protected |
StatusProxy() |
protected |
StatusProxy(StatusProxy.StatusProxyAppearance appearance) |
Modifier and Type | Method and Description |
---|---|
static StatusProxy |
get()
Returns the singleton instance.
|
StatusProxy.StatusProxyAppearance |
getAppearance() |
boolean |
getStatus()
Returns true if the drop is allowed.
|
void |
setStatus(boolean allowed)
Updates the proxy's visual element to indicate the status of whether or not
drop is allowed over the current target element.
|
void |
setStatus(boolean allowed,
ImageResource icon)
Updates the proxy's visual element to indicate the status of whether or not
drop is allowed over the current target element.
|
void |
update(SafeHtml html)
Updates the contents of the ghost element.
|
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, hide, hideShadow, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isMonitorWindowResize, isRendered, isStateful, isVisible, isVisible, mask, mask, notifyHide, notifyShow, onAfterFirstAttach, onAttach, onBlur, onBrowserEvent, onDetach, onDisable, onEnable, onFocus, onHide, onHideContextMenu, onLoad, onPosition, onResize, onRightClick, onShow, onShowContextMenu, onTouch, onUnload, onWindowResize, 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
protected StatusProxy()
protected StatusProxy(StatusProxy.StatusProxyAppearance appearance)
public static StatusProxy get()
public StatusProxy.StatusProxyAppearance getAppearance()
public boolean getStatus()
public void setStatus(boolean allowed)
allowed
- true for the standard ok icon, false for standard no iconpublic void setStatus(boolean allowed, ImageResource icon)
allowed
- drop is allowedicon
- icon to displaypublic void update(SafeHtml html)
html
- the html that will replace the current contents of the ghost
elementCopyright © 2018. All rights reserved.