component.html
来自「API資料大全」· HTML 代码 · 共 1,194 行 · 第 1/5 页
HTML
1,194 行
<BR> Sets the constraints for the specified component in this layout.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/GridBagConstraints.html">GridBagConstraints</A></CODE></FONT></TD><TD><CODE><B>GridBagLayout.</B><B><A HREF="../../../java/awt/GridBagLayout.html#getConstraints(java.awt.Component)">getConstraints</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> comp)</CODE><BR> Gets the constraints for the specified component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../java/awt/GridBagConstraints.html">GridBagConstraints</A></CODE></FONT></TD><TD><CODE><B>GridBagLayout.</B><B><A HREF="../../../java/awt/GridBagLayout.html#lookupConstraints(java.awt.Component)">lookupConstraints</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> comp)</CODE><BR> Retrieves the constraints for the specified component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>GridBagLayout.</B><B><A HREF="../../../java/awt/GridBagLayout.html#addLayoutComponent(java.lang.String, java.awt.Component)">addLayoutComponent</A></B>(<A HREF="../../../java/lang/String.html">String</A> name, <A HREF="../../../java/awt/Component.html">Component</A> comp)</CODE><BR> Adds the specified component with the specified name to the layout.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>GridBagLayout.</B><B><A HREF="../../../java/awt/GridBagLayout.html#addLayoutComponent(java.awt.Component, java.lang.Object)">addLayoutComponent</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> comp, <A HREF="../../../java/lang/Object.html">Object</A> constraints)</CODE><BR> Adds the specified component to the layout, using the specified constraint object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>GridBagLayout.</B><B><A HREF="../../../java/awt/GridBagLayout.html#removeLayoutComponent(java.awt.Component)">removeLayoutComponent</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> comp)</CODE><BR> Removes the specified component from this layout.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>FlowLayout.</B><B><A HREF="../../../java/awt/FlowLayout.html#addLayoutComponent(java.lang.String, java.awt.Component)">addLayoutComponent</A></B>(<A HREF="../../../java/lang/String.html">String</A> name, <A HREF="../../../java/awt/Component.html">Component</A> comp)</CODE><BR> Adds the specified component to the layout.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>FlowLayout.</B><B><A HREF="../../../java/awt/FlowLayout.html#removeLayoutComponent(java.awt.Component)">removeLayoutComponent</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> comp)</CODE><BR> Removes the specified component from the layout.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Constructors in <A HREF="../../../java/awt/package-summary.html">java.awt</A> with parameters of type <A HREF="../../../java/awt/Component.html">Component</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/awt/Component.AccessibleAWTComponent.html#Component.AccessibleAWTComponent(java.awt.Component)">Component.AccessibleAWTComponent</A></B>()</CODE><BR> Though the class is abstract, this should be called by all sub-classes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/awt/MediaTracker.html#MediaTracker(java.awt.Component)">MediaTracker</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> comp)</CODE><BR> Creates a media tracker to track images for a given component.</TD></TR></TABLE> <P><A NAME="java.awt.dnd"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../java/awt/Component.html">Component</A> in <A HREF="../../../java/awt/dnd/package-summary.html">java.awt.dnd</A></FONT></TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Fields in <A HREF="../../../java/awt/dnd/package-summary.html">java.awt.dnd</A> declared as <A HREF="../../../java/awt/Component.html">Component</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../java/awt/Component.html">Component</A></CODE></FONT></TD><TD><CODE><B>DragGestureRecognizer.</B><B><A HREF="../../../java/awt/dnd/DragGestureRecognizer.html#component">component</A></B></CODE><BR> The <code>Component</code> associated with this <code>DragGestureRecognizer</code>.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../java/awt/dnd/package-summary.html">java.awt.dnd</A> that return <A HREF="../../../java/awt/Component.html">Component</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Component.html">Component</A></CODE></FONT></TD><TD><CODE><B>DropTargetContext.</B><B><A HREF="../../../java/awt/dnd/DropTargetContext.html#getComponent()">getComponent</A></B>()</CODE><BR> This method returns the <code>Component</code> associated with this <code>DropTargetContext</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Component.html">Component</A></CODE></FONT></TD><TD><CODE><B>DragGestureRecognizer.</B><B><A HREF="../../../java/awt/dnd/DragGestureRecognizer.html#getComponent()">getComponent</A></B>()</CODE><BR> This method returns the <code>Component</code> that is to be "observed" by the <code>DragGestureRecognizer</code> for drag initiating gestures.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Component.html">Component</A></CODE></FONT></TD><TD><CODE><B>DragSourceContext.</B><B><A HREF="../../../java/awt/dnd/DragSourceContext.html#getComponent()">getComponent</A></B>()</CODE><BR> This method returns the <code>Component</code> associated with this <code>DragSourceContext</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Component.html">Component</A></CODE></FONT></TD><TD><CODE><B>DragGestureEvent.</B><B><A HREF="../../../java/awt/dnd/DragGestureEvent.html#getComponent()">getComponent</A></B>()</CODE><BR> This method returns the <code>Component</code> associated with this <code>DragGestureEvent</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Component.html">Component</A></CODE></FONT></TD><TD><CODE><B>DropTarget.</B><B><A HREF="../../../java/awt/dnd/DropTarget.html#getComponent()">getComponent</A></B>()</CODE><BR> This method returns the <code>Component</code> associated with this <code>DropTarget</code>.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../java/awt/dnd/package-summary.html">java.awt.dnd</A> with parameters of type <A HREF="../../../java/awt/Component.html">Component</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>DragGestureRecognizer.</B><B><A HREF="../../../java/awt/dnd/DragGestureRecognizer.html#setComponent(java.awt.Component)">setComponent</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> c)</CODE><BR> set the Component that the DragGestureRecognizer is associated with registerListeners() and unregisterListeners() are called as a side effect as appropriate.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/dnd/DragGestureRecognizer.html">DragGestureRecognizer</A></CODE></FONT></TD><TD><CODE><B>DragSource.</B><B><A HREF="../../../java/awt/dnd/DragSource.html#createDragGestureRecognizer(java.lang.Class, java.awt.Component, int, java.awt.dnd.DragGestureListener)">createDragGestureRecognizer</A></B>(<A HREF="../../../java/lang/Class.html">Class</A> recognizerAbstractClass, <A HREF="../../../java/awt/Component.html">Component</A> c, int actions, <A HREF="../../../java/awt/dnd/DragGestureListener.html">DragGestureListener</A> dgl)</CODE><BR> Creates a new <code>DragGestureRecognizer</code> that implements the specified abstract subclass of <code>DragGestureRecognizer</code>, and sets the specified <code>Component</code> and <code>DragGestureListener</code> on the newly created object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/dnd/DragGestureRecognizer.html">DragGestureRecognizer</A></CODE></FONT></TD><TD><CODE><B>DragSource.</B><B><A HREF="../../../java/awt/dnd/DragSource.html#createDefaultDragGestureRecognizer(java.awt.Component, int, java.awt.dnd.DragGestureListener)">createDefaultDragGestureRecognizer</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> c, int actions, <A HREF="../../../java/awt/dnd/DragGestureListener.html">DragGestureListener</A> dgl)</CODE><BR> Creates a new <code>DragSourceRecognizer</code> that implements the default abstract subclass of <code>DragGestureRecognizer</code> for this <code>DragSource</code>, and sets the specified <code>Component</code> and <code>DragGestureListener</code> on the newly created object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>DropTarget.</B><B><A HREF="../../../java/awt/dnd/DropTarget.html#setComponent(java.awt.Component)">setComponent</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> c)</CODE><BR> Note: this interface is required to permit the safe association of a DropTarget with a Component in one of two ways, either: <code> component.setDropTarget(droptarget); </code> or <code> droptarget.setComponent(component); </code> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../java/awt/dnd/DropTarget.DropTargetAutoScroller.html">DropTarget.DropTargetAutoScroller</A></CODE></FONT></TD><TD><CODE><B>DropTarget.</B><B><A HREF="../../../java/awt/dnd/DropTarget.html#createDropTargetAutoScroller(java.awt.Component, java.awt.Point)">createDropTargetAutoScroller</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> c, <A HREF="../../../java/awt/Point.html">Point</A> p)</CODE><BR> create an embedded autoscroller </TD>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?