Class PushButton

    • Constructor Detail

      • PushButton

        public PushButton()
        Constructor for PushButton.
      • PushButton

        public PushButton​(Image upImage)
        Constructor for PushButton.
        Parameters:
        upImage - image for the default(up) face of the button
      • PushButton

        public PushButton​(Image upImage,
                          ClickHandler handler)
        Constructor for PushButton. The supplied image is used to construct the default face of the button.
        Parameters:
        upImage - image for the default (up) face of the button
        handler - teh click handler
      • PushButton

        @Deprecated
        public PushButton​(Image upImage,
                          ClickListener listener)
        Deprecated.
        Constructor for PushButton. The supplied image is used to construct the default face of the button.
        Parameters:
        upImage - image for the default (up) face of the button
        listener - the click listener
      • PushButton

        public PushButton​(Image upImage,
                          Image downImage)
        Constructor for PushButton.
        Parameters:
        upImage - image for the default(up) face of the button
        downImage - image for the down face of the button
      • PushButton

        public PushButton​(Image upImage,
                          Image downImage,
                          ClickHandler handler)
        Constructor for PushButton.
        Parameters:
        upImage - image for the default(up) face of the button
        downImage - image for the down face of the button
        handler - the click handler
      • PushButton

        @Deprecated
        public PushButton​(Image upImage,
                          Image downImage,
                          ClickListener listener)
        Constructor for PushButton.
        Parameters:
        upImage - image for the default(up) face of the button
        downImage - image for the down face of the button
        listener - clickListener
      • PushButton

        public PushButton​(java.lang.String upText)
        Constructor for PushButton. The supplied text is used to construct the default face of the button.
        Parameters:
        upText - the text for the default (up) face of the button.
      • PushButton

        public PushButton​(java.lang.String upText,
                          ClickHandler handler)
        Constructor for PushButton. The supplied text is used to construct the default face of the button.
        Parameters:
        upText - the text for the default (up) face of the button
        handler - the click handler
      • PushButton

        @Deprecated
        public PushButton​(java.lang.String upText,
                          ClickListener listener)
        Deprecated.
        Constructor for PushButton. The supplied text is used to construct the default face of the button.
        Parameters:
        upText - the text for the default (up) face of the button
        listener - the click listener
      • PushButton

        public PushButton​(java.lang.String upText,
                          java.lang.String downText)
        Constructor for PushButton.
        Parameters:
        upText - the text for the default (up) face of the button
        downText - the text for down face of the button
      • PushButton

        public PushButton​(java.lang.String upText,
                          java.lang.String downText,
                          ClickHandler handler)
        Constructor for PushButton.
        Parameters:
        upText - the text for the default (up) face of the button
        downText - the text for down face of the button
        handler - the click handler
      • PushButton

        @Deprecated
        public PushButton​(java.lang.String upText,
                          java.lang.String downText,
                          ClickListener listener)
        Constructor for PushButton.
        Parameters:
        upText - the text for the default (up) face of the button
        downText - the text for down face of the button
        listener - the click listener
    • Method Detail

      • onClick

        protected void onClick()
        Description copied from class: CustomButton
        Called when the user finishes clicking on this button. The default behavior is to fire the click event to listeners. Subclasses that override CustomButton.onClickStart() should override this method to restore the normal widget display.
        Overrides:
        onClick in class CustomButton
      • onClickCancel

        protected void onClickCancel()
        Description copied from class: CustomButton
        Called when the user aborts a click in progress; for example, by dragging the mouse outside of the button before releasing the mouse button. Subclasses that override CustomButton.onClickStart() should override this method to restore the normal widget display.
        Overrides:
        onClickCancel in class CustomButton
      • onClickStart

        protected void onClickStart()
        Description copied from class: CustomButton
        Called when the user begins to click on this button. Subclasses may override this method to display the start of the click visually; such subclasses should also override CustomButton.onClick() and CustomButton.onClickCancel() to restore normal visual state. Each onClickStart will eventually be followed by either onClick or onClickCancel, depending on whether the click is completed.
        Overrides:
        onClickStart in class CustomButton