Package com.webfirmframework.wffweb.css
Class Cursor
java.lang.Object
com.webfirmframework.wffweb.css.core.AbstractCssProperty<Cursor>
com.webfirmframework.wffweb.css.Cursor
- All Implemented Interfaces:
CssProperty
,StateChangeInformer<Bean>
,Serializable
,Cloneable
cursor : alias | all-scroll | auto | cell | context-menu | col-resize | copy
| crosshair | default | e-resize | ew-resize | grab | grabbing | help | move
| n-resize | ne-resize | nesw-resize | ns-resize | nw-resize | nwse-resize |
no-drop | none | not-allowed | pointer | progress | row-resize | s-resize |
se-resize | sw-resize | text | URL | vertical-text | w-resize | wait |
zoom-in | zoom-out | initial | inherit;
- Since:
- 1.0.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionTo introduce additional cursor types, add those to this list.static String[]
String[]
setCssValue
(String cssValue) void
setCursorType
(String cursorType) void
setCursorUrls
(String cursorType, UrlCss3Value... urlCss3Values) void
setCursorUrls
(String cursorType, String... cursorUrls) This method is for CSS 2.1 cursor syntax.void
stateChanged
(Bean stateChangedObject) toString()
Methods inherited from class com.webfirmframework.wffweb.css.core.AbstractCssProperty
clone, getStateChangeInformer, isAlreadyInUse, setAlreadyInUse, setStateChangeInformer, toCssString
-
Field Details
-
ALIAS
- See Also:
-
ALL_SCROLL
- See Also:
-
AUTO
- See Also:
-
CELL
- See Also:
-
CONTEXT_MENU
- See Also:
-
COL_RESIZE
- See Also:
-
COPY
- See Also:
-
CROSSHAIR
- See Also:
-
DEFAULT
- See Also:
-
E_RESIZE
- See Also:
-
EW_RESIZE
- See Also:
-
GRAB
- See Also:
-
GRABBING
- See Also:
-
HELP
- See Also:
-
MOVE
- See Also:
-
N_RESIZE
- See Also:
-
NE_RESIZE
- See Also:
-
NESW_RESIZE
- See Also:
-
NS_RESIZE
- See Also:
-
NW_RESIZE
- See Also:
-
NWSE_RESIZE
- See Also:
-
NO_DROP
- See Also:
-
NONE
- See Also:
-
NOT_ALLOWED
- See Also:
-
POINTER
- See Also:
-
PROGRESS
- See Also:
-
ROW_RESIZE
- See Also:
-
S_RESIZE
- See Also:
-
SE_RESIZE
- See Also:
-
SW_RESIZE
- See Also:
-
TEXT
- See Also:
-
VERTICAL_TEXT
- See Also:
-
W_RESIZE
- See Also:
-
WAIT
- See Also:
-
ZOOM_IN
- See Also:
-
ZOOM_OUT
- See Also:
-
INITIAL
- See Also:
-
INHERIT
- See Also:
-
-
Constructor Details
-
Cursor
public Cursor() -
Cursor
- Parameters:
cssValue
- the cssValue to set. eg:-Cursor.ALIAS
-
Cursor
- Parameters:
cursor
- theCursor
object from which the cssName and cssValue to set.
-
Cursor
This constructor is for CSS 2.1 cursor syntax.
sample code :-new Cursor("auto", "Test.gif", "TestImage.png")
createscursor: url("Test.gif"), url("TestImage.png"), auto;
. For css3 syntax method please usenew Cursor(String cursorType, UrlCss3Value... urlCss3Values)
orsetCursorUrls(String cursorType, UrlCss3Value... urlCss3Values)
method.- Parameters:
cursorType
- This will be the last value, eg:-auto
incursor: url(Test.gif), url(TestImage.png), auto;
. This value can not be null. And, it will throwNullValueException
for null value.cursorUrls
- an array of cursor urls, eg:-cursor.setCursorUrls("auto", "Test.gif", "TestImage.png")
and the generated css will becursor: url("Test.gif"), url("TestImage.png"), auto;
- Since:
- 1.0.0
-
Cursor
- Parameters:
cursorType
- the any of the inbuilt cursor types. It will come as the last one in the css value.urlCss3Values
- an array ofUrlCss3Value
objects.
-
-
Method Details
-
getCssName
- Specified by:
getCssName
in interfaceCssProperty
- Returns:
- the name portion in style, eg
align-content
for stylealign-content: center
.
-
getCssValue
- Specified by:
getCssValue
in interfaceCssProperty
- Returns:
- the value portion in style, eg
center
for stylealign-content: center
.
-
toString
-
setCssValue
- Specified by:
setCssValue
in classAbstractCssProperty<Cursor>
- Parameters:
cssValue
-null
is considered as an invalid value.- Returns:
- the current object.
- Since:
- 1.0.0
-
setCursorType
- Parameters:
cursorType
- it should be one of the followingCursor.ALL_SCROLL , Cursor.AUTO , Cursor.CELL , Cursor.CONTEXT_MENU , Cursor.COL_RESIZE , Cursor.COPY , Cursor.CROSSHAIR , Cursor.DEFAULT , Cursor.E_RESIZE , Cursor.EW_RESIZE , Cursor.GRAB , Cursor.GRABBING , Cursor.HELP , Cursor.MOVE , Cursor.N_RESIZE , Cursor.NE_RESIZE , Cursor.NESW_RESIZE , Cursor.NS_RESIZE , Cursor.NW_RESIZE , Cursor.NWSE_RESIZE , Cursor.NO_DROP , Cursor.NONE , Cursor.NOT_ALLOWED , Cursor.POINTER , Cursor.PROGRESS , Cursor.ROW_RESIZE , Cursor.S_RESIZE , Cursor.SE_RESIZE , Cursor.SW_RESIZE , Cursor.TEXT , Cursor.URL , Cursor.VERTICAL_TEXT , Cursor.W_RESIZE , Cursor.WAIT , Cursor.ZOOM_IN , Cursor.ZOOM_OUT , Cursor.INITIAL or Cursor.INHERIT
.- Since:
- 1.0.0
-
getCursorType
- Returns:
- Since:
- 1.0.0
-
getCursorUrls
- Returns:
- the cursor urls as an array set by
Cursor#setCursorUrls(String, String...)
method. The returned array is just a copy of the cursor urls, modifying it will not affect theCursor
object. - Since:
- 1.0.0
-
setCursorUrls
This method is for CSS 2.1 cursor syntax.
sample code :-cursor.setCursorUrls("auto", "Test.gif", "TestImage.png")
createscursor: url("Test.gif"), url("TestImage.png"), auto;
. For css3 syntax method please usesetCursorUrls(String cursorType, UrlCss3Value... urlCss3Values)
method.- Parameters:
cursorType
- This will be the last value, eg:-auto
incursor: url(Test.gif), url(TestImage.png), auto;
. This value can not be null. And, it will throwNullValueException
for null value.cursorUrls
- an array of cursor urls, eg:-cursor.setCursorUrls("auto", "Test.gif", "TestImage.png")
and the generated css will becursor: url("Test.gif"), url("TestImage.png"), auto;
- Since:
- 1.0.0
-
setCursorUrls
- Parameters:
cursorType
- * the any of the inbuilt cursor types. It will come as the last one in the css value.urlCss3Values
- urlCss3Values an array ofUrlCss3Value
objects.- Since:
- 1.0.0
-
getUrlCss3Values
- Returns:
- a new object of unmodifiable
List<UrlCss3Value>
whenever this method is called. Or null. - Since:
- 1.0.0
-
getAllCursorTypes
- Returns:
- all inbuilt cursorTypes eg:- auto, default, grab etc..
- Since:
- 1.0.0
-
stateChanged
- Specified by:
stateChanged
in interfaceStateChangeInformer<Bean>
-
getAllCursortypes
To introduce additional cursor types, add those to this list.- Returns:
- the allCursortypes
- Since:
- 1.0.0
-