org.gwtbootstrap3.extras.toggleswitch.client.ui.base.constants
Enum ColorType

java.lang.Object
  extended by java.lang.Enum<ColorType>
      extended by org.gwtbootstrap3.extras.toggleswitch.client.ui.base.constants.ColorType
All Implemented Interfaces:
Serializable, Comparable<ColorType>

public enum ColorType
extends Enum<ColorType>


Enum Constant Summary
DANGER
           
DEFAULT
           
INFO
           
PRIMARY
           
SUCCESS
           
WARNING
           
 
Method Summary
 String getType()
           
static ColorType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ColorType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PRIMARY

public static final ColorType PRIMARY

INFO

public static final ColorType INFO

SUCCESS

public static final ColorType SUCCESS

WARNING

public static final ColorType WARNING

DANGER

public static final ColorType DANGER

DEFAULT

public static final ColorType DEFAULT
Method Detail

values

public static ColorType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ColorType c : ColorType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ColorType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getType

public String getType()


Copyright © 2015. All rights reserved.