org.dishevelled.iconbundle
Class IconState

java.lang.Object
  extended by org.dishevelled.iconbundle.IconState
All Implemented Interfaces:
Serializable

public final class IconState
extends Object
implements Serializable

Typesafe enumeration of icon states.

Version:
$Revision: 974 $ $Date: 2011-01-04 21:40:23 -0600 (Tue, 04 Jan 2011) $
Author:
Michael Heuer
See Also:
Serialized Form

Field Summary
static IconState ACTIVE
          Active icon state.
static IconState DISABLED
          Disabled icon state.
static IconState DRAGGING
          Dragging icon state.
static IconState MOUSEOVER
          Mouseover icon state.
static IconState NORMAL
          Normal icon state.
static IconState SELECTED
          Selected icon state.
static IconState SELECTED_MOUSEOVER
          Selected mouseover icon state.
static List VALUES
          Public list of enumeration values.
 
Method Summary
 boolean isActive()
          Return true if this icon state is IconState.ACTIVE.
 boolean isDisabled()
          Return true if this icon state is IconState.DISABLED.
 boolean isDragging()
          Return true if this icon state is IconState.DRAGGING.
 boolean isMouseover()
          Return true if this icon state is IconState.MOUSEOVER.
 boolean isNormal()
          Return true if this icon state is IconState.NORMAL.
 boolean isSelected()
          Return true if this icon state is IconState.SELECTED.
 boolean isSelectedMouseover()
          Return true if this icon state is IconState.SELECTED_MOUSEOVER.
 String toString()
          Return the state name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NORMAL

public static final IconState NORMAL
Normal icon state.


ACTIVE

public static final IconState ACTIVE
Active icon state.


MOUSEOVER

public static final IconState MOUSEOVER
Mouseover icon state.


SELECTED

public static final IconState SELECTED
Selected icon state.


SELECTED_MOUSEOVER

public static final IconState SELECTED_MOUSEOVER
Selected mouseover icon state.


DRAGGING

public static final IconState DRAGGING
Dragging icon state.


DISABLED

public static final IconState DISABLED
Disabled icon state.


VALUES

public static final List VALUES
Public list of enumeration values.

Method Detail

toString

public String toString()
Return the state name.

Overrides:
toString in class Object
Returns:
the state name

isNormal

public boolean isNormal()
Return true if this icon state is IconState.NORMAL.

Returns:
true if this icon state is IconState.NORMAL

isActive

public boolean isActive()
Return true if this icon state is IconState.ACTIVE.

Returns:
true if this icon state is IconState.ACTIVE

isMouseover

public boolean isMouseover()
Return true if this icon state is IconState.MOUSEOVER.

Returns:
true if this icon state is IconState.MOUSEOVER

isSelected

public boolean isSelected()
Return true if this icon state is IconState.SELECTED.

Returns:
true if this icon state is IconState.SELECTED

isSelectedMouseover

public boolean isSelectedMouseover()
Return true if this icon state is IconState.SELECTED_MOUSEOVER.

Returns:
true if this icon state is IconState.SELECTED_MOUSEOVER

isDragging

public boolean isDragging()
Return true if this icon state is IconState.DRAGGING.

Returns:
true if this icon state is IconState.DRAGGING

isDisabled

public boolean isDisabled()
Return true if this icon state is IconState.DISABLED.

Returns:
true if this icon state is IconState.DISABLED


Copyright (c) 2003-2011 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).