📄 serialized-form.html
字号:
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Serialized Fields</B></FONT></TD></TR></TABLE><H3>pItems</H3><PRE><A HREF="java/util/Vector.html">Vector</A> <B>pItems</B></PRE><DL><DD>The items for the Choice. This can be a null value.<DT><DD> <DD><DL><DT><B>See Also: </B><DD><CODE>add()</CODE>, <CODE>addItem()</CODE>, <CODE>getItem()</CODE>, <A HREF="java/awt/Choice.html#getItemCount()"><CODE>Choice.getItemCount()</CODE></A>, <CODE>insert()</CODE>, <CODE>remove()</CODE></DL></DD></DL><HR><H3>selectedIndex</H3><PRE>int <B>selectedIndex</B></PRE><DL><DD>The index of the current choice for this Choice.<DT><DD> <DD><DL><DT><B>See Also: </B><DD><CODE>getSelectedItem</CODE>, <CODE>select()</CODE></DL></DD></DL><HR><H3>choiceSerializedDataVersion</H3><PRE>int <B>choiceSerializedDataVersion</B></PRE><DL></DL><P><A NAME="java.awt.Choice.AccessibleAWTChoice"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Class <A HREF="java/awt/Choice.AccessibleAWTChoice.html">java.awt.Choice.AccessibleAWTChoice</A> implements Serializable</B></FONT></TD></TR></TABLE><P><A NAME="serializedForm"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Serialized Fields</B></FONT></TD></TR></TABLE><H3>this$0</H3><PRE><A HREF="java/awt/Choice.html">Choice</A> <B>this$0</B></PRE><DL></DL><P><A NAME="java.awt.Color"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Class <A HREF="java/awt/Color.html">java.awt.Color</A> implements Serializable</B></FONT></TD></TR></TABLE><P><A NAME="serializedForm"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Serialized Fields</B></FONT></TD></TR></TABLE><H3>value</H3><PRE>int <B>value</B></PRE><DL><DD>The color value.<DT><DD> <DD><DL><DT><B>See Also: </B><DD><A HREF="java/awt/Color.html#getRGB()"><CODE>Color.getRGB()</CODE></A></DL></DD></DL><HR><H3>frgbvalue</H3><PRE>float[] <B>frgbvalue</B></PRE><DL><DD>The color value in the default sRGB <code>ColorSpace</code> as <code>float</code> components (no alpha). If <code>null</code> after object construction, this must be an sRGB color constructed with 8-bit precision, so compute from the <code>int</code> color value.<DT><DD> <DD><DL><DT><B>See Also: </B><DD><A HREF="java/awt/Color.html#getRGBColorComponents(float[])"><CODE>Color.getRGBColorComponents(float[])</CODE></A>, <A HREF="java/awt/Color.html#getRGBComponents(float[])"><CODE>Color.getRGBComponents(float[])</CODE></A></DL></DD></DL><HR><H3>fvalue</H3><PRE>float[] <B>fvalue</B></PRE><DL><DD>The color value in the native <code>ColorSpace</code> as <code>float</code> components (no alpha). If <code>null</code> after object construction, this must be an sRGB color constructed with 8-bit precision, so compute from the <code>int</code> color value.<DT><DD> <DD><DL><DT><B>See Also: </B><DD><A HREF="java/awt/Color.html#getRGBColorComponents(float[])"><CODE>Color.getRGBColorComponents(float[])</CODE></A>, <A HREF="java/awt/Color.html#getRGBComponents(float[])"><CODE>Color.getRGBComponents(float[])</CODE></A></DL></DD></DL><HR><H3>falpha</H3><PRE>float <B>falpha</B></PRE><DL><DD>The alpha value as a <code>float</code> component. If <code>frgbvalue</code> is <code>null</code>, this is not valid data, so compute from the <code>int</code> color value.<DT><DD> <DD><DL><DT><B>See Also: </B><DD><A HREF="java/awt/Color.html#getRGBComponents(float[])"><CODE>Color.getRGBComponents(float[])</CODE></A>, <A HREF="java/awt/Color.html#getComponents(float[])"><CODE>Color.getComponents(float[])</CODE></A></DL></DD></DL><HR><H3>cs</H3><PRE><A HREF="java/awt/color/ColorSpace.html">ColorSpace</A> <B>cs</B></PRE><DL><DD>The <code>ColorSpace</code>. If <code>null</code>, then it's default is sRGB.<DT><DD> <DD><DL><DT><B>See Also: </B><DD><A HREF="java/awt/Color.html#getColor(java.lang.String)"><CODE>Color.getColor(java.lang.String)</CODE></A>, <A HREF="java/awt/Color.html#getColorSpace()"><CODE>Color.getColorSpace()</CODE></A>, <A HREF="java/awt/Color.html#getColorComponents(float[])"><CODE>Color.getColorComponents(float[])</CODE></A></DL></DD></DL><HR><H3>theContext</H3><PRE><A HREF="java/awt/PaintContext.html">PaintContext</A> <B>theContext</B></PRE><DL><DD>The paint context used to generate a solid color pattern.<DT><DD> <DD><DL><DT><B>See Also: </B><DD><CODE>createContext()</CODE></DL></DD></DL><P><A NAME="java.awt.Component"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Class <A HREF="java/awt/Component.html">java.awt.Component</A> implements Serializable</B></FONT></TD></TR></TABLE><P><A NAME="serialized_methods"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Serialization Methods</B></FONT></TD></TR></TABLE><P><A NAME="readObject(java.io.ObjectInputStream)"><!-- --></A><H3>readObject</H3><PRE>private void <B>readObject</B>(<A HREF="java/io/ObjectInputStream.html">ObjectInputStream</A> s) throws <A HREF="java/lang/ClassNotFoundException.html">ClassNotFoundException</A>, <A HREF="java/io/IOException.html">IOException</A></PRE><DL><DD>Read the ObjectInputStream and if it isnt null add a listener to receive item events fired by the components. Unrecognised keys or values will be Ignored.<DD><DL><DT><B>See Also: </B><DD><CODE>removeActionListener()</CODE>, <CODE>addActionListener()</CODE></DL></DD></DL><HR><A NAME="writeObject(java.io.ObjectOutputStream)"><!-- --></A><H3>writeObject</H3><PRE>private void <B>writeObject</B>(<A HREF="java/io/ObjectOutputStream.html">ObjectOutputStream</A> s) throws <A HREF="java/io/IOException.html">IOException</A></PRE><DL><DD>Writes default serializable fields to stream. Writes a list of serializable ItemListener(s) as optional data. The non-serializable ItemListener(s) are detected and no attempt is made to serialize them.<DD><DL><DT><B>Serial Data:</B><DD>Null terminated sequence of 0 or more pairs. The pair consists of a String and Object. The String indicates the type of object and is one of the following : itemListenerK indicating and ItemListener object.<DT><B>See Also: </B><DD><CODE>AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)</CODE>, <CODE>java.awt.Component.itemListenerK</CODE></DL></DD></DL><A NAME="serializedForm"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Serialized Fields</B></FONT></TD></TR></TABLE><H3>x</H3><PRE>int <B>x</B></PRE><DL><DD>The x position of the component in the parent's coordinate system.<DT><DD> <DD><DL><DT><B>See Also: </B><DD><A HREF="java/awt/Component.html#getLocation()"><CODE>Component.getLocation()</CODE></A></DL></DD></DL><HR><H3>y</H3><PRE>int <B>y</B></PRE><DL><DD>The y position of the component in the parent's coordinate system.<DT><DD> <DD><DL><DT><B>See Also: </B><DD><A HREF="java/awt/Component.html#getLocation()"><CODE>Component.getLocation()</CODE></A></DL></DD></DL><HR><H3>width</H3><PRE>int <B>width</B></PRE><DL><DD>The width of the component.<DT><DD> <DD><DL><DT><B>See Also: </B><DD><A HREF="java/awt/Component.html#getSize()"><CODE>Component.getSize()</CODE></A></DL></DD></DL><HR><H3>height</H3><PRE>int <B>height</B></PRE><DL><DD>The height of the component.<DT><DD> <DD><DL><DT><B>See Also: </B><DD><A HREF="java/awt/Component.html#getSize()"><CODE>Component.getSize()</CODE></A></DL></DD></DL><HR><H3>foreground</H3><PRE><A HREF="java/awt/Color.html">Color</A> <B>foreground</B></PRE><DL><DD>The foreground color for this component. foreground color can be null.<DT><DD> <DD><DL><DT><B>See Also: </B><DD><A HREF="java/awt/Component.html#getForeground()"><CODE>Component.getForeground()</CODE></A>, <A HREF="java/awt/Component.html#setForeground(java.awt.Color)"><CODE>Component.setForeground(java.awt.Color)</CODE></A></DL></DD></DL><HR><H3>background</H3><PRE><A HREF="java/awt/Color.html">Color</A> <B>background</B></PRE><DL><DD>The background color for this component. background can be null.<DT><DD> <DD><DL><DT><B>See Also: </B><DD><A HREF="java/awt/Component.html#getBackground()"><CODE>Component.getBackground()</CODE></A>, <A HREF="java/awt/Component.html#setBackground(java.awt.Color)"><CODE>Component.setBackground(java.awt.Color)</CODE></A></DL></DD></DL><HR><H3>font</H3><PRE><A HREF="java/awt/Font.html">Font</A> <B>font</B></PRE><DL><DD>The font used by this component. The font can be null.<DT><DD> <DD><DL><DT><B>See Also: </B><DD><A HREF="java/awt/Component.html#getFont()"><CODE>Component.getFont()</CODE></A>, <A HREF="java/awt/Component.html#setFont(java.awt.Font)"><CODE>Component.setFont(java.awt.Font)</CODE></A></DL></DD></DL><HR><H3>peerFont</H3><PRE><A HREF="java/awt/Font.html">Font</A> <B>peerFont</B></PRE><DL><DD>The font which the peer is currently using. (null if no peer exists.)</DL><HR><H3>cursor</H3><PRE><A HREF="java/awt/Cursor.html">Cursor</A> <B>cursor</B></PRE><DL><DD>The cursor displayed when pointer is over this component. This value can be null.<DT><DD> <DD><DL><DT><B>See Also: </B><DD><A HREF="java/awt/Component.html#getCursor()"><CODE>Component.getCursor()</CODE></A>, <A HREF="java/awt/Component.html#setCursor(java.awt.Cursor)"><CODE>Component.setCursor(java.awt.Cursor)</CODE></A></DL></DD></DL><HR><H3>locale</H3><PRE><A HREF="java/util/Locale.html">Locale</A> <B>locale</B></PRE><DL><DD>The locale for the component.<DT><DD> <DD><DL><DT><B>See Also: </B><DD><A HREF="java/awt/Component.html#getLocale()"><CODE>Component.getLocale()</CODE></A>, <A HREF="java/awt/Component.html#setLocale(java.util.Locale)"><CODE>Component.setLocale(java.util.Locale)</CODE></A></DL></DD></DL><HR><H3>visible</H3><PRE>boolean <B>visible</B></PRE><DL><DD>True when the object is visible. An object that is not visible is not drawn on the screen.<DT><DD> <DD><DL><DT><B>See Also: </B><DD><A HREF="java/awt/Component.html#isVisible()"><CODE>Component.isVisible()</CODE></A>, <A HREF="java/awt/Component.html#setVisible(boolean)"><CODE>Component.setVisible(boolean)</CODE></A></DL></DD></DL><HR><H3>enabled</H3><PRE>boolean <B>enabled</B></PRE><DL><DD>True when the object is enabled. An object that is not enabled does not interact with the user.<DT><DD> <DD><DL><DT><B>See Also: </B><DD><A HREF="java/awt/Component.html#isEnabled()"><CODE>Component.isEnabled()</CODE></A>, <A HREF="java/awt/Component.html#setEnabled(boolean)"><CODE>Component.setEnabled(boolean)</CODE></A></DL></DD></DL><HR><H3>valid</H3><PRE>boolean <B>valid</B></PRE><DL><DD>True when the object is valid. An invalid object needs to be layed out. This flag is set to false when the object size is changed.<DT><DD> <DD><DL><DT><B>See Also: </B><DD><A HREF="java/awt/Component.html#isValid()"><CODE>Component.isValid()</CODE></A>, <A HREF="java/awt/Component.html#validate()"><CODE>Component.validate()</CODE></A>, <A HREF="java/awt/Component.html#invalidate()"><CODE>Component.invalidate()</CODE></A></DL></DD></DL><HR><H3>dropTarget</H3><PRE><A HREF="java/awt/dnd/DropTarget.html">DropTarget</A> <B>dropTarget</B></PRE><DL><DD>The DropTarget associated with this Component.<DT><DD> <DD><DL><DT><B>See Also: </B><DD><A HREF="java/awt/Component.html#setDropTarget(java.awt.dnd.DropTarget)"><CODE>Component.setDropTarget(java.awt.dnd.DropTarget)</CODE></A>, <A HREF="java/awt/Component.html#getDropTarget()"><CODE>Component.getDropTarget()</CODE></A><DT><B>Since: </B><DD>1.2</DD></DL></DD></DL><HR><H3>hasFocus</H3><PRE>boolean <B>hasFocus</B></PRE><DL><DD>True if this component has enabled focus events and currently has the focus.<DT><DD> <DD><DL><DT><B>See Also: </B><DD><A HREF="java/awt/Component.html#hasFocus"><CODE>Component.hasFocus</CODE></A>, <A HREF="java/awt/Component.html#processFocusEvent(java.awt.event.FocusEvent)"><CODE>Component.processFocusEvent(java.awt.event.FocusEvent)</CODE></A></DL></DD></DL><HR><H3>popups</H3><PRE><A HREF="java/util/Vector.html">Vector</A> <B>popups</B></PRE><DL><DT><DD> <DD><DL><DT><B>See Also: </B><DD><CODE>add()</CODE></DL></DD></DL><HR><H3>name</H3><PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -