📄 accessiblestate.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Apr 27 23:37:18 PDT 2000 --><TITLE>Java 2 Platform SE v1.3: Class AccessibleState</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AccessibleState.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../javax/accessibility/AccessibleRole.html"><B>PREV CLASS</B></A> <A HREF="../../javax/accessibility/AccessibleStateSet.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="AccessibleState.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#methods_inherited_from_class_javax.accessibility.AccessibleBundle">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | METHOD</FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">javax.accessibility</FONT><BR>Class AccessibleState</H2><PRE><A HREF="../../java/lang/Object.html">java.lang.Object</A> | +--<A HREF="../../javax/accessibility/AccessibleBundle.html">javax.accessibility.AccessibleBundle</A> | +--<B>javax.accessibility.AccessibleState</B></PRE><HR><DL><DT>public class <B>AccessibleState</B><DT>extends <A HREF="../../javax/accessibility/AccessibleBundle.html">AccessibleBundle</A></DL><P><P>Class AccessibleState describes a component's particular state. The actual state of the component is defined as an AccessibleStateSet, which is a composed set of AccessibleStates. <p>The toDisplayString method allows you to obtain the localized string for a locale independent key from a predefined ResourceBundle for the keys defined in this class. <p>The constants in this class present a strongly typed enumeration of common object roles. A public constructor for this class has been purposely omitted and applications should use one of the constants from this class. If the constants in this class are not sufficient to describe the role of an object, a subclass should be generated from this class and it should provide constants in a similar manner.<P><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/accessibility/AccessibleState.html">AccessibleState</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleState.html#ACTIVE">ACTIVE</A></B></CODE><BR> Indicates a window is currently the active window.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/accessibility/AccessibleState.html">AccessibleState</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleState.html#ARMED">ARMED</A></B></CODE><BR> Indicates that the object is armed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/accessibility/AccessibleState.html">AccessibleState</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleState.html#BUSY">BUSY</A></B></CODE><BR> Indicates the current object is busy.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/accessibility/AccessibleState.html">AccessibleState</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleState.html#CHECKED">CHECKED</A></B></CODE><BR> Indicates this object is currently checked.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/accessibility/AccessibleState.html">AccessibleState</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleState.html#COLLAPSED">COLLAPSED</A></B></CODE><BR> Indicates this object is collapsed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/accessibility/AccessibleState.html">AccessibleState</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleState.html#EDITABLE">EDITABLE</A></B></CODE><BR> Indicates the user can change the contents of this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/accessibility/AccessibleState.html">AccessibleState</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleState.html#ENABLED">ENABLED</A></B></CODE><BR> Indicates this object is enabled.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/accessibility/AccessibleState.html">AccessibleState</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleState.html#EXPANDABLE">EXPANDABLE</A></B></CODE><BR> Indicates this object allows progressive disclosure of its children.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/accessibility/AccessibleState.html">AccessibleState</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleState.html#EXPANDED">EXPANDED</A></B></CODE><BR> Indicates this object is expanded.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/accessibility/AccessibleState.html">AccessibleState</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleState.html#FOCUSABLE">FOCUSABLE</A></B></CODE><BR> Indicates this object can accept keyboard focus, which means all events resulting from typing on the keyboard will normally be passed to it when it has focus.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/accessibility/AccessibleState.html">AccessibleState</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleState.html#FOCUSED">FOCUSED</A></B></CODE><BR> Indicates this object currently has the keyboard focus.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/accessibility/AccessibleState.html">AccessibleState</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleState.html#HORIZONTAL">HORIZONTAL</A></B></CODE><BR> Indicates the orientation of this object is horizontal.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/accessibility/AccessibleState.html">AccessibleState</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleState.html#ICONIFIED">ICONIFIED</A></B></CODE><BR> Indicates this object is minimized and is represented only by an icon.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/accessibility/AccessibleState.html">AccessibleState</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleState.html#MODAL">MODAL</A></B></CODE><BR> Indicates something must be done with this object before the user can interact with an object in a different window.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/accessibility/AccessibleState.html">AccessibleState</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleState.html#MULTI_LINE">MULTI_LINE</A></B></CODE><BR> Indicates this (text) object can contain multiple lines of text</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/accessibility/AccessibleState.html">AccessibleState</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleState.html#MULTISELECTABLE">MULTISELECTABLE</A></B></CODE><BR> Indicates this object allows more than one of its children to be selected at the same time.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/accessibility/AccessibleState.html">AccessibleState</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleState.html#OPAQUE">OPAQUE</A></B></CODE><BR> Indicates this object paints every pixel within its rectangular region.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/accessibility/AccessibleState.html">AccessibleState</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleState.html#PRESSED">PRESSED</A></B></CODE><BR> Indicates this object is currently pressed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/accessibility/AccessibleState.html">AccessibleState</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleState.html#RESIZABLE">RESIZABLE</A></B></CODE><BR> Indicates the size of this object is not fixed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/accessibility/AccessibleState.html">AccessibleState</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleState.html#SELECTABLE">SELECTABLE</A></B></CODE><BR> 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 can be selected.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/accessibility/AccessibleState.html">AccessibleState</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleState.html#SELECTED">SELECTED</A></B></CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -