Package io.guise.framework.platform.web
Enum Cursor
- All Implemented Interfaces:
com.globalmentor.lex.Identifier
,com.globalmentor.lex.Token
,Serializable
,Comparable<Cursor>
Standard Guise cursors that are converted to predefined CSS cursors. These cursors allow predefined dummy URIs to be mapped to predefined CSS cursors. These
URIs are constructed by using the path
GuiseApplication.GUISE_ROOT_THEME_CURSORS_PATH
with the serialized form of the enum appended.- Author:
- Garret Wilson
- See Also:
-
Enum Constant Summary
Enum ConstantDescriptionA simple crosshair (e.g., short line segments resembling a "+" sign).The platform-dependent default cursor.Help is available for the object under the cursor.Indicates something is to be moved.The cursor is a pointer that indicates a link.A progress indicator.Indicate that some edge is to be moved from the east of the box in left-to-right top-to-bottom orientation.Indicate that some edge is to be moved from the south-east corner of the box in left-to-right top-to-bottom orientation.Indicate that some edge is to be moved from the north-east corner of the box in left-to-right top-to-bottom orientation.Indicate that some edge is to be moved from the west of the box in left-to-right top-to-bottom orientation.Indicate that some edge is to be moved from the south-west corner of the box in left-to-right top-to-bottom orientation.Indicate that some edge is to be moved from the north-west corner of the box in left-to-right top-to-bottom orientation.Indicate that some edge is to be moved from the south corner of the box in left-to-right top-to-bottom orientation.Indicate that some edge is to be moved from the north of the box in left-to-right top-to-bottom orientation.Indicates text that may be selected.Indicates that the program is busy and the user should wait. -
Method Summary
Modifier and TypeMethodDescriptioncom.globalmentor.css.spec.CSS.Cursor
getCSSCursor
(Orientation orientation) Retrieves the CSS cursor that corresponds to the predefined cursor based in the given component orientation.static Cursor
Determines a predefined cursor from the given URIgetURI()
static Cursor
Returns the enum constant of this type with the specified name.static Cursor[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CROSSHAIR
A simple crosshair (e.g., short line segments resembling a "+" sign). -
DEFAULT
The platform-dependent default cursor. Often rendered as an arrow. -
HELP
Help is available for the object under the cursor. Often rendered as a question mark or a balloon. -
MOVE
Indicates something is to be moved. -
POINTER
The cursor is a pointer that indicates a link. -
PROGRESS
A progress indicator. The program is performing some processing, but is different fromWAIT
in that the user may still interact with the program. Often rendered as a spinning beach ball, or an arrow with a watch or hourglass. -
RESIZE_LINE_FAR
Indicate that some edge is to be moved from the east of the box in left-to-right top-to-bottom orientation. -
RESIZE_LINE_FAR_PAGE_FAR
Indicate that some edge is to be moved from the south-east corner of the box in left-to-right top-to-bottom orientation. -
RESIZE_LINE_FAR_PAGE_NEAR
Indicate that some edge is to be moved from the north-east corner of the box in left-to-right top-to-bottom orientation. -
RESIZE_LINE_NEAR
Indicate that some edge is to be moved from the west of the box in left-to-right top-to-bottom orientation. -
RESIZE_LINE_NEAR_PAGE_FAR
Indicate that some edge is to be moved from the south-west corner of the box in left-to-right top-to-bottom orientation. -
RESIZE_LINE_NEAR_PAGE_NEAR
Indicate that some edge is to be moved from the north-west corner of the box in left-to-right top-to-bottom orientation. -
RESIZE_PAGE_NEAR
Indicate that some edge is to be moved from the north of the box in left-to-right top-to-bottom orientation. -
RESIZE_PAGE_FAR
Indicate that some edge is to be moved from the south corner of the box in left-to-right top-to-bottom orientation. -
TEXT
Indicates text that may be selected. Often rendered as an I-beam. -
WAIT
Indicates that the program is busy and the user should wait. Often rendered as a watch or hourglass.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getURI
- Returns:
- The URI of the predefined cursor relative to the application.
-
getCSSCursor
Retrieves the CSS cursor that corresponds to the predefined cursor based in the given component orientation.- Parameters:
orientation
- The component orientation for which the cursor should be returned.- Returns:
- The CSS cursor corresponding to this cursor in the given orientation.
- Throws:
NullPointerException
- if the given orientation isnull
.
-
getCursor
Determines a predefined cursor from the given URI- Parameters:
uri
- The URI of the predefined cursor relative to the application.- Returns:
- The predefined cursor indicated by the given URI, or
null
if the given URI does not identify a predefined cursor.
-