org.gwtbootstrap3.extras.notify.client.constants
Enum NotifyPlacement

java.lang.Object
  extended by java.lang.Enum<NotifyPlacement>
      extended by org.gwtbootstrap3.extras.notify.client.constants.NotifyPlacement
All Implemented Interfaces:
Serializable, Comparable<NotifyPlacement>, org.gwtbootstrap3.client.ui.constants.Type

public enum NotifyPlacement
extends Enum<NotifyPlacement>
implements org.gwtbootstrap3.client.ui.constants.Type

Enumeration of possible Notify's screen locations.

Author:
Xiaodong SUN

Enum Constant Summary
BOTTOM_CENTER
           
BOTTOM_LEFT
           
BOTTOM_RIGHT
           
TOP_CENTER
           
TOP_LEFT
           
TOP_RIGHT
           
 
Method Summary
 String getAlign()
          Returns the horizontal placement : left, center, or right.
 String getFrom()
          Returns the vertical placement : top or bottom.
 String getPlacement()
          Returns the string representation of placement.
static NotifyPlacement valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NotifyPlacement[] 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

TOP_LEFT

public static final NotifyPlacement TOP_LEFT

TOP_CENTER

public static final NotifyPlacement TOP_CENTER

TOP_RIGHT

public static final NotifyPlacement TOP_RIGHT

BOTTOM_LEFT

public static final NotifyPlacement BOTTOM_LEFT

BOTTOM_CENTER

public static final NotifyPlacement BOTTOM_CENTER

BOTTOM_RIGHT

public static final NotifyPlacement BOTTOM_RIGHT
Method Detail

values

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

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

valueOf

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

getFrom

public String getFrom()
Returns the vertical placement : top or bottom.

Returns:
the vertical placement

getAlign

public String getAlign()
Returns the horizontal placement : left, center, or right.

Returns:
the horizontal placement

getPlacement

public String getPlacement()
Returns the string representation of placement.

Returns:
String representation of placement


Copyright © 2015. All rights reserved.