com.sibvisions.rad.ui.web.impl
Class WebCursor

java.lang.Object
  extended by com.sibvisions.rad.ui.web.impl.WebResource
      extended by com.sibvisions.rad.ui.web.impl.WebCursor
All Implemented Interfaces:
ICursor, IResource

public class WebCursor
extends WebResource
implements ICursor

Web server implementation of ICursor.


Field Summary
static String[] CURSORS
          HTML cursor names corresponding to the type.
 
Fields inherited from interface javax.rad.ui.ICursor
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Constructor Summary
protected WebCursor(int pType, String pName)
          Creates a new instance of WebCursor.
 
Method Summary
 String getAsString()
          Gets this Object as String.
 String getName()
          Returns the name of this cursor.
static ICursor getPredefinedCursor(int pType)
          Gets a ICursor object with the specified type.
static ICursor getSystemCustomCursor(String pCursorName)
          Returns a system-specific custom ICursor object matching the specified name.
 int getType()
          Returns the type for this cursor.
 void setAsString(String pValue)
          Sets this Object as String.
 
Methods inherited from class com.sibvisions.rad.ui.web.impl.WebResource
getNullableAsString, getResource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 

Field Detail

CURSORS

public static final String[] CURSORS
HTML cursor names corresponding to the type.

Constructor Detail

WebCursor

protected WebCursor(int pType,
                    String pName)
Creates a new instance of WebCursor.

Parameters:
pType - the type.
pName - the name.
See Also:
ICursor
Method Detail

getAsString

public String getAsString()
Gets this Object as String.

Specified by:
getAsString in class WebResource
Returns:
the String.

getType

public int getType()
Returns the type for this cursor.

Specified by:
getType in interface ICursor
Returns:
the cursor type.

getName

public String getName()
Returns the name of this cursor.

Specified by:
getName in interface ICursor
Returns:
a localized description of this cursor.

getPredefinedCursor

public static ICursor getPredefinedCursor(int pType)
Gets a ICursor object with the specified type.

Parameters:
pType - the type of cursor
Returns:
the ICursor
See Also:
ICursor

getSystemCustomCursor

public static ICursor getSystemCustomCursor(String pCursorName)
Returns a system-specific custom ICursor object matching the specified name. Cursor names are, for example: "Invalid.16x16"

Parameters:
pCursorName - a string describing the desired system-specific custom cursor
Returns:
the system specific custom cursor named
See Also:
ICursor

setAsString

public void setAsString(String pValue)
Sets this Object as String.

Overrides:
setAsString in class WebResource
Parameters:
pValue - the String.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.