Enum CursorType
- java.lang.Object
-
- java.lang.Enum<CursorType>
-
- org.pepstock.charba.client.dom.enums.CursorType
-
- All Implemented Interfaces:
Serializable
,Comparable<CursorType>
,Key
public enum CursorType extends Enum<CursorType> implements Key
Enumerates the sets the type of cursor, if any, to show when the mouse pointer is over an element.- Author:
- Andrea "Stock" Stocchero
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALIAS
An alias or shortcut is to be created.ALL_SCROLL
Something can be scrolled in any direction (panned).AUTO
The UA will determine the cursor to display based on the current context.CELL
The table cell or set of cells can be selected.COL_RESIZE
The item/column can be resized horizontally.CONTEXT_MENU
A context menu is available.COPY
Something is to be copied.CROSSHAIR
Cross cursor, often used to indicate selection in a bitmap.DEFAULT
The platform-dependent default cursor.E_RESIZE
Example of a resize towards the right cursorEW_RESIZE
Bidirectional resize cursor.GRAB
Something can be grabbed (dragged to be moved).GRABBING
Something is being grabbed (dragged to be moved).HELP
Help information is available.MOVE
Something is to be moved.N_RESIZE
Example of a resize towards the top cursor;Some edge is to be moved.NE_RESIZE
Example of a resize towards the top-right corner cursorNESW_RESIZE
NO_DROP
An item may not be dropped at the current location.NONE
No cursor is rendered.NOT_ALLOWED
The requested action will not be carried out.NS_RESIZE
NW_RESIZE
Example of a resize towards the top-left corner cursorNWSE_RESIZE
POINTER
he cursor is a pointer that indicates a link.PROGRESS
The program is busy in the background, but the user can still interact with the interface (in contrast to wait).ROW_RESIZE
The item/row can be resized vertically.S_RESIZE
Example of a resize towards the bottom cursorSE_RESIZE
Example of a resize towards the bottom-right corner cursorSW_RESIZE
Example of a resize towards the bottom-left corner cursorTEXT
The text can be selected.VERTICAL_TEXT
The vertical text can be selected.W_RESIZE
Example of a resize towards the left cursorWAIT
The program is busy, and the user can't interact with the interface (in contrast to progress).ZOOM_IN
Something can be zoomed (magnified) in;ZOOM_OUT
Something can be zoomed (magnified) out
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
value()
Returns the name value of propertystatic CursorType
valueOf(String name)
Returns the enum constant of this type with the specified name.static CursorType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTO
public static final CursorType AUTO
The UA will determine the cursor to display based on the current context. E.g., equivalent to text when hovering text.
-
DEFAULT
public static final CursorType DEFAULT
The platform-dependent default cursor. Typically an arrow.
-
NONE
public static final CursorType NONE
No cursor is rendered.
-
CONTEXT_MENU
public static final CursorType CONTEXT_MENU
A context menu is available.
-
HELP
public static final CursorType HELP
Help information is available.
-
POINTER
public static final CursorType POINTER
he cursor is a pointer that indicates a link. Typically an image of a pointing hand.
-
PROGRESS
public static final CursorType PROGRESS
The program is busy in the background, but the user can still interact with the interface (in contrast to wait).
-
WAIT
public static final CursorType WAIT
The program is busy, and the user can't interact with the interface (in contrast to progress). Sometimes an image of an hourglass or a watch.
-
CELL
public static final CursorType CELL
The table cell or set of cells can be selected.
-
CROSSHAIR
public static final CursorType CROSSHAIR
Cross cursor, often used to indicate selection in a bitmap.
-
TEXT
public static final CursorType TEXT
The text can be selected. Typically the shape of an I-beam.
-
VERTICAL_TEXT
public static final CursorType VERTICAL_TEXT
The vertical text can be selected. Typically the shape of a sideways I-beam.
-
ALIAS
public static final CursorType ALIAS
An alias or shortcut is to be created.
-
COPY
public static final CursorType COPY
Something is to be copied.
-
MOVE
public static final CursorType MOVE
Something is to be moved.
-
NO_DROP
public static final CursorType NO_DROP
An item may not be dropped at the current location.
-
NOT_ALLOWED
public static final CursorType NOT_ALLOWED
The requested action will not be carried out.
-
GRAB
public static final CursorType GRAB
Something can be grabbed (dragged to be moved).
-
GRABBING
public static final CursorType GRABBING
Something is being grabbed (dragged to be moved).
-
ALL_SCROLL
public static final CursorType ALL_SCROLL
Something can be scrolled in any direction (panned).
-
COL_RESIZE
public static final CursorType COL_RESIZE
The item/column can be resized horizontally. Often rendered as arrows pointing left and right with a vertical bar separating them.
-
ROW_RESIZE
public static final CursorType ROW_RESIZE
The item/row can be resized vertically. Often rendered as arrows pointing up and down with a horizontal bar separating them.
-
N_RESIZE
public static final CursorType N_RESIZE
Example of a resize towards the top cursor;Some edge is to be moved. For example, the se-resize cursor is used when the movement starts from the south-east corner of the box. In some environments, an equivalent bidirectional resize cursor is shown. For example, n-resize and s-resize are the same as ns-resize.
-
E_RESIZE
public static final CursorType E_RESIZE
Example of a resize towards the right cursor
-
S_RESIZE
public static final CursorType S_RESIZE
Example of a resize towards the bottom cursor
-
W_RESIZE
public static final CursorType W_RESIZE
Example of a resize towards the left cursor
-
NE_RESIZE
public static final CursorType NE_RESIZE
Example of a resize towards the top-right corner cursor
-
NW_RESIZE
public static final CursorType NW_RESIZE
Example of a resize towards the top-left corner cursor
-
SE_RESIZE
public static final CursorType SE_RESIZE
Example of a resize towards the bottom-right corner cursor
-
SW_RESIZE
public static final CursorType SW_RESIZE
Example of a resize towards the bottom-left corner cursor
-
EW_RESIZE
public static final CursorType EW_RESIZE
Bidirectional resize cursor.
-
NS_RESIZE
public static final CursorType NS_RESIZE
-
NESW_RESIZE
public static final CursorType NESW_RESIZE
-
NWSE_RESIZE
public static final CursorType NWSE_RESIZE
-
ZOOM_IN
public static final CursorType ZOOM_IN
Something can be zoomed (magnified) in;
-
ZOOM_OUT
public static final CursorType ZOOM_OUT
Something can be zoomed (magnified) out
-
-
Method Detail
-
values
public static CursorType[] 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 (CursorType c : CursorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CursorType 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
-
-