com.github.gwtbootstrap.client.ui.constants
Enum VisibilityChange

java.lang.Object
  extended by java.lang.Enum<VisibilityChange>
      extended by com.github.gwtbootstrap.client.ui.constants.VisibilityChange
All Implemented Interfaces:
Style, Serializable, Comparable<VisibilityChange>

public enum VisibilityChange
extends Enum<VisibilityChange>
implements Style

Actions to change an object's visibility.

Since:
2.0.4.0
Author:
Dominik Mayer
See Also:
HoverBase

Enum Constant Summary
HIDE
          Hide the widget if it is shown.
SHOW
          Show the widget if it hidden.
TOGGLE
          Show the widget if it is hidden, hide the widget if it is shown.
 
Method Summary
 String get()
          Gets the CSS class name (or a part thereof) associated with this constant.
static VisibilityChange valueOf(String name)
          Returns the enum constant of this type with the specified name.
static VisibilityChange[] 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

SHOW

public static final VisibilityChange SHOW
Show the widget if it hidden.


HIDE

public static final VisibilityChange HIDE
Hide the widget if it is shown.


TOGGLE

public static final VisibilityChange TOGGLE
Show the widget if it is hidden, hide the widget if it is shown.

Method Detail

values

public static VisibilityChange[] 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 (VisibilityChange c : VisibilityChange.values())
    System.out.println(c);

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

valueOf

public static VisibilityChange 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

get

public String get()
Gets the CSS class name (or a part thereof) associated with this constant.

Specified by:
get in interface Style
Returns:
the name of the class


Copyright © 2012 gwtbootstrap. All Rights Reserved.