Enum WidgetView.Anchor
- java.lang.Object
-
- java.lang.Enum<WidgetView.Anchor>
-
- com.zopim.android.sdk.widget.view.WidgetView.Anchor
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<WidgetView.Anchor>
- Enclosing class:
- WidgetView
public static enum WidgetView.Anchor extends java.lang.Enum<WidgetView.Anchor>
Definition of available anchor positions for this view. Attribute for layout position is definer here in attrs values file
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description BOTTOM_LEFTBOTTOM_RIGHTTOP_LEFTTOP_RIGHTUNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static WidgetView.AnchorgetType(int position)Gets the enum position of the value passed as parameterintgetValue()Gets the value of this position enumstatic WidgetView.AnchorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static WidgetView.Anchor[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TOP_LEFT
public static final WidgetView.Anchor TOP_LEFT
-
TOP_RIGHT
public static final WidgetView.Anchor TOP_RIGHT
-
BOTTOM_LEFT
public static final WidgetView.Anchor BOTTOM_LEFT
-
BOTTOM_RIGHT
public static final WidgetView.Anchor BOTTOM_RIGHT
-
UNKNOWN
public static final WidgetView.Anchor UNKNOWN
-
-
Method Detail
-
values
public static WidgetView.Anchor[] 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 (WidgetView.Anchor c : WidgetView.Anchor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WidgetView.Anchor valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getValue
public int getValue()
Gets the value of this position enum- Returns:
- position value as defined in this enum
-
getType
public static WidgetView.Anchor getType(int position)
Gets the enum position of the value passed as parameter- Parameters:
position- value to interpret- Returns:
- position or
WidgetView.Anchor.UNKNOWNif not found
-
-