public class CursorUtilities
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.awt.Cursor |
DEFAULT |
static java.awt.Cursor |
HAND |
static java.awt.Cursor |
WAIT |
限定符和类型 | 方法和说明 |
---|---|
static void |
setCustomCursor(java.awt.Component component, java.awt.Image cursorImg, java.lang.String name)
给控件设置自定义光标
|
static void |
setDefaultCursor()
设置主窗口上的光标为默认光标
|
static void |
setDefaultCursor(java.awt.Component component)
设置控件的光标为默认光标
|
static void |
setFormDefaultCursor(IForm activeForm)
将窗口窗体光标设置为默认状态
|
static void |
setFormWaitCursor(IForm activeForm)
将窗口窗体光标设置为等待状态
|
static void |
setHandCursor(java.awt.Component component)
设置控件的光标为手装光标
|
static void |
setWaitCursor()
设置主窗口上的光标为等待光标
|
static void |
setWaitCursor(java.awt.Component component)
设置控件的光标为等待光标
|
public static final java.awt.Cursor WAIT
public static final java.awt.Cursor DEFAULT
public static final java.awt.Cursor HAND
public static void setWaitCursor()
public static void setDefaultCursor()
public static void setWaitCursor(java.awt.Component component)
component
- 需要设置光标的控件public static void setFormWaitCursor(IForm activeForm)
activeForm
- 窗体public static void setFormDefaultCursor(IForm activeForm)
activeForm
- 窗体public static void setDefaultCursor(java.awt.Component component)
component
- 光标public static void setHandCursor(java.awt.Component component)
component
- 需要设置的控件public static void setCustomCursor(java.awt.Component component, java.awt.Image cursorImg, java.lang.String name)
component
- 需要设置的控件cursorImg
- 光标图片信息name
- 光标名称