nsIAccessibleStates 编辑

accessible/public/nsIAccessibleStates.idlScriptable Please add a summary to this article. 1.0 66 Introduced Gecko 1.9 Inherits from: nsISupports Last changed in Gecko 1.9 (Firefox 3)

Prior to Gecko 1.9, these constants were implemented in nsIAccessible.

Constants

State constants

MSAA State flags - used for bitfield. More than 1 allowed.

ConstantValueDescription
STATE_UNAVAILABLE0x00000001The object is unavailable, that is disabled.
STATE_SELECTED0x00000002The object is selected, That is it indicates this object is the child of an object that allows its children to be selected and that this child is one of those children that has been selected.
STATE_FOCUSED0x00000004The object is focused.
STATE_PRESSED0x00000008The object is pressed.
STATE_CHECKED0x00000010The object is checked.
STATE_MIXED0x00000020Indicates that the state of a three-state check box or toolbar button is not determined. The check box is neither checked nor unchecked and is therefore in the third or mixed state.
STATE_READONLY0x00000040The object is designated read-only.
STATE_HOTTRACKED0x00000080The object is hot-tracked by the mouse, which means that its appearance has changed to indicate that the mouse pointer is located over it. Currently unused.
STATE_DEFAULT0x00000100This state represents the default button in a window.
STATE_EXPANDED0x00000200Children of this object that have the ROLE_OUTLINEITEM role are displayed. (See nsIAccessibleRole.Constants).
STATE_COLLAPSED0x00000400Children of this object that have the ROLE_OUTLINEITEM role are hidden. (See nsIAccessibleRole.Constants).
STATE_BUSY0x00000800The control cannot accept input at this time.
STATE_FLOATING0x00001000Children "owned" not "contained" by parent.
STATE_MARQUEED0x00002000The object is scrolling or moving text or graphics.
STATE_ANIMATED0x00004000The object's appearance changes rapidly or constantly. Graphics that are occasionally animated are described as ROLE_GRAPHIC (See nsIAccessibleRole.Constants) with the State property set to STATE_ANIMATED. This state is used to indicate that the object's location is changing.
STATE_INVISIBLE0x00008000The object is programmatically hidden. For example, menu items are programmatically hidden until a user activates the menu. Because objects with this state are not available to users, client applications should not communicate information about the object to users. However, if client applications find an object with this state, they should check to see if STATE_OFFSCREEN is also set. If this second state is defined, then clients can communicate the information about the object to users. For example, a list box can have both STATE_INVISIBLE and STATE_OFFSCREEN set. In this case, the client application can communicate all items in the list to users.
STATE_OFFSCREEN0x00010000Scrolled off.
STATE_SIZEABLE0x00020000The object can be resized. For example, a user could change the size of a window by clicking the border with a mouse and dragging the mouse.
STATE_MOVEABLE0x00040000The object can be moved. For example, a user can click on the titlebar for the object and drag the object to a new location.
STATE_SELFVOICING0x00080000The object or child uses text-to-speech (TTS) technology for description purposes. A speech-based accessibility aid does not announce information when an object with this state has the focus because the object automatically announces information. Currently unused.
STATE_FOCUSABLE0x00100000The object can be focused.
STATE_SELECTABLE0x00200000The object can be selected.
STATE_LINKED0x00400000The object is formatted as a hyperlink. The object role will usually be ROLE_TEXT_LEAF. (See nsIAccessibleRole.Constants).
STATE_TRAVERSED0x00800000The object is a hyperlink that has been visited (previously clicked) by a user.
STATE_MULTISELECTABLE0x01000000Supports multiple selection.
STATE_EXTSELECTABLE0x02000000Supports extended selection.
STATE_ALERT_LOW0x04000000This information is of low priority.
STATE_ALERT_MEDIUM0x08000000This information is of medium priority.
STATE_ALERT_HIGH0x10000000This information is of high priority.
STATE_PROTECTED0x20000000Maps to Gnome's Role* ATK_ROLE_PASSWD_TEXT, nothing for Java?
STATE_HASPOPUP0x40000000New in MSAA 2.0.
STATE_REQUIREDSTATE_ALERT_LOW 
STATE_IMPORTANTSTATE_ALERT_MEDIUMCurrently unused.
STATE_INVALIDSTATE_ALERT_HIGHIndicates a validation failure.
STATE_CHECKABLESTATE_MARQUEED 

Extended state constants

Extended state flags (for now non-MSAA, for Java and Gnome/ATK support)

ConstantValueDescription
EXT_STATE_SUPPORTS_AUTOCOMPLETION0x00000001For editable areas that have any kind of auto completion.
EXT_STATE_DEFUNCT0x00000002Object no longer exists.
EXT_STATE_SELECTABLE_TEXT0x00000004For text which is selectable, object must implement nsIAccessibleText.
EXT_STATE_EDITABLE0x00000008Implements nsIAccessibleEditableText.
EXT_STATE_ACTIVE0x00000010This window is currently the active window.
EXT_STATE_MODAL0x00000020Must do something with control before leaving it.
EXT_STATE_MULTI_LINE0x00000040Edit control that can take multiple lines.
EXT_STATE_HORIZONTAL0x00000080Uses horizontal layout.
EXT_STATE_OPAQUE0x00000100Indicates this object paints every pixel within its rectangular region.
EXT_STATE_SINGLE_LINE0x00000200This text object can only contain 1 line of text.
EXT_STATE_TRANSIENT0x00000400 
EXT_STATE_VERTICAL0x00000800Especially used for sliders and scrollbars.
EXT_STATE_STALE0x00001000Object not dead, but not up-to-date either.
EXT_STATE_ENABLED0x00002000A widget that is not unavailable.
EXT_STATE_SENSITIVE0x00004000Same as EXT_STATE_ENABLED for now.
EXT_STATE_EXPANDABLE0x00008000If COLLAPSED or EXPANDED.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:132 次

字数:10813

最后编辑:6 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文