|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
| 软件包 java.applet |
|---|
| 类 java.applet.Applet 继承 Panel 实现 Serializable |
|---|
serialVersionUID: -5836846270535785031L
| 序列化方法 |
|---|
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
HeadlessException - 如果 GraphicsEnvironment.isHeadless() 返回 true
ClassNotFoundException
IOExceptionGraphicsEnvironment.isHeadless()| 序列化字段 |
|---|
AccessibleContext accessibleContext
| 类 java.applet.Applet.AccessibleApplet 继承 Panel.AccessibleAWTPanel 实现 Serializable |
|---|
serialVersionUID: 8127374778187708896L
| 软件包 java.awt |
|---|
| 类 java.awt.AWTError 继承 Error 实现 Serializable |
|---|
serialVersionUID: -1819846354050686206L
| 类 java.awt.AWTEvent 继承 EventObject 实现 Serializable |
|---|
serialVersionUID: -1825314779160409405L
| 序列化字段 |
|---|
byte[] bdata
int id
boolean consumed
| 类 java.awt.AWTException 继承 Exception 实现 Serializable |
|---|
serialVersionUID: -1900414231151323879L
| 类 java.awt.AWTKeyStroke 继承 Object 实现 Serializable |
|---|
serialVersionUID: -6430539691155161871L
| 序列化方法 |
|---|
protected Object readResolve() throws ObjectStreamException
AWTKeyStroke 的一个缓存实例(或 AWTKeyStroke 的子类),它与此实例相等。
| 序列化字段 |
|---|
char keyChar
int keyCode
int modifiers
boolean onKeyRelease
| 类 java.awt.AWTPermission 继承 BasicPermission 实现 Serializable |
|---|
serialVersionUID: 8890392402588814465L
| 类 java.awt.BorderLayout 继承 Object 实现 Serializable |
|---|
serialVersionUID: -8658291919501921765L
| 序列化字段 |
|---|
int hgap
hgap.
int vgap
vgap.
Component north
Component west
Component east
Component south
Component center
Component firstLine
NORTH
and BEFORE_FIRST_LINE constants in a container whose
orientation is LEFT_TO_RIGHT, only the
BEFORE_FIRST_LINE will be layed out.
This will be the same for lastLine, firstItem, lastItem.
Component lastLine
Component firstItem
Component lastItem
| 类 java.awt.Button 继承 Component 实现 Serializable |
|---|
serialVersionUID: -8774683716313001058L
| 序列化方法 |
|---|
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
ObjectInputStream,如果它不为 null,则添加一个侦听器,以接收按钮激发的操作事件。未识别的键或值将被忽略。
HeadlessException - 如果 GraphicsEnvironment.isHeadless 返回 true
ClassNotFoundException
IOExceptionButton.removeActionListener(ActionListener),
Button.addActionListener(ActionListener),
GraphicsEnvironment.isHeadless(),
Button.writeObject(ObjectOutputStream)private void writeObject(ObjectOutputStream s) throws IOException
ActionListeners 的一个列表作为可选数据。检测不可序列化的 ActionListeners,不会试图对它们进行序列化。
null 终止的 0 或多对序列:该对由一个 String 和一个 Object 组成;String 指示对象的类型,它是以下类型之一:指示 ActionListener 对象的 actionListenerKIOExceptionAWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
Component.actionListenerK,
Button.readObject(ObjectInputStream)| 序列化字段 |
|---|
String label
Button.getLabel(),
setLabel()String actionCommand
Button.getActionCommand(),
setActionCommand()int buttonSerializedDataVersion
| 类 java.awt.Button.AccessibleAWTButton 继承 Component.AccessibleAWTComponent 实现 Serializable |
|---|
serialVersionUID: -5932203980244017102L
| 类 java.awt.Canvas 继承 Component 实现 Serializable |
|---|
serialVersionUID: -2284879212465893870L
| 类 java.awt.Canvas.AccessibleAWTCanvas 继承 Component.AccessibleAWTComponent 实现 Serializable |
|---|
serialVersionUID: -6325592262103146699L
| 类 java.awt.CardLayout 继承 Object 实现 Serializable |
|---|
serialVersionUID: -4328196481005934313L
| 序列化方法 |
|---|
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
private void writeObject(ObjectOutputStream s) throws IOException
IOException| 序列化字段 |
|---|
int currentCard
int hgap
Hashtable<K,V> tab
Vector<E> vector
int vgap
| 类 java.awt.Checkbox 继承 Component 实现 Serializable |
|---|
serialVersionUID: 7270714317450821763L
| 序列化方法 |
|---|
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
ObjectInputStream,如果它不为 null,则添加一个侦听器,以接收 Checkbox 触发的项事件。忽略未被识别的键或值。
HeadlessException - 如果 GraphicsEnvironment.isHeadless 返回 true
ClassNotFoundException
IOExceptionCheckbox.removeItemListener(ItemListener),
Checkbox.addItemListener(ItemListener),
GraphicsEnvironment.isHeadless(),
Checkbox.writeObject(ObjectOutputStream)private void writeObject(ObjectOutputStream s) throws IOException
ItemListeners 的一个列表作为可选数据。检测不可序列化的 ItemListeners,不要尝试对它们进行序列化。
null 表示终止 0 或多个对的序列;这种对是由 String 和 Object 组成的;String 指示对象类型,它为以下类型之一:itemListenerK 指示一个 ItemListener 对象IOExceptionAWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
Component.itemListenerK,
Checkbox.readObject(ObjectInputStream)| 序列化字段 |
|---|
String label
Checkbox.getLabel(),
#setLabel(label)boolean state
Checkbox.
Checkbox.getState(),
#setState(state)CheckboxGroup group
#getCheckBoxGroup(),
#setCheckBoxGroup(CheckBoxGroup)int checkboxSerializedDataVersion
| 类 java.awt.Checkbox.AccessibleAWTCheckbox 继承 Component.AccessibleAWTComponent 实现 Serializable |
|---|
serialVersionUID: 7881579233144754107L
| 类 java.awt.CheckboxGroup 继承 Object 实现 Serializable |
|---|
serialVersionUID: 3729780091441768983L
| 序列化字段 |
|---|
Checkbox selectedCheckbox
| 类 java.awt.CheckboxMenuItem 继承 MenuItem 实现 Serializable |
|---|
serialVersionUID: 6190621106981774043L
| 序列化方法 |
|---|
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
private void writeObject(ObjectOutputStream s) throws IOException
ItemListeners 的一个列表作为可选数据。检测不可序列化的 ItemListeners,不要尝试对它们进行序列化。
null 终止的 0 或多对序列;该对由一个 String 和一个 Object 组成;String 指示对象的类型,它是以下类型之一:指示 ItemListener 对象的 itemListenerKIOExceptionAWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
Component.itemListenerK,
CheckboxMenuItem.readObject(ObjectInputStream)| 序列化字段 |
|---|
boolean state
int checkboxMenuItemSerializedDataVersion
| 类 java.awt.CheckboxMenuItem.AccessibleAWTCheckboxMenuItem 继承 MenuItem.AccessibleAWTMenuItem 实现 Serializable |
|---|
serialVersionUID: -1122642964303476L
| 类 java.awt.Choice 继承 Component 实现 Serializable |
|---|
serialVersionUID: -4075310674757313071L
| 序列化方法 |
|---|
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
ObjectInputStream,如果它不为 null,则添加一个侦听器,以接收 Choice 项触发的项事件。忽略未被识别的键或值。
HeadlessException - 如果 GraphicsEnvironment.isHeadless 返回 true
ClassNotFoundException
IOExceptionChoice.removeItemListener(ItemListener),
Choice.addItemListener(ItemListener),
GraphicsEnvironment.isHeadless(),
Choice.writeObject(ObjectOutputStream)private void writeObject(ObjectOutputStream s) throws IOException
ItemListeners 的一个列表作为可选数据。检测不可序列化的 ItemListeners,不要尝试对它们进行序列化。
null 表示终止 0 或多个对的序列;这种对是由 String 和 Object 组成的;String 指示对象类型,它为以下类型之一:itemListenerK 指示一个 ItemListener 对象IOExceptionAWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
Component.itemListenerK,
Choice.readObject(ObjectInputStream)| 序列化字段 |
|---|
Vector<E> pItems
Choice.
This can be a null value.
int selectedIndex
Choice
or -1 if nothing is selected.
int choiceSerializedDataVersion
| 类 java.awt.Choice.AccessibleAWTChoice 继承 Component.AccessibleAWTComponent 实现 Serializable |
|---|
serialVersionUID: 7175603582428509322L
| 类 java.awt.Color 继承 Object 实现 Serializable |
|---|
serialVersionUID: 118526816881161077L
| 序列化字段 |
|---|
int value
Color.getRGB()float[] frgbvalue
ColorSpace 中的颜色值可看作是 float 分量(不带 alpha 值)。如果在构造对象之后颜色值为 null,则此颜色必须是用 8 位精度构造的一种 sRGB 颜色,因此要从 int 颜色值开始计算。
float[] fvalue
ColorSpace 中的颜色值可看作是 float 分量(不带 alpha 值)。如果在构造对象之后颜色值为 null,则此颜色必须是用 8 位精度构造的一种 sRGB 颜色,因此要从 int 颜色值开始计算。
float falpha
float 分量。如果 frgbvalue 为 null,那么这是一个无效数据,因此要从 int 颜色值开始计算。
ColorSpace cs
ColorSpace。如果 ColorSpace 为 null,那么其默认值为 sRGB。
| 类 java.awt.Component 继承 Object 实现 Serializable |
|---|
serialVersionUID: -7644114512714619750L
| 序列化方法 |
|---|
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ObjectInputStream 并且如果它不为 null,则添加一个侦听器,以便接收由组件所激发的各种事件。忽略未识别的键或值。
private void writeObject(ObjectOutputStream s) throws IOException
null 终止的 0 或多对序列;该对由一个 String 和一个 Object 组成;String 表示对象的类型并为下列类型之一(1.4 中):componentListenerK 表示 ComponentListener 对象;focusListenerK 表示 FocusListener 对象;keyListenerK 表示 KeyListener 对象;mouseListenerK 表示 MouseListener 对象;mouseMotionListenerK 表示 MouseMotionListener 对象;inputListenerK 表示 InputListener 对象;hierarchyListenerK 表示 HierarchyListener 对象;hierarchyBoundsListenerK 表示 HierarchyBoundsListener 对象;mouseWheelListenerK 表示 MouseWheelListener 对象, 一个可选的 ComponentOrientation(在 1.2 中位于 inputMethodListener 之后)IOExceptionAWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener),
Component.componentListenerK,
Component.focusListenerK,
Component.keyListenerK,
Component.mouseListenerK,
Component.mouseMotionListenerK,
#inputListenerK,
Component.hierarchyListenerK,
Component.hierarchyBoundsListenerK,
Component.mouseWheelListenerK,
Component.readObject(ObjectInputStream)| 序列化字段 |
|---|
int x
int y
int width
Component.getSize()int height
Component.getSize()Color foreground
foreground can be null.
Color background
background can be null.
Font font
font can be null.
Font peerFont
null if no peer exists.)
Cursor cursor
null.
Locale locale
boolean ignoreRepaint
Component.setIgnoreRepaint(boolean),
Component.getIgnoreRepaint()boolean visible
boolean enabled
boolean valid
DropTarget dropTarget
DropTarget associated with this component.
Component.setDropTarget(java.awt.dnd.DropTarget),
Component.getDropTarget()Vector<E> popups
String name
null。
boolean nameExplicitlySet
nameExplicitlySet 为 false;否则为 true。
boolean focusable
Component.setFocusable(boolean),
Component.isFocusable()int isFocusTraversableOverridden
Set<E>[] focusTraversalKeys
boolean focusTraversalKeysEnabled
Dimension minSize
boolean minSizeSet
Dimension prefSize
boolean prefSizeSet
Dimension maxSize
boolean maxSizeSet
boolean newEventsOnly
newEventsOnly will be true if the event is
one of the event types enabled for the component.
It will then allow for normal processing to
continue. If it is false the event is passed
to the component's parent and up the ancestor
tree until the event has been consumed.
long eventMask
eventMask is ONLY set by subclasses via
enableEvents.
The mask should NOT be set when listeners are registered
so that we can distinguish the difference between when
listeners request events and subclasses request them.
One bit is used to indicate whether input methods are
enabled; this bit is set by enableInputMethods and is
on by default.
PropertyChangeSupport changeSupport
PropertyChangeListeners,则 changeSupport 字段负责描述它们。
boolean isPacked
int boundsOp
int componentSerializedDataVersion
AccessibleContext accessibleContext
| 类 java.awt.Component.AccessibleAWTComponent 继承 AccessibleContext 实现 Serializable |
|---|
serialVersionUID: 642321655757800191L
| 序列化字段 |
|---|
ComponentListener accessibleAWTComponentHandler
FocusListener accessibleAWTFocusHandler
| 类 java.awt.ComponentOrientation 继承 Object 实现 Serializable |
|---|
| 序列化字段 |
|---|
int orientation
| 类 java.awt.Container 继承 Component 实现 Serializable |
|---|
serialVersionUID: 4613797578919906343L
| 序列化方法 |
|---|
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ObjectInputStream 的 Container。
private void writeObject(ObjectOutputStream s) throws IOException
Container 序列化到指定的 ObjectOutputStream 中。
null。
null 表示终止 0 或多个对的序列;这种对是由 String 和 Object 组成的;String 指示了对象类型,它为以下类型之一:指示 ContainerListener 对象的 containerListenerK、Container 的 FocusTraversalPolicy 或 nullIOExceptionAWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener),
Component.containerListenerK,
Container.readObject(ObjectInputStream)| 序列化字段 |
|---|
Component[] component
int containerSerializedDataVersion
java.awt.LightweightDispatcher dispatcher
boolean focusCycleRoot
boolean focusTraversalPolicyProvider
LayoutManager layoutMgr
Dimension maxSize
int ncomponents
| 类 java.awt.Container.AccessibleAWTContainer 继承 Component.AccessibleAWTComponent 实现 Serializable |
|---|
serialVersionUID: 5081320404842566097L
| 序列化字段 |
|---|
ContainerListener accessibleContainerHandler
| 类 java.awt.ContainerOrderFocusTraversalPolicy 继承 FocusTraversalPolicy 实现 Serializable |
|---|
serialVersionUID: 486933713763926351L
| 序列化字段 |
|---|
boolean implicitDownCycleTraversal
| 类 java.awt.Cursor 继承 Object 实现 Serializable |
|---|
serialVersionUID: 8028237497568985504L
| 序列化字段 |
|---|
int type
DEFAULT_CURSOR.
Cursor.getType()String name
Cursor.getName()| 类 java.awt.DefaultFocusTraversalPolicy 继承 ContainerOrderFocusTraversalPolicy 实现 Serializable |
|---|
| 类 java.awt.Dialog 继承 Window 实现 Serializable |
|---|
serialVersionUID: 5920926903803293709L
| 序列化字段 |
|---|
boolean resizable
boolean undecorated
undecorated will be true if the dialog is
undecorated, otherwise it will be false.
Dialog.setUndecorated(boolean),
Dialog.isUndecorated(),
Component.isDisplayable()boolean modal
String title
| 类 java.awt.Dialog.AccessibleAWTDialog 继承 Window.AccessibleAWTWindow 实现 Serializable |
|---|
serialVersionUID: 4837230331833941201L
| 类 java.awt.Dimension 继承 Dimension2D 实现 Serializable |
|---|
serialVersionUID: 4723952579491349524L
| 序列化字段 |
|---|
int width
int height
| 类 java.awt.Event 继承 Object 实现 Serializable |
|---|
serialVersionUID: 5488922509400504703L
| 序列化字段 |
|---|
Object target
long when
InputEvent.getWhen()int id
Event 变量与该事件有关。它已经由 AWTEvent.getID() 取代。
AWTEvent.getID()int x
MouseEvent.getX()int y
MouseEvent.getY()int key
int modifiers
int clickCount
MOUSE_DOWN 事件来说,此字段指示连续点击的次数。对于其他事件,其值为 0。此字段由 MouseEvent.getClickCount() 取代。
Object arg
arg 已经由事件指定的属性取代。
Event evt
EventQueueboolean consumed
Event.isConsumed()| 类 java.awt.FileDialog 继承 Dialog 实现 Serializable |
|---|
serialVersionUID: 5035145889651310422L
| 序列化方法 |
|---|
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ObjectInputStream,并执行向后兼容检查,将 dir 或等于空字符串的 file 转换为 null。
| 序列化字段 |
|---|
int mode
String dir
String file
FilenameFilter filter
| 类 java.awt.FlowLayout 继承 Object 实现 Serializable |
|---|
serialVersionUID: -7262534875583282631L
| 序列化方法 |
|---|
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
| 序列化字段 |
|---|
int align
align is the property that determines
how each row distributes empty space.
It can be one of the following values:
LEFT
RIGHT
CENTER
LEADING
TRAILING
int newAlign
newAlign is the property that determines
how each row distributes empty space for the Java 2 platform,
v1.2 and greater.
It can be one of the following three values:
LEFT
RIGHT
CENTER
LEADING
TRAILING
FlowLayout.getAlignment(),
FlowLayout.setAlignment(int)int hgap
Container.
int vgap
Container.
int serialVersionOnStream
currentSerialVersion。它将是以下两个值之一:0,Java 2 平台 v1.2 之前的版本1,Java 2 平台 v1.2 之后的版本
| 类 java.awt.Font 继承 Object 实现 Serializable |
|---|
serialVersionUID: -4206021311591459213L
| 序列化方法 |
|---|
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ObjectInputStream。未识别的密钥或值将被忽略。
private void writeObject(ObjectOutputStream s) throws ClassNotFoundException, IOException
| 序列化字段 |
|---|
Hashtable<K,V> fRequestedAttributes
Font.getAttributes()String name
Font 的逻辑名称,它被传递到构造方法中。
Font.getName()int style
Font 的样式,它被传递到构造方法中。此样式可以为 PLAIN、BOLD、ITALIC 或 BOLD+ITALIC。
Font.getStyle()int size
Font 的点大小,舍入为整数。
Font.getSize()float pointSize
float 形式表示的 Font 的点大小。
int fontSerializedDataVersion
Font 的可序列化数据形式。
| 类 java.awt.FontFormatException 继承 Exception 实现 Serializable |
|---|
| 类 java.awt.FontMetrics 继承 Object 实现 Serializable |
|---|
serialVersionUID: 1681126225205050147L
| 序列化字段 |
|---|
Font font
Font,字体规格是由此创建的。它不能为 null。
| 类 java.awt.Frame 继承 Window 实现 Serializable |
|---|
serialVersionUID: 2673458971256075116L
| 序列化方法 |
|---|
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
ObjectInputStream。尝试读取一个 Icon,它是从 1.4 版本开始可用的可选数据。如果有一个 Icon 不可用,但是已经检测了除 EOF 之外的所有数据,则抛出 OptionalDataException。未识别的键或值将被忽略。
OptionalDataException - 如果某个 Icon 不可用,但是已经检测了除 EOF 之外的所有数据
HeadlessException - 如果 GraphicsEnvironment.isHeadless 返回 true
ClassNotFoundException
IOExceptionGraphicsEnvironment.isHeadless(),
Icon,
Frame.writeObject(ObjectOutputStream)private void writeObject(ObjectOutputStream s) throws IOException
Icon,从 1.4 开始,该图标是可用的。
IconIOExceptionIcon,
Frame.readObject(ObjectInputStream)| 序列化字段 |
|---|
Rectangle maximizedBounds
Frame.setMaximizedBounds(Rectangle),
Frame.getMaximizedBounds()String title
title can be null and if
this is the case the title = "".
MenuBar menuBar
menuBar = null
the frame will not have a menubar.
boolean resizable
resizable will be true if the frame is
resizable, otherwise it will be false.
Frame.isResizable()boolean undecorated
undecorated will be true if the frame is
undecorated, otherwise it will be false.
Frame.setUndecorated(boolean),
Frame.isUndecorated(),
Component.isDisplayable()boolean mbManagement
mbManagement is only used by the Motif implementation.
int state
Vector<E> ownedWindows
int frameSerializedDataVersion
Frame 的序列化数据版本。
| 类 java.awt.Frame.AccessibleAWTFrame 继承 Window.AccessibleAWTWindow 实现 Serializable |
|---|
serialVersionUID: -6172960752956030250L
| 类 java.awt.GraphicsConfigTemplate 继承 Object 实现 Serializable |
|---|
| 类 java.awt.GridBagConstraints 继承 Object 实现 Serializable |
|---|
serialVersionUID: -1000070633030801713L
| 序列化字段 |
|---|
int gridx
gridx=0。组件显示区域的开始边指的是水平、从左到右容器的左边缘和水平、从右到左容器的右边缘。值 RELATIVE 指定将组件放置在添加此组件之前刚刚添加到容器的组件的后面。
默认值为 RELATIVE。gridx 应为非负值。
int gridy
gridy=0。值 RELATIVE 指定将组件放置在添加此组件之前刚刚添加到容器的组件的下面。
默认值为 RELATIVE。gridy 应为非负值。
int gridwidth
使用 REMAINDER 指定组件的显示区域从 gridx 到该行的最后一个单元格。使用 RELATIVE 指定组件的显示区域从 gridx 到它所在行的倒数第二个单元格。
gridwidth 应为非负,默认值为 1。
int gridheight
使用 REMAINDER 指定组件的显示区域从 gridy 到该列的最后一个单元格。使用 RELATIVE 指定组件的显示区域从 gridy 到它所在列的倒数第二个单元格。
gridheight 应为非负,默认值为 1。
double weightx
网格包布局管理器计算出列的权重就是列的所有组件中最大的 weightx。如果得到的布局在水平方向上比需要填充的区域小,则系统会将额外的空间按照其权重比例分布到每一列。权重为零的列不会得到额外的空间。
如果所有的权重都为零,则所有的额外空间都将出现在单元格的网格之间和左右边缘之间。
此字段的默认值为 0。weightx 应为非负值。
double weighty
网格包布局管理器计算出行的权重就是行的所有组件中最大的 weighty。如果得到的布局在垂直方向上比需要填充的区域小,则系统会将额外的空间按照其权重比例分布到每一行。权重为零的行不会得到额外的空间。
如果所有的权重都为零,则所有的额外空间都将出现在单元格的网格之间和上下边缘之间。
此字段的默认值为 0。weighty 应为非负值。
int anchor
可能的值有两种:相对和绝对。相对值的解释是相对于容器的组件方向属性,而绝对值则不然。绝对值有:CENTER、NORTH、NORTHEAST、EAST、SOUTHEAST、SOUTH、SOUTHWEST、WEST 和 NORTHWEST。相对值有:PAGE_START、PAGE_END、LINE_START、LINE_END、FIRST_LINE_START、FIRST_LINE_END、LAST_LINE_START 和 LAST_LINE_END。默认值为 CENTER。
int fill
以下值适用于 fill:
NONE:不调整组件大小。
HORIZONTAL:加宽组件,使它在水平方向上得以填满其显示区域,但是不改变高度。
VERTICAL:加高组件,使它在垂直方向上得以填满其显示区域,但是不改变宽度。
BOTH:使组件完全填满其显示区域。
默认值为 NONE。
Insets insets
默认值为 new Insets(0, 0, 0, 0)。
int ipadx
ipadx 像素。
默认值为 0。
int ipady
ipady 像素。
默认值为 0。
int tempX
int tempY
int tempWidth
int tempHeight
int minWidth
ipady, where the default will be 0.
int minHeight
ipadx, where the default will be 0.
| 类 java.awt.GridBagLayout 继承 Object 实现 Serializable |
|---|
serialVersionUID: 8838754796412211005L
| 序列化字段 |
|---|
Hashtable<K,V> comptable
comptable 中的键是组件,值是 GridBagConstraints 的实例。
GridBagConstraintsGridBagConstraints defaultConstraints
defaultConstraints 的副本。
java.awt.GridBagLayoutInfo layoutInfo
layoutInfo 为 null,这指示网格包中不存在组件,或者即使存在,也是尚未经过验证的组件。
int[] columnWidths
null,则在计算全部最小列宽度之后将该值应用到网格包。如果 columnWidths 的元素多于列数,则在网格包中添加列以匹配 columnWidth 中的元素数。
int[] rowHeights
rowHeights 的元素多于行数,则在网格包中添加行以匹配 rowHeights 中的元素数。
double[] columnWeights
null,则在计算全部列权重之后将值应用到网格包。如果 columnWeights[i] 大于列 i 的权重,则将 columnWeights[i] 中的权重分配给列 i。如果 columnWeights 的元素多于列数,则多余的元素将被忽略——它们不会导致更多列的创建。
double[] rowWeights
rowWeights[i] 大于行 i 的权重,则将 rowWeights[i] 中的权重分配给行 i。如果 rowWeights 的元素多于行数,则多余的元素将被忽略——它们不会导致更多行的创建。
| 类 java.awt.GridLayout 继承 Object 实现 Serializable |
|---|
| 序列化字段 |
|---|
int hgap
int vgap
int rows
int cols
| 类 java.awt.HeadlessException 继承 UnsupportedOperationException 实现 Serializable |
|---|
serialVersionUID: 167183644944358563L
| 类 java.awt.IllegalComponentStateException 继承 IllegalStateException 实现 Serializable |
|---|
serialVersionUID: -1889339587208144238L