public class StatusProxy extends Component
Modifier and Type | Class and Description |
---|---|
static interface |
StatusProxy.StatusProxyAppearance |
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
DEBUG_ID_PREFIX
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.
|
void |
update(String html)
Updates the contents of the ghost element.
|
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleOnOver, clearSizeCache, disable, disableEvents, enable, enableEvents, fireEvent, focus, getData, getElement, getFocusSupport, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getShadow, getShadowPosition, getStateId, getTabIndex, getToolTip, hide, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isRendered, isStateful, isVisible, isVisible, mask, mask, onBrowserEvent, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setId, setItemId, setPagePosition, setPixelSize, setPosition, setShadow, setShadowPosition, setSize, setStateful, setStateId, setTabIndex, setToolTip, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, show, sync, syncSize, unmask
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString
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
elementpublic void update(String html)
html
- the html that will replace the current contents of the ghost
elementCopyright © 2015. All rights reserved.