Package com.oorian.css
Enum Class Cursor
- All Implemented Interfaces:
Serializable,Comparable<Cursor>,Constable
CSS cursor property values for mouse pointer appearance.
The cursor property specifies the type of cursor to display when the mouse pointer is over an element. Different cursor types communicate available actions to users.
Cursor Categories:
- General: DEFAULT, AUTO, NONE, POINTER
- Selection: TEXT, VERTICAL_TEXT, CELL, CROSSHAIR
- Resize: N_RESIZE, E_RESIZE, S_RESIZE, W_RESIZE, and diagonals
- Drag and Drop: GRAB, GRABBING, MOVE, COPY, ALIAS, NO_DROP
- Status: WAIT, PROGRESS, HELP, NOT_ALLOWED
- Zoom: ZOOM_IN, ZOOM_OUT
Usage:
element.setCursor(Cursor.POINTER);
element.setCursor(Cursor.GRAB);
- Since:
- 2012
- Version:
- 1.0
- Author:
- Marvin P. Warble Jr.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCreates a shortcut/alias cursor.Indicates scrolling in any direction.Browser determines cursor based on context.Indicates a cell or cells can be selected.Indicates horizontal column resize.Indicates a context menu is available.Indicates something can be copied.Crosshair cursor for precise selection.Default platform cursor (usually arrow).Indicates east (right) edge resize.Indicates bidirectional east-west resize.Open hand indicating grabbable content.Closed hand indicating content is being grabbed.Indicates help is available.Inherits from parent element.Sets to default value.Indicates something can be moved.Indicates north (top) edge resize.Indicates northeast corner resize.Indicates bidirectional northeast-southwest resize.Indicates item cannot be dropped here.No cursor is rendered.Indicates requested action is not allowed.Indicates bidirectional north-south resize.Indicates northwest corner resize.Indicates bidirectional northwest-southeast resize.Pointer/hand indicating a link or clickable element.Indicates program is busy but user can interact.Indicates vertical row resize.Indicates south (bottom) edge resize.Indicates southeast corner resize.Indicates southwest corner resize.Indicates text can be selected.Indicates vertical text can be selected.Indicates west (left) edge resize.Indicates program is busy (hourglass/spinner).Indicates zoom in capability.Indicates zoom out capability. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the CSS value string.toString()Returns the CSS value string.static CursorReturns the enum constant of this class with the specified name.static Cursor[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALIAS
Creates a shortcut/alias cursor. -
ALL_SCROLL
Indicates scrolling in any direction. -
AUTO
Browser determines cursor based on context. -
CELL
Indicates a cell or cells can be selected. -
CONTEXT_MENU
Indicates a context menu is available. -
COL_RESIZE
Indicates horizontal column resize. -
COPY
Indicates something can be copied. -
CROSSHAIR
Crosshair cursor for precise selection. -
DEFAULT
Default platform cursor (usually arrow). -
E_RESIZE
Indicates east (right) edge resize. -
EW_RESIZE
Indicates bidirectional east-west resize. -
GRAB
Open hand indicating grabbable content. -
GRABBING
Closed hand indicating content is being grabbed. -
HELP
Indicates help is available. -
MOVE
Indicates something can be moved. -
N_RESIZE
Indicates north (top) edge resize. -
NE_RESIZE
Indicates northeast corner resize. -
NESW_RESIZE
Indicates bidirectional northeast-southwest resize. -
NS_RESIZE
Indicates bidirectional north-south resize. -
NW_RESIZE
Indicates northwest corner resize. -
NWSE_RESIZE
Indicates bidirectional northwest-southeast resize. -
NO_DROP
Indicates item cannot be dropped here. -
NONE
No cursor is rendered. -
NOT_ALLOWED
Indicates requested action is not allowed. -
POINTER
Pointer/hand indicating a link or clickable element. -
PROGRESS
Indicates program is busy but user can interact. -
ROW_RESIZE
Indicates vertical row resize. -
S_RESIZE
Indicates south (bottom) edge resize. -
SE_RESIZE
Indicates southeast corner resize. -
SW_RESIZE
Indicates southwest corner resize. -
TEXT
Indicates text can be selected. -
VERTICAL_TEXT
Indicates vertical text can be selected. -
W_RESIZE
Indicates west (left) edge resize. -
WAIT
Indicates program is busy (hourglass/spinner). -
ZOOM_IN
Indicates zoom in capability. -
ZOOM_OUT
Indicates zoom out capability. -
INITIAL
Sets to default value. -
INHERIT
Inherits from parent element.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
Returns the CSS value string.- Returns:
- the CSS value
-
toString
Returns the CSS value string.
-