Class SubmitButton

    • Constructor Detail

      • SubmitButton

        public SubmitButton()
        Creates a button with no caption.
      • SubmitButton

        public SubmitButton​(SafeHtml html)
        Creates a button with the given HTML caption.
        Parameters:
        html - the HTML caption
      • SubmitButton

        public SubmitButton​(java.lang.String html)
        Creates a button with the given HTML caption.
        Parameters:
        html - the HTML caption
      • SubmitButton

        public SubmitButton​(SafeHtml html,
                            ClickHandler handler)
        Creates a button with the given HTML caption and click listener.
        Parameters:
        html - the HTML caption
        handler - the click handler
      • SubmitButton

        public SubmitButton​(java.lang.String html,
                            ClickHandler handler)
        Creates a button with the given HTML caption and click listener.
        Parameters:
        html - the HTML caption
        handler - the click handler
      • SubmitButton

        protected SubmitButton​(Element element)
        This constructor may be used by subclasses to explicitly use an existing element. This element must be a <button> element with type submit.
        Parameters:
        element - the element to be used
    • Method Detail

      • wrap

        public static Button wrap​(Element element)
        Creates a SubmitButton widget that wraps an existing <button> element. This element must already be attached to the document. If the element is removed from the document, you must call RootPanel.detachNow(Widget).
        Parameters:
        element - the element to be wrapped