📄 accessiblecomponent.html
字号:
<A NAME="setVisible(boolean)"><!-- --></A><H3>setVisible</H3><PRE>public void <B>setVisible</B>(boolean b)</PRE><DL><DD>Sets the visible state of the object.<DD><DL><DT><B>Parameters:</B><DD><CODE>b</CODE> - if true, shows this object; otherwise, hides it<DT><B>See Also: </B><DD><A HREF="../../javax/accessibility/AccessibleComponent.html#isVisible()"><CODE>isVisible()</CODE></A></DL></DD></DL><HR><A NAME="isShowing()"><!-- --></A><H3>isShowing</H3><PRE>public boolean <B>isShowing</B>()</PRE><DL><DD>Determines if the object is showing. This is determined by checking the visibility of the object and its ancestors. Note: this will return true even if the object is obscured by another (for example, it is underneath a menu that was pulled down).<DD><DL><DT><B>Returns:</B><DD>true if object is showing; otherwise, false</DL></DD></DL><HR><A NAME="contains(java.awt.Point)"><!-- --></A><H3>contains</H3><PRE>public boolean <B>contains</B>(<A HREF="../../java/awt/Point.html">Point</A> p)</PRE><DL><DD>Checks whether the specified point is within this object's bounds, where the point's x and y coordinates are defined to be relative to the coordinate system of the object.<DD><DL><DT><B>Parameters:</B><DD><CODE>p</CODE> - the Point relative to the coordinate system of the object<DT><B>Returns:</B><DD>true if object contains Point; otherwise false<DT><B>See Also: </B><DD><A HREF="../../javax/accessibility/AccessibleComponent.html#getBounds()"><CODE>getBounds()</CODE></A></DL></DD></DL><HR><A NAME="getLocationOnScreen()"><!-- --></A><H3>getLocationOnScreen</H3><PRE>public <A HREF="../../java/awt/Point.html">Point</A> <B>getLocationOnScreen</B>()</PRE><DL><DD>Returns the location of the object on the screen.<DD><DL><DT><B>Returns:</B><DD>the location of the object on screen; null if this object is not on the screen<DT><B>See Also: </B><DD><A HREF="../../javax/accessibility/AccessibleComponent.html#getBounds()"><CODE>getBounds()</CODE></A>, <A HREF="../../javax/accessibility/AccessibleComponent.html#getLocation()"><CODE>getLocation()</CODE></A></DL></DD></DL><HR><A NAME="getLocation()"><!-- --></A><H3>getLocation</H3><PRE>public <A HREF="../../java/awt/Point.html">Point</A> <B>getLocation</B>()</PRE><DL><DD>Gets the location of the object relative to the parent in the form of a point specifying the object's top-left corner in the screen's coordinate space.<DD><DL><DT><B>Returns:</B><DD>An instance of Point representing the top-left corner of the object's bounds in the coordinate space of the screen; null if this object or its parent are not on the screen<DT><B>See Also: </B><DD><A HREF="../../javax/accessibility/AccessibleComponent.html#getBounds()"><CODE>getBounds()</CODE></A>, <A HREF="../../javax/accessibility/AccessibleComponent.html#getLocationOnScreen()"><CODE>getLocationOnScreen()</CODE></A></DL></DD></DL><HR><A NAME="setLocation(java.awt.Point)"><!-- --></A><H3>setLocation</H3><PRE>public void <B>setLocation</B>(<A HREF="../../java/awt/Point.html">Point</A> p)</PRE><DL><DD>Sets the location of the object relative to the parent.<DD><DL><DT><B>Parameters:</B><DD><CODE>p</CODE> - the new position for the top-left corner<DT><B>See Also: </B><DD><A HREF="../../javax/accessibility/AccessibleComponent.html#getLocation()"><CODE>getLocation()</CODE></A></DL></DD></DL><HR><A NAME="getBounds()"><!-- --></A><H3>getBounds</H3><PRE>public <A HREF="../../java/awt/Rectangle.html">Rectangle</A> <B>getBounds</B>()</PRE><DL><DD>Gets the bounds of this object in the form of a Rectangle object. The bounds specify this object's width, height, and location relative to its parent.<DD><DL><DT><B>Returns:</B><DD>A rectangle indicating this component's bounds; null if this object is not on the screen.<DT><B>See Also: </B><DD><A HREF="../../javax/accessibility/AccessibleComponent.html#contains(java.awt.Point)"><CODE>contains(java.awt.Point)</CODE></A></DL></DD></DL><HR><A NAME="setBounds(java.awt.Rectangle)"><!-- --></A><H3>setBounds</H3><PRE>public void <B>setBounds</B>(<A HREF="../../java/awt/Rectangle.html">Rectangle</A> r)</PRE><DL><DD>Sets the bounds of this object in the form of a Rectangle object. The bounds specify this object's width, height, and location relative to its parent.<DD><DL><DT><B>Parameters:</B><DD><CODE>r</CODE> - rectangle indicating this component's bounds<DT><B>See Also: </B><DD><A HREF="../../javax/accessibility/AccessibleComponent.html#getBounds()"><CODE>getBounds()</CODE></A></DL></DD></DL><HR><A NAME="getSize()"><!-- --></A><H3>getSize</H3><PRE>public <A HREF="../../java/awt/Dimension.html">Dimension</A> <B>getSize</B>()</PRE><DL><DD>Returns the size of this object in the form of a Dimension object. The height field of the Dimension object contains this object's height, and the width field of the Dimension object contains this object's width.<DD><DL><DT><B>Returns:</B><DD>A Dimension object that indicates the size of this component; null if this object is not on the screen<DT><B>See Also: </B><DD><A HREF="../../javax/accessibility/AccessibleComponent.html#setSize(java.awt.Dimension)"><CODE>setSize(java.awt.Dimension)</CODE></A></DL></DD></DL><HR><A NAME="setSize(java.awt.Dimension)"><!-- --></A><H3>setSize</H3><PRE>public void <B>setSize</B>(<A HREF="../../java/awt/Dimension.html">Dimension</A> d)</PRE><DL><DD>Resizes this object so that it has width and height.<DD><DL><DT><B>Parameters:</B><DD><CODE>d</CODE> - The dimension specifying the new size of the object.<DT><B>See Also: </B><DD><A HREF="../../javax/accessibility/AccessibleComponent.html#getSize()"><CODE>getSize()</CODE></A></DL></DD></DL><HR><A NAME="getAccessibleAt(java.awt.Point)"><!-- --></A><H3>getAccessibleAt</H3><PRE>public <A HREF="../../javax/accessibility/Accessible.html">Accessible</A> <B>getAccessibleAt</B>(<A HREF="../../java/awt/Point.html">Point</A> p)</PRE><DL><DD>Returns the Accessible child, if one exists, contained at the local coordinate Point.<DD><DL><DT><B>Parameters:</B><DD><CODE>p</CODE> - The point relative to the coordinate system of this object.<DT><B>Returns:</B><DD>the Accessible, if it exists, at the specified location; otherwise null</DL></DD></DL><HR><A NAME="isFocusTraversable()"><!-- --></A><H3>isFocusTraversable</H3><PRE>public boolean <B>isFocusTraversable</B>()</PRE><DL><DD>Returns whether this object can accept focus or not. Objects that can accept focus will also have the AccessibleState.FOCUSABLE state set in their AccessibleStateSets.<DD><DL><DT><B>Returns:</B><DD>true if object can accept focus; otherwise false<DT><B>See Also: </B><DD><A HREF="../../javax/accessibility/AccessibleContext.html#getAccessibleStateSet()"><CODE>AccessibleContext.getAccessibleStateSet()</CODE></A>, <A HREF="../../javax/accessibility/AccessibleState.html#FOCUSABLE"><CODE>AccessibleState.FOCUSABLE</CODE></A>, <A HREF="../../javax/accessibility/AccessibleState.html#FOCUSED"><CODE>AccessibleState.FOCUSED</CODE></A>, <A HREF="../../javax/accessibility/AccessibleStateSet.html"><CODE>AccessibleStateSet</CODE></A></DL></DD></DL><HR><A NAME="requestFocus()"><!-- --></A><H3>requestFocus</H3><PRE>public void <B>requestFocus</B>()</PRE><DL><DD>Requests focus for this object. If this object cannot accept focus, nothing will happen. Otherwise, the object will attempt to take focus.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/accessibility/AccessibleComponent.html#isFocusTraversable()"><CODE>isFocusTraversable()</CODE></A></DL></DD></DL><HR><A NAME="addFocusListener(java.awt.event.FocusListener)"><!-- --></A><H3>addFocusListener</H3><PRE>public void <B>addFocusListener</B>(<A HREF="../../java/awt/event/FocusListener.html">FocusListener</A> l)</PRE><DL><DD>Adds the specified focus listener to receive focus events from this component.<DD><DL><DT><B>Parameters:</B><DD><CODE>l</CODE> - the focus listener<DT><B>See Also: </B><DD><A HREF="../../javax/accessibility/AccessibleComponent.html#removeFocusListener(java.awt.event.FocusListener)"><CODE>removeFocusListener(java.awt.event.FocusListener)</CODE></A></DL></DD></DL><HR><A NAME="removeFocusListener(java.awt.event.FocusListener)"><!-- --></A><H3>removeFocusListener</H3><PRE>public void <B>removeFocusListener</B>(<A HREF="../../java/awt/event/FocusListener.html">FocusListener</A> l)</PRE><DL><DD>Removes the specified focus listener so it no longer receives focus events from this component.<DD><DL><DT><B>Parameters:</B><DD><CODE>l</CODE> - the focus listener<DT><B>See Also: </B><DD><A HREF="../../javax/accessibility/AccessibleComponent.html#addFocusListener(java.awt.event.FocusListener)"><CODE>addFocusListener(java.awt.event.FocusListener)</CODE></A></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_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/AccessibleComponent.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/AccessibleAction.html"><B>PREV CLASS</B></A> <A HREF="../../javax/accessibility/AccessibleHypertext.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="AccessibleComponent.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -