Class StatusProxy

    • Method Detail

      • get

        public static StatusProxy get()
        Returns the singleton instance.
        Returns:
        the status proxy
      • 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 allowed
        icon - 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