001 package com.osbcp.css.constants; 002 003 import java.io.Serializable; 004 005 /** 006 * Values for the <i>cursor</i> property. 007 * 008 * @see <a href="http://www.w3schools.com/cssref/pr_class_cursor.asp">CSS cursor Property</a> 009 * @author <a href="mailto:christoffer@christoffer.me">Christoffer Pettersson</a> 010 */ 011 012 public enum Cursor implements Serializable { 013 014 /** 015 * The cursor render as a pointer. 016 */ 017 POINTER, 018 019 /** 020 * The cursor render as a crosshair. 021 */ 022 CROSSHAIR, 023 024 /** 025 * The cursor indicates something that should be moved. 026 */ 027 MOVE, 028 029 /** 030 * The cursor indicates text. 031 */ 032 TEXT, 033 034 /** 035 * The cursor indicates that the program is busy. 036 */ 037 WAIT, 038 039 /** 040 * The cursor indicates that help is available. 041 */ 042 HELP, 043 044 /** 045 * The cursor indicates that the program is busy (in progress). 046 */ 047 PROGRESS, 048 049 /** 050 * The default cursor. 051 */ 052 DEFAULT, 053 054 /** 055 * Default. The browser sets a cursor. 056 */ 057 AUTO, 058 059 /** 060 * The cursor indicates that an edge of a box is to be moved up (north). 061 */ 062 N_RESIZE, 063 064 /** 065 * The cursor indicates that an edge of a box is to be moved up and right (north/east). 066 */ 067 NE_RESIZE, 068 069 /** 070 * The cursor indicates that an edge of a box is to be moved up and left (north/west). 071 */ 072 NW_RESIZE, 073 074 /** 075 * The cursor indicates that an edge of a box is to be moved down (south). 076 */ 077 S_RESIZE, 078 079 /** 080 * The cursor indicates that an edge of a box is to be moved down and right (south/east). 081 */ 082 SE_RESIZE, 083 084 /** 085 * The cursor indicates that an edge of a box is to be moved down and left (south/west). 086 */ 087 SW_RESIZE, 088 089 /** 090 * The cursor indicates that an edge of a box is to be moved left (west). 091 */ 092 W_RESIZE, 093 094 /** 095 * The cursor indicates that an edge of a box is to be moved right (east). 096 */ 097 E_RESIZE, 098 099 /** 100 * Specifies that the value of the cursor property should be inherited from the parent element. 101 */ 102 INHERIT; 103 104 @Override 105 public String toString() { 106 return name().toLowerCase().replace("_", "-"); 107 } 108 109 }