Enum WButton.ImagePosition
- java.lang.Object
-
- java.lang.Enum<WButton.ImagePosition>
-
- com.github.bordertech.wcomponents.WButton.ImagePosition
-
- All Implemented Interfaces:
Serializable
,Comparable<WButton.ImagePosition>
- Enclosing class:
- WButton
public static enum WButton.ImagePosition extends Enum<WButton.ImagePosition>
This is used to control the position of the image on the button relative to the text label. If a button has an image and ImagePosition is not set then the text label will not be visible on the button.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WButton.ImagePosition
valueOf(String name)
Returns the enum constant of this type with the specified name.static WButton.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 WButton.ImagePosition NORTH
Image is in the North position.
-
EAST
public static final WButton.ImagePosition EAST
Image is in the East position.
-
SOUTH
public static final WButton.ImagePosition SOUTH
Image is in the South position.
-
WEST
public static final WButton.ImagePosition WEST
Image is in the West position.
-
-
Method Detail
-
values
public static WButton.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 (WButton.ImagePosition c : WButton.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 WButton.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
-
-