Package com.jadice.web.util.icon.client
Class StateEffectIcon
java.lang.Object
com.jadice.web.util.icon.client.StateEffectIcon
- All Implemented Interfaces:
com.google.gwt.user.client.ui.IsWidget,StateIcon
EffectIcons with state (selected, hover,...)
-
Constructor Summary
ConstructorsConstructorDescriptionStateEffectIcon(EffectIcon defaultImage) StateEffectIcon(EffectIcon defaultImage, int initialEffect) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gwt.user.client.ui.WidgetasWidget()copy()Creates a copy of this icon and return it.voidvoidsetEffect(int effect) voidsetEnabled(boolean enabled) Sets the enabled state for this icon.voidsetHover(boolean hover) Sets the hover state for this icon.voidsetHoverImage(EffectIcon img) voidsetPixelSize(int width, int height) voidsetPressed(boolean pressed) Sets the pressed state for this icon.voidvoidsetSelected(boolean selected) Sets the selected state for this icon.voidvoidvoidvoidsetState(boolean enabled, boolean selected, boolean hover, boolean pressed) Sets the all states for this icon.
-
Constructor Details
-
StateEffectIcon
-
StateEffectIcon
-
-
Method Details
-
asWidget
public com.google.gwt.user.client.ui.Widget asWidget()- Specified by:
asWidgetin interfacecom.google.gwt.user.client.ui.IsWidget
-
copy
Description copied from interface:StateIconCreates a copy of this icon and return it. -
setPressedImage
-
setDisabledImage
-
setHoverImage
-
setSelectedImage
-
setSelectedHoverImage
-
setSelectedDisabledImage
-
setEffect
public void setEffect(int effect) -
setEnabled
public void setEnabled(boolean enabled) Description copied from interface:StateIconSets the enabled state for this icon.- Specified by:
setEnabledin interfaceStateIcon- Parameters:
enabled- whether it is enabled or not
-
setHover
public void setHover(boolean hover) Description copied from interface:StateIconSets the hover state for this icon. -
setSelected
public void setSelected(boolean selected) Description copied from interface:StateIconSets the selected state for this icon.- Specified by:
setSelectedin interfaceStateIcon- Parameters:
selected- whether it is selected or not
-
setPressed
public void setPressed(boolean pressed) Description copied from interface:StateIconSets the pressed state for this icon.- Specified by:
setPressedin interfaceStateIcon- Parameters:
pressed- whether it is pressed or not
-
setState
public void setState(boolean enabled, boolean selected, boolean hover, boolean pressed) Description copied from interface:StateIconSets the all states for this icon. -
setPixelSize
public void setPixelSize(int width, int height)
-