Class StateEffectIcon

java.lang.Object
com.jadice.web.util.icon.client.StateEffectIcon
All Implemented Interfaces:
com.google.gwt.user.client.ui.IsWidget, StateIcon

public class StateEffectIcon extends Object implements StateIcon
EffectIcons with state (selected, hover,...)
  • Constructor Details

    • StateEffectIcon

      public StateEffectIcon(EffectIcon defaultImage)
    • StateEffectIcon

      public StateEffectIcon(EffectIcon defaultImage, int initialEffect)
  • Method Details

    • asWidget

      public com.google.gwt.user.client.ui.Widget asWidget()
      Specified by:
      asWidget in interface com.google.gwt.user.client.ui.IsWidget
    • copy

      public StateEffectIcon copy()
      Description copied from interface: StateIcon
      Creates a copy of this icon and return it.
      Specified by:
      copy in interface StateIcon
      Returns:
      the copy of the icon
    • setPressedImage

      public void setPressedImage(EffectIcon img)
    • setDisabledImage

      public void setDisabledImage(EffectIcon img)
    • setHoverImage

      public void setHoverImage(EffectIcon img)
    • setSelectedImage

      public void setSelectedImage(EffectIcon img)
    • setSelectedHoverImage

      public void setSelectedHoverImage(EffectIcon img)
    • setSelectedDisabledImage

      public void setSelectedDisabledImage(EffectIcon img)
    • setEffect

      public void setEffect(int effect)
    • setEnabled

      public void setEnabled(boolean enabled)
      Description copied from interface: StateIcon
      Sets the enabled state for this icon.
      Specified by:
      setEnabled in interface StateIcon
      Parameters:
      enabled - whether it is enabled or not
    • setHover

      public void setHover(boolean hover)
      Description copied from interface: StateIcon
      Sets the hover state for this icon.
      Specified by:
      setHover in interface StateIcon
      Parameters:
      hover - whether it is hovered or not
    • setSelected

      public void setSelected(boolean selected)
      Description copied from interface: StateIcon
      Sets the selected state for this icon.
      Specified by:
      setSelected in interface StateIcon
      Parameters:
      selected - whether it is selected or not
    • setPressed

      public void setPressed(boolean pressed)
      Description copied from interface: StateIcon
      Sets the pressed state for this icon.
      Specified by:
      setPressed in interface StateIcon
      Parameters:
      pressed - whether it is pressed or not
    • setState

      public void setState(boolean enabled, boolean selected, boolean hover, boolean pressed)
      Description copied from interface: StateIcon
      Sets the all states for this icon.
      Specified by:
      setState in interface StateIcon
      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
    • setPixelSize

      public void setPixelSize(int width, int height)