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 SummaryEnum Constants Enum Constant and Description BOTTOM_LEFTBOTTOM_RIGHTTOP_LEFTTOP_RIGHTUNKNOWN
 - 
Method SummaryAll 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_LEFTpublic static final WidgetView.Anchor TOP_LEFT 
 - 
TOP_RIGHTpublic static final WidgetView.Anchor TOP_RIGHT 
 - 
BOTTOM_LEFTpublic static final WidgetView.Anchor BOTTOM_LEFT 
 - 
BOTTOM_RIGHTpublic static final WidgetView.Anchor BOTTOM_RIGHT 
 - 
UNKNOWNpublic static final WidgetView.Anchor UNKNOWN 
 
- 
 - 
Method Detail- 
valuespublic 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
 
 - 
valueOfpublic 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 name
- java.lang.NullPointerException- if the argument is null
 
 - 
getValuepublic int getValue() Gets the value of this position enum- Returns:
- position value as defined in this enum
 
 - 
getTypepublic 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
 
 
- 
 
-