Enum WLink.ImagePosition
- java.lang.Object
-
- java.lang.Enum<WLink.ImagePosition>
-
- com.github.bordertech.wcomponents.WLink.ImagePosition
-
- All Implemented Interfaces:
Serializable
,Comparable<WLink.ImagePosition>
- Enclosing class:
- WLink
public static enum WLink.ImagePosition extends Enum<WLink.ImagePosition>
This is used to control the position of the image on the link.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WLink.ImagePosition
valueOf(String name)
Returns the enum constant of this type with the specified name.static WLink.ImagePosition[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NORTH
public static final WLink.ImagePosition NORTH
Image is in the North position.
-
EAST
public static final WLink.ImagePosition EAST
Image is in the East position.
-
SOUTH
public static final WLink.ImagePosition SOUTH
Image is in the South position.
-
WEST
public static final WLink.ImagePosition WEST
Image is in the West position.
-
-
Method Detail
-
values
public static WLink.ImagePosition[] 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 (WLink.ImagePosition c : WLink.ImagePosition.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WLink.ImagePosition 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 nameNullPointerException
- if the argument is null
-
-