Package com.sencha.gxt.dnd.core.client
Class StatusProxy
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.sencha.gxt.widget.core.client.Component
-
- com.sencha.gxt.dnd.core.client.StatusProxy
-
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers
,com.google.gwt.event.logical.shared.HasResizeHandlers
,com.google.gwt.event.shared.HasHandlers
,com.google.gwt.user.client.EventListener
,com.google.gwt.user.client.ui.HasEnabled
,com.google.gwt.user.client.ui.HasVisibility
,com.google.gwt.user.client.ui.IsWidget
,HasGestureRecognizers
,BeforeHideEvent.HasBeforeHideHandlers
,BeforeShowContextMenuEvent.HasBeforeShowContextMenuHandler
,BeforeShowEvent.HasBeforeShowHandlers
,BlurEvent.HasBlurHandlers
,DisableEvent.HasDisableHandlers
,EnableEvent.HasEnableHandlers
,FocusEvent.HasFocusHandlers
,HideEvent.HasHideHandlers
,MoveEvent.HasMoveHandlers
,ShowContextMenuEvent.HasShowContextMenuHandler
,ShowEvent.HasShowHandlers
,HasFocusSupport
,HasItemId
public class StatusProxy extends Component
A custom widget used to display the status of the drag operation and information about the data being dragged. The widget is displayed next to the cursor as the user drags data.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
StatusProxy.StatusProxyAppearance
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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, com.google.gwt.resources.client.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(com.google.gwt.safehtml.shared.SafeHtml html)
Updates the contents of the ghost element.-
Methods inherited from class com.sencha.gxt.widget.core.client.Component
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addGestureRecognizer, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleOnOver, clearSizeCache, disable, disableEvents, enable, enableEvents, fireEvent, focus, getData, getElement, getFocusSupport, getGestureRecognizer, getGestureRecognizerCount, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getShadow, getShadowPosition, getStateId, getTabIndex, getToolTip, hide, hideToolTip, isAdjustSize, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isRendered, isStateful, isVisible, isVisible, mask, mask, onBrowserEvent, removeGestureRecognizer, removeToolTip, setAdjustSize, 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
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString
-
-
-
-
Method Detail
-
get
public static StatusProxy get()
Returns the singleton instance.- Returns:
- the status proxy
-
getAppearance
public StatusProxy.StatusProxyAppearance getAppearance()
-
getStatus
public boolean getStatus()
Returns true if the drop is allowed.- Returns:
- the status
-
setStatus
public 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.- Parameters:
allowed
- true for the standard ok icon, false for standard no icon
-
setStatus
public void setStatus(boolean allowed, com.google.gwt.resources.client.ImageResource icon)
Updates the proxy's visual element to indicate the status of whether or not drop is allowed over the current target element.- Parameters:
allowed
- drop is allowedicon
- icon to display
-
update
public void update(com.google.gwt.safehtml.shared.SafeHtml html)
Updates the contents of the ghost element.- Parameters:
html
- the html that will replace the current contents of the ghost element
-
-