Interface StateIcon

  • All Superinterfaces:
    com.google.gwt.user.client.ui.IsWidget
    All Known Implementing Classes:
    StateEffectIcon, ToggleIconFont

    public interface StateIcon
    extends com.google.gwt.user.client.ui.IsWidget
    A state icon is a widget which can have different icons for different states.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      StateIcon copy()
      Creates a copy of this icon and return it.
      void setEnabled​(boolean enabled)
      Sets the enabled state for this icon.
      void setHover​(boolean hover)
      Sets the hover state for this icon.
      void setPressed​(boolean pressed)
      Sets the pressed state for this icon.
      void setSelected​(boolean selected)
      Sets the selected state for this icon.
      void setState​(boolean enabled, boolean selected, boolean hover, boolean pressed)
      Sets the all states for this icon.
      • Methods inherited from interface com.google.gwt.user.client.ui.IsWidget

        asWidget
    • Method Detail

      • copy

        StateIcon copy()
        Creates a copy of this icon and return it.
        Returns:
        the copy of the icon
      • setEnabled

        void setEnabled​(boolean enabled)
        Sets the enabled state for this icon.
        Parameters:
        enabled - whether it is enabled or not
      • setHover

        void setHover​(boolean hover)
        Sets the hover state for this icon.
        Parameters:
        hover - whether it is hovered or not
      • setSelected

        void setSelected​(boolean selected)
        Sets the selected state for this icon.
        Parameters:
        selected - whether it is selected or not
      • setPressed

        void setPressed​(boolean pressed)
        Sets the pressed state for this icon.
        Parameters:
        pressed - whether it is pressed or not
      • setState

        void setState​(boolean enabled,
                      boolean selected,
                      boolean hover,
                      boolean pressed)
        Sets the all states for this icon.
        Parameters:
        enabled - whether it is enabled or not
        selected - whether it is selected or not
        hover - whether it is hovered or not
        pressed - whether it is pressed or not