⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 accessiblecomponent.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleComponent.html#requestFocus()">requestFocus</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Requests focus for this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleComponent.html#setBackground(java.awt.Color)">setBackground</A></B>(<A HREF="../../java/awt/Color.html">Color</A>&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the background color of this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleComponent.html#setBounds(java.awt.Rectangle)">setBounds</A></B>(<A HREF="../../java/awt/Rectangle.html">Rectangle</A>&nbsp;r)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the bounds of this object in the form of a Rectangle object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleComponent.html#setCursor(java.awt.Cursor)">setCursor</A></B>(<A HREF="../../java/awt/Cursor.html">Cursor</A>&nbsp;cursor)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the Cursor of this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleComponent.html#setEnabled(boolean)">setEnabled</A></B>(boolean&nbsp;b)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the enabled state of the object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleComponent.html#setFont(java.awt.Font)">setFont</A></B>(<A HREF="../../java/awt/Font.html">Font</A>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the Font of this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleComponent.html#setForeground(java.awt.Color)">setForeground</A></B>(<A HREF="../../java/awt/Color.html">Color</A>&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the foreground color of this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleComponent.html#setLocation(java.awt.Point)">setLocation</A></B>(<A HREF="../../java/awt/Point.html">Point</A>&nbsp;p)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the location of the object relative to the parent.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleComponent.html#setSize(java.awt.Dimension)">setSize</A></B>(<A HREF="../../java/awt/Dimension.html">Dimension</A>&nbsp;d)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resizes this object so that it has width and height.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/accessibility/AccessibleComponent.html#setVisible(boolean)">setVisible</A></B>(boolean&nbsp;b)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the visible state of the object.</TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getBackground()"><!-- --></A><H3>getBackground</H3><PRE>public <A HREF="../../java/awt/Color.html">Color</A> <B>getBackground</B>()</PRE><DL><DD>Gets the background color of this object.<DD><DL><DT><B>Returns:</B><DD>the background color, if supported, of the object;  otherwise, null<DT><B>See Also: </B><DD><A HREF="../../javax/accessibility/AccessibleComponent.html#setBackground(java.awt.Color)"><CODE>setBackground(java.awt.Color)</CODE></A></DL></DD></DL><HR><A NAME="setBackground(java.awt.Color)"><!-- --></A><H3>setBackground</H3><PRE>public void <B>setBackground</B>(<A HREF="../../java/awt/Color.html">Color</A>&nbsp;c)</PRE><DL><DD>Sets the background color of this object.<DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the new Color for the background<DT><B>See Also: </B><DD><A HREF="../../javax/accessibility/AccessibleComponent.html#setBackground(java.awt.Color)"><CODE>setBackground(java.awt.Color)</CODE></A></DL></DD></DL><HR><A NAME="getForeground()"><!-- --></A><H3>getForeground</H3><PRE>public <A HREF="../../java/awt/Color.html">Color</A> <B>getForeground</B>()</PRE><DL><DD>Gets the foreground color of this object.<DD><DL><DT><B>Returns:</B><DD>the foreground color, if supported, of the object;  otherwise, null<DT><B>See Also: </B><DD><A HREF="../../javax/accessibility/AccessibleComponent.html#setForeground(java.awt.Color)"><CODE>setForeground(java.awt.Color)</CODE></A></DL></DD></DL><HR><A NAME="setForeground(java.awt.Color)"><!-- --></A><H3>setForeground</H3><PRE>public void <B>setForeground</B>(<A HREF="../../java/awt/Color.html">Color</A>&nbsp;c)</PRE><DL><DD>Sets the foreground color of this object.<DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the new Color for the foreground<DT><B>See Also: </B><DD><A HREF="../../javax/accessibility/AccessibleComponent.html#getForeground()"><CODE>getForeground()</CODE></A></DL></DD></DL><HR><A NAME="getCursor()"><!-- --></A><H3>getCursor</H3><PRE>public <A HREF="../../java/awt/Cursor.html">Cursor</A> <B>getCursor</B>()</PRE><DL><DD>Gets the Cursor of this object.<DD><DL><DT><B>Returns:</B><DD>the Cursor, if supported, of the object; otherwise, null<DT><B>See Also: </B><DD><A HREF="../../javax/accessibility/AccessibleComponent.html#setCursor(java.awt.Cursor)"><CODE>setCursor(java.awt.Cursor)</CODE></A></DL></DD></DL><HR><A NAME="setCursor(java.awt.Cursor)"><!-- --></A><H3>setCursor</H3><PRE>public void <B>setCursor</B>(<A HREF="../../java/awt/Cursor.html">Cursor</A>&nbsp;cursor)</PRE><DL><DD>Sets the Cursor of this object.<DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the new Cursor for the object<DT><B>See Also: </B><DD><A HREF="../../javax/accessibility/AccessibleComponent.html#getCursor()"><CODE>getCursor()</CODE></A></DL></DD></DL><HR><A NAME="getFont()"><!-- --></A><H3>getFont</H3><PRE>public <A HREF="../../java/awt/Font.html">Font</A> <B>getFont</B>()</PRE><DL><DD>Gets the Font of this object.<DD><DL><DT><B>Returns:</B><DD>the Font,if supported, for the object; otherwise, null<DT><B>See Also: </B><DD><A HREF="../../javax/accessibility/AccessibleComponent.html#setFont(java.awt.Font)"><CODE>setFont(java.awt.Font)</CODE></A></DL></DD></DL><HR><A NAME="setFont(java.awt.Font)"><!-- --></A><H3>setFont</H3><PRE>public void <B>setFont</B>(<A HREF="../../java/awt/Font.html">Font</A>&nbsp;f)</PRE><DL><DD>Sets the Font of this object.<DD><DL><DT><B>Parameters:</B><DD><CODE>f</CODE> - the new Font for the object<DT><B>See Also: </B><DD><A HREF="../../javax/accessibility/AccessibleComponent.html#getFont()"><CODE>getFont()</CODE></A></DL></DD></DL><HR><A NAME="getFontMetrics(java.awt.Font)"><!-- --></A><H3>getFontMetrics</H3><PRE>public <A HREF="../../java/awt/FontMetrics.html">FontMetrics</A> <B>getFontMetrics</B>(<A HREF="../../java/awt/Font.html">Font</A>&nbsp;f)</PRE><DL><DD>Gets the FontMetrics of this object.<DD><DL><DT><B>Parameters:</B><DD><CODE>f</CODE> - the Font<DT><B>Returns:</B><DD>the FontMetrics, if supported, the object; otherwise, null<DT><B>See Also: </B><DD><A HREF="../../javax/accessibility/AccessibleComponent.html#getFont()"><CODE>getFont()</CODE></A></DL></DD></DL><HR><A NAME="isEnabled()"><!-- --></A><H3>isEnabled</H3><PRE>public boolean <B>isEnabled</B>()</PRE><DL><DD>Determines if the object is enabled.  Objects that are enabled will also have the AccessibleState.ENABLED state set in their AccessibleStateSets.<DD><DL><DT><B>Returns:</B><DD>true if object is enabled; otherwise, false<DT><B>See Also: </B><DD><A HREF="../../javax/accessibility/AccessibleComponent.html#setEnabled(boolean)"><CODE>setEnabled(boolean)</CODE></A>, <A HREF="../../javax/accessibility/AccessibleContext.html#getAccessibleStateSet()"><CODE>AccessibleContext.getAccessibleStateSet()</CODE></A>, <A HREF="../../javax/accessibility/AccessibleState.html#ENABLED"><CODE>AccessibleState.ENABLED</CODE></A>, <A HREF="../../javax/accessibility/AccessibleStateSet.html"><CODE>AccessibleStateSet</CODE></A></DL></DD></DL><HR><A NAME="setEnabled(boolean)"><!-- --></A><H3>setEnabled</H3><PRE>public void <B>setEnabled</B>(boolean&nbsp;b)</PRE><DL><DD>Sets the enabled state of the object.<DD><DL><DT><B>Parameters:</B><DD><CODE>b</CODE> - if true, enables this object; otherwise, disables it<DT><B>See Also: </B><DD><A HREF="../../javax/accessibility/AccessibleComponent.html#isEnabled()"><CODE>isEnabled()</CODE></A></DL></DD></DL><HR><A NAME="isVisible()"><!-- --></A><H3>isVisible</H3><PRE>public boolean <B>isVisible</B>()</PRE><DL><DD>Determines if the object is visible.  Note: this means that the object intends to be visible; however, it may not be showing on the screen because one of the objects that this object is contained by is currently not visible.  To determine if an object is showing on the screen, use isShowing(). <p>Objects that are visible will also have the  AccessibleState.VISIBLE state set in their AccessibleStateSets.<DD><DL><DT><B>Returns:</B><DD>true if object is visible; otherwise, false<DT><B>See Also: </B><DD><A HREF="../../javax/accessibility/AccessibleComponent.html#setVisible(boolean)"><CODE>setVisible(boolean)</CODE></A>, <A HREF="../../javax/accessibility/AccessibleContext.html#getAccessibleStateSet()"><CODE>AccessibleContext.getAccessibleStateSet()</CODE></A>, <A HREF="../../javax/accessibility/AccessibleState.html#VISIBLE"><CODE>AccessibleState.VISIBLE</CODE></A>, <A HREF="../../javax/accessibility/AccessibleStateSet.html"><CODE>AccessibleStateSet</CODE></A></DL></DD></DL><HR>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -