Package com.jadice.web.util.icon.client
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
Modifier and TypeMethodDescriptioncopy()
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 Details
-
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 notselected
- whether it is selected or nothover
- whether it is hovered or notpressed
- whether it is pressed or not
-