Serialized Form
consumed
boolean consumed
id
int id
center
Component center
- Constant to specify components location to be the
center portion of the border layout.
- See Also:
#getChild,
BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object),
#getLayoutAllignment,
BorderLayout.removeLayoutComponent(java.awt.Component)
east
Component east
- Constant to specify components location to be the
east portion of the border layout.
- See Also:
#getChild,
BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object),
#getLayoutAllignment,
BorderLayout.removeLayoutComponent(java.awt.Component)
firstItem
Component firstItem
- A relative positioning constant, that can be used instead of
north, south, east, west or center.
Please read Description for firstLine.
firstLine
Component firstLine
- A relative positioning constant, that can be used instead of
north, south, east, west or center.
mixing the two types of constants can lead to unpredicable results. If
you use both types, the relative constants will take precedence.
For example, if you add components using both the
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.
hgap
int hgap
- Constructs a border layout with the horizontal gaps
between components.
The horizontal gap is specified by
hgap.
- See Also:
BorderLayout.getHgap(),
setHgap()
lastItem
Component lastItem
- A relative positioning constant, that can be used instead of
north, south, east, west or center.
Please read Description for firstLine.
lastLine
Component lastLine
- A relative positioning constant, that can be used instead of
north, south, east, west or center.
Please read Description for firstLine.
north
Component north
- Constant to specify components location to be the
north portion of the border layout.
- See Also:
#getChild,
BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object),
#getLayoutAllignment,
BorderLayout.removeLayoutComponent(java.awt.Component)
south
Component south
- Constant to specify components location to be the
south portion of the border layout.
- See Also:
#getChild,
BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object),
#getLayoutAllignment,
BorderLayout.removeLayoutComponent(java.awt.Component)
vgap
int vgap
- Constructs a border layout with the vertical gaps
between components.
The vertical gap is specified by
vgap.
- See Also:
BorderLayout.getVgap(),
setVgap()
west
Component west
- Constant to specify components location to be the
west portion of the border layout.
- See Also:
#getChild,
BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object),
#getLayoutAllignment,
BorderLayout.removeLayoutComponent(java.awt.Component)
readObject
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException
writeObject
private void writeObject(ObjectOutputStream s)
throws IOException
- Writes default serializable fields to stream. Writes
a list of serializable ItemListener(s) as optional data.
The non-serializable ItemListner(s) are detected and
no attempt is made to serialize them.
- Serial Data:
- 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.
- See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
java.awt.Component.itemListenerK
actionCommand
String actionCommand
buttonSerializedDataVersion
int buttonSerializedDataVersion
label
String label
graphicsConfig
GraphicsConfiguration graphicsConfig
hgap
int hgap
tab
Hashtable tab
vgap
int vgap
readObject
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException
writeObject
private void writeObject(ObjectOutputStream s)
throws IOException
- Writes default serializable fields to stream. Writes
a list of serializable ItemListener(s) as optional data.
The non-serializable ItemListner(s) are detected and
no attempt is made to serialize them.
- Serial Data:
- 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.
- See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
java.awt.Component.itemListenerK
checkboxSerializedDataVersion
int checkboxSerializedDataVersion
group
CheckboxGroup group
- The check box group.
This field can be null indicating that the checkbox
is not a group checkbox.
- See Also:
getCheckBoxGroup(),
setCheckBoxGroup()
label
String label
- The label of the Checkbox.
This field can be null. If a label is not specified it
defaults to null or "".
- See Also:
Checkbox.getLabel(),
setLabel()
state
boolean state
- The state of the Checkbox.
- See Also:
Checkbox.getState(),
setLabel()
selectedCheckbox
Checkbox selectedCheckbox
- The current choice.
- See Also:
CheckboxGroup.getCurrent(),
setCurrent()
readObject
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException
writeObject
private void writeObject(ObjectOutputStream s)
throws IOException
- Writes default serializable fields to stream. Writes
a list of serializable ItemListener(s) as optional data.
The non-serializable ItemListner(s) are detected and
no attempt is made to serialize them.
- Serial Data:
- 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.
- See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
java.awt.Component.itemListenerK
checkboxMenuItemSerializedDataVersion
int checkboxMenuItemSerializedDataVersion
state
boolean state
readObject
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException
writeObject
private void writeObject(ObjectOutputStream s)
throws IOException
- Writes default serializable fields to stream. Writes
a list of serializable ItemListener(s) as optional data.
The non-serializable ItemListner(s) are detected and
no attempt is made to serialize them.
- Serial Data:
- 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.
- See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
java.awt.Component.itemListenerK
choiceSerializedDataVersion
int choiceSerializedDataVersion
pItems
Vector pItems
- The items for the Choice.
This can be a null value.
- See Also:
add(),
addItem(),
getItem(),
Choice.getItemCount(),
insert(),
remove()
selectedIndex
int selectedIndex
- The index of the current choice for this Choice.
- See Also:
getSelectedItem,
select()
cs
ColorSpace cs
- The ColorSpace. If null, then it's default sRGB.
- See Also:
getColor(),
Color.getColorSpace(),
getColorComponents()
falpha
float falpha
- The alpha value as a float component.
If frgbvalue is null, this is not valid data,
so compute from the int color value.
- See Also:
getRGBComponents(),
getComponents()
frgbvalue
float[] frgbvalue
- The color value in the default sRGB ColorSpace as float
components (no alpha).
If null after object construction, this must be an sRGB color
constructed with 8-bit precision, so compute from the int color value.
- See Also:
getRGBColorComponents(),
getRGBComponents()
fvalue
float[] fvalue
- The color value in the native ColorSpace as float components (no alpha).
If null after object construction, this must be an sRGB color
constructed with 8-bit precision, so compute from the int color value.
- See Also:
getRGBColorComponents(),
getRGBComponents()
theContext
PaintContext theContext
value
int value
- The color value.
- See Also:
Color.getRGB()
readObject
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException
- 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.
- See Also:
removeActionListener(),
addActionListener()
writeObject
private void writeObject(ObjectOutputStream s)
throws IOException
- 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.
- Serial Data:
- 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.
- See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
java.awt.Component.itemListenerK
background
Color background
- The background color for this component.
background can be null.
- See Also:
Component.getBackground(),
Component.setBackground(java.awt.Color)
changeSupport
PropertyChangeSupport changeSupport
- If any PropertyChangeListeners have been registered, the
changeSupport field describes them.
- See Also:
addPropertyChangeListener(),
removePropertyChangeListener(),
firePropertyChange()- Since:
- JDK 1.2
componentSerializedDataVersion
int componentSerializedDataVersion
- Component Serialized Data Version.
cursor
Cursor cursor
- The cursor displayed when pointer is over this component.
cursor must always be a non-null cursor image.
- See Also:
Component.getCursor(),
Component.setCursor(java.awt.Cursor)
dropTarget
DropTarget dropTarget
- The DropTarget associated with this Component.
- See Also:
Component.setDropTarget(java.awt.dnd.DropTarget),
Component.getDropTarget()- Since:
- JDK 1.2
enabled
boolean enabled
- True when the object is enabled. An object that is not
enabled does not interact with the user.
- See Also:
Component.isEnabled(),
Component.setEnabled(boolean)
eventMask
long eventMask
- The 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.
- See Also:
enableInputMethods()
font
Font font
- The font used by this component.
The font can be null.
- See Also:
Component.getFont(),
Component.setFont(java.awt.Font)
foreground
Color foreground
- The foreground color for this component.
foreground color can be null.
- See Also:
Component.getForeground(),
Component.setForeground(java.awt.Color)
hasFocus
boolean hasFocus
- True if this component has enabled focus events and currently
has the focus.
- See Also:
Component.hasFocus(),
Component.processFocusEvent(java.awt.event.FocusEvent)
height
int height
- The height of the component.
- See Also:
Component.getSize()
isPacked
boolean isPacked
locale
Locale locale
- The locale for the component.
- See Also:
Component.getLocale(),
Component.setLocale(java.util.Locale)
minSize
Dimension minSize
- Internal, cached size information.
(This field perhaps should have been transient).
name
String name
- A components name.
This field can be null.
- See Also:
Component.getName(),
setName()
nameExplicitlySet
boolean nameExplicitlySet
- A bool to determine whether the name has
been set explicitly. nameExplicitlySet will
be false if the name has not been set and
true if it has.
- See Also:
Component.getName(),
setName()
newEventsOnly
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 components parent and up the ancestor
tree until the event has been consumed.
- See Also:
dispatchEvent()
peerFont
Font peerFont
- The font which the peer is currently using. (null if no peer exists.)
popups
Vector popups
- See Also:
add()
prefSize
Dimension prefSize
- Internal, cached size information
(This field perhaps should have been transient).
valid
boolean valid
- 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.
- See Also:
Component.isValid(),
Component.validate(),
Component.invalidate()
visible
boolean visible
- True when the object is visible. An object that is not
visible is not drawn on the screen.
- See Also:
Component.isVisible(),
Component.setVisible(boolean)
width
int width
- The width of the component.
- See Also:
Component.getSize()
x
int x
- The x position of the component in the parent's coordinate system.
- See Also:
Component.getLocation()
y
int y
- The y position of the component in the parent's coordinate system.
- See Also:
Component.getLocation()
orientation
int orientation
readObject
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException
writeObject
private void writeObject(ObjectOutputStream s)
throws IOException
- Writes default serializable fields to stream. Writes
a list of serializable ItemListener(s) as optional data.
The non-serializable ItemListner(s) are detected and
no attempt is made to serialize them.
- Serial Data:
- 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.
- See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
java.awt.Component.itemListenerK
component
Component[] component
- The components in this container.
- See Also:
add(),
Container.getComponents()
containerSerializedDataVersion
int containerSerializedDataVersion
dispatcher
java.awt.LightweightDispatcher dispatcher
- Event router for lightweight components. If this container
is native, this dispatcher takes care of forwarding and
retargeting the events to lightweight components contained
(if any).
layoutMgr
LayoutManager layoutMgr
- Layout manager for this container.
- See Also:
Container.doLayout(),
setLayout(),
Container.getLayout()
maxSize
Dimension maxSize
ncomponents
int ncomponents
- The number of components in this container.
This value can be null.
- See Also:
getComponent(),
Container.getComponents(),
Container.getComponentCount()
name
String name
- The user-visible name of the cursor.
- See Also:
Cursor.getName()
type
int type
- The chosen cursor type intially set to
the
DEFAULT_CURSOR.
- See Also:
Cursor.getType()
modal
boolean modal
- Will be true if the Dialog is modal,
otherwise the dialog will be modeless.
A modal Dialog grabs all the input to
the owner frame from the user.
- See Also:
Dialog.isModal(),
setModal()
resizable
boolean resizable
- A dialogs resizable property. Will be true
if the Dialog is to be resizable, otherwise
it will be false.
- See Also:
setResizable()
title
String title
- Specifies the title of the Dialog.
This field can be null.
- See Also:
Dialog.getTitle(),
setTitle()
height
int height
- The height dimension. Negative values can be used.
- See Also:
Dimension.getSize(),
setSize()
width
int width
- The width dimension. Negative values can be used.
- See Also:
Dimension.getSize(),
setSize()
arg
Object arg
- An arbitrary argument of the event. The value of this field
depends on the type of event.
arg has been replaced b event specific property.
clickCount
int clickCount
- For
MOUSE_DOWN events, this field indicates the
number of consecutive clicks. For other events, its value is
0.
This field has been replaced by MouseEvent.getClickCount().
- See Also:
java.awt.MouseEvent.getClickCount().
consumed
boolean consumed
- This field controls whether or not the event is sent back
down to the peer once the target has processed it -
false means it's sent to the peer, true means it's not.
- See Also:
isConsumed()
evt
Event evt
- The next event. This field is set when putting events into a
linked list.
This has been replaced by EventQueue.
- See Also:
EventQueue
id
int id
- Indicates which type of event the event is, and which
other
Event variables are relevant for the event.
This has been replaced by AWTEvent.getID()
- See Also:
java.awt.AWTEvent.getID()
key
int key
- The key code of the key that was pressed in a keyboard event.
This has been replaced by KeyEvent.getKeyCode()
- See Also:
java.awt.KeyEvent#getKeyCode()
modifiers
int modifiers
- The state of the modifier keys.
This is replaced with InputEvent.getModifiers()
In java 1.1 MouseEvent and KeyEvent are subclasses
of InputEvent.
- See Also:
java.awt.InputEvent#getModifiers()
target
Object target
- The target component. This indicates the component over which the
event occurred or with which the event is associated.
This object has been replaced by AWTEvent.getSource()
- See Also:
EventObject.getSource()
when
long when
- The time stamp.
Replaced by InputEvent.getWhen().
- See Also:
java.awt.InputEvent#getWhen()
x
int x
- The x coordinate of the event.
Replaced by MouseEvent.getX()
- See Also:
java.awt.MouseEvent#getX()
y
int y
- The y coordinate of the event.
Replaced by MouseEvent.getY()
- See Also:
java.awt.MouseEvent#getY()
readObject
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException
dir
String dir
file
String file
filter
FilenameFilter filter
mode
int mode
readObject
private void readObject(ObjectInputStream stream)
throws IOException,
ClassNotFoundException
- Read this object out of a serialization stream, handling
objects written by older versions of the class that didn't contain all
of the fields we use now..
align
int align
align is the proprty that determines
how each row distributes empty space.
It can be one of the following three values :
LEFT
RIGHT
CENTER
- See Also:
FlowLayout.getAlignment(),
setAlignment()
hgap
int hgap
- The flow layout manager allows a seperation of
components with gaps. The horizontal gap will
specify the space between components.
- See Also:
FlowLayout.getHgap(),
setHgap()
newAlign
int newAlign
newAlign is the property that determines
how each row distributes empty space for JDK's >= JDK1.2.
It can be one of the following three values :
LEFT
RIGHT
CENTER
- See Also:
FlowLayout.getAlignment(),
setAlignment()- Since:
- JDK 1.2
serialVersionOnStream
int serialVersionOnStream
- This represent the
currentSerialVersion
which is bein used. It will be one of two values :
0 versions before JDK 1.2.
1 versions after JDK 1.2.
- Since:
- JDK 1.2
vgap
int vgap
- The flow layout manager allows a seperation of
components with gaps. The vertical gap will
specify the space between rows.
- See Also:
FlowLayout.getVgap(),
setVgap()
readObject
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException
- Read the ObjectInputStream and if it isnt null
add a listener to receive item events fired
by the Font.
Unrecognised keys or values will be Ignored.
- See Also:
removeActionListener(),
addActionListener()
writeObject
private void writeObject(ObjectOutputStream s)
throws ClassNotFoundException,
IOException
- Writes default serializable fields to stream. Writes
a list of serializable ItemListener(s) as optional data.
The non-serializable ItemListner(s) are detected and
no attempt is made to serialize them.
- Serial Data:
- 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.
- See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
java.awt.Component.itemListenerK
fontSerializedDataVersion
int fontSerializedDataVersion
- The font Serializable Data Form.
fRequestedAttributes
Hashtable fRequestedAttributes
- A map of font attributes available in this font.
Attributes include things like ligatures and glyph substitution.
- See Also:
Font.getAttributes()
name
String name
- The logical name of this
Font, as passed to the
constructor.
- See Also:
Font.getName()- Since:
- JDK1.0
pointSize
float pointSize
- The point size of this
Font in float.
- See Also:
Font.getSize(),
Font.getSize2D()
size
int size
- The point size of this
Font, rounded to integer.
- See Also:
Font.getSize()- Since:
- JDK1.0
style
int style
- The style of this
Font, as passed to the constructor.
This style can be PLAIN, BOLD, ITALIC, or BOLD+ITALIC.
- See Also:
Font.getStyle()- Since:
- JDK1.0
font
Font font
- The actual {@link Font} from which the font metrics are
created.
This cannot be null.
- See Also:
FontMetrics.getFont()
readObject
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException
- Read the ObjectInputStream and if it isnt null
add a listener to receive item events fired
by the Frame.
Unrecognised keys or values will be Ignored.
- See Also:
removeActionListener(),
addActionListener()
writeObject
private void writeObject(ObjectOutputStream s)
throws IOException
- Writes default serializable fields to stream. Writes
a list of serializable ItemListener(s) as optional data.
The non-serializable ItemListner(s) are detected and
no attempt is made to serialize them.
- Serial Data:
- 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.
- See Also:
java.awt.Component.itemListenerK
frameSerializedDataVersion
int frameSerializedDataVersion
- Frame Serialized Data Version.
icon
Image icon
icon is the graphical way we can
represent the frame.
icon can be null, but obviously if
you try to set the icon image icon
cannot be null.
- See Also:
Frame.getIconImage(),
setIconImage()
mbManagement
boolean mbManagement
mbManagement is only used by the Motif implementation.
menuBar
MenuBar menuBar
- The frames menubar. If
menuBar = null
the frame will not have a menubar.
- See Also:
Frame.getMenuBar(),
setMenuBar()
ownedWindows
Vector ownedWindows
resizable
boolean resizable
- This field indicates whether the the frame is resizable
This property can be changed at any time.
resizable will be true if the frame is
resizable, otherwise it will be false.
- See Also:
Frame.isResizable()
state
int state
title
String title
- This is the title of the frame. It can be changed
at any time.
title can be null and if
this is the case the title = "".
- See Also:
Frame.getTitle(),
setTitle()
anchor
int anchor
- This field is used when the component is smaller than its display
area. It determines where, within the display area, to place the
component. Possible values are
CENTER,
NORTH, NORTHEAST, EAST,
SOUTHEAST, SOUTH, SOUTHWEST,
WEST, and NORTHWEST.
The default value is CENTER.
- See Also:
GridBagConstraints.clone()
fill
int fill
- This field is used when the component's display area is larger
than the component's requested size. It determines whether to
resize the component, and if so, how.
The following values are valid for fill:
-
NONE: Do not resize the component.
-
HORIZONTAL: Make the component wide enough to fill
its display area horizontally, but do not change its height.
-
VERTICAL: Make the component tall enough to fill its
display area vertically, but do not change its width.
-
BOTH: Make the component fill its display area
entirely.
The default value is NONE.
- See Also:
GridBagConstraints.clone()
gridheight
int gridheight
- Specifies the number of cells in a column for the component's
display area.
Use REMAINDER to specify that the component be the
last one in its column. Use RELATIVE to specify that
the component be the next-to-last one in its column.
gridheight should be a non-negative value and the default value is 1.
- See Also:
GridBagConstraints.clone(),
GridBagConstraints.gridwidth
gridwidth
int gridwidth
- Specifies the number of cells in a row for the component's
display area.
Use REMAINDER to specify that the component be the
last one in its row. Use RELATIVE to specify that the
component be the next-to-last one in its row.
gridwidth should be non-negative and the default value is 1.
- See Also:
GridBagConstraints.clone(),
GridBagConstraints.gridheight
gridx
int gridx
- Specifies the cell at the left of the component's display area,
where the leftmost cell has
gridx=0. The value
RELATIVE specifies that the component be placed just
to the right of the component that was added to the container just
before this component was added.
The default value is RELATIVE.
gridx should be a non-negative value.
- See Also:
GridBagConstraints.clone(),
GridBagConstraints.gridy
gridy
int gridy
- Specifies the cell at the top of the component's display area,
where the topmost cell has
gridy=0. The value
RELATIVE specifies that the component be placed just
below the component that was added to the container just before
this component was added.
The default value is RELATIVE.
gridy should be a non-negative value.
- See Also:
GridBagConstraints.clone(),
GridBagConstraints.gridx
insets
Insets insets
- This field specifies the external padding of the component, the
minimum amount of space between the component and the edges of its
display area.
The default value is new Insets(0, 0, 0, 0).
- See Also:
GridBagConstraints.clone()
ipadx
int ipadx
- This field specifies the internal padding of the component, how much
space to add to the minimum width of the component. The width of
the component is at least its minimum width plus
(ipadx * 2) pixels.
The default value is 0.
- See Also:
GridBagConstraints.clone(),
GridBagConstraints.ipady
ipady
int ipady
- This field specifies the internal padding, that is, how much
space to add to the minimum height of the component. The height of
the component is at least its minimum height plus
(ipady * 2) pixels.
The default value is 0.
- See Also:
GridBagConstraints.clone(),
GridBagConstraints.ipadx
minHeight
int minHeight
- The minimum height of the component. It is used to calculate
ipadx, where the default will be 0.
- See Also:
ipadx
minWidth
int minWidth
- The minimum width of the component. It is used to calculate
ipady, where the default will be 0.
- See Also:
ipady
tempHeight
int tempHeight
- Temporary place holder for the Height of the component.
tempWidth
int tempWidth
- Temporary place holder for the Width of the component.
tempX
int tempX
- Temporary place holder for the x coordinate.
tempY
int tempY
- Temporary place holder for the y coordinate.
weightx
double weightx
- Specifies how to distribute extra horizontal space.
The grid bag layout manager calculates the weight of a column to
be the maximum weighty of all the components in a
row. If the resulting layout is smaller horizontally than the area
it needs to fill, the extra space is distributed to each column in
proportion to its weight. A column that has a weight zero receives no
extra space.
If all the weights are zero, all the extra space appears between
the grids of the cell and the left and right edges.
The default value of this field is 0.
weightx should be a non-negative value.
- See Also:
GridBagConstraints.clone(),
GridBagConstraints.weighty
weighty
double weighty
- Specifies how to distribute extra vertical space.
The grid bag layout manager calculates the weight of a row to be
the maximum weightx of all the components in a row.
If the resulting layout is smaller vertically than the area it
needs to fill, the extra space is distributed to each row in
proportion to its weight. A row that has a weight of zero receives no
extra space.
If all the weights are zero, all the extra space appears between
the grids of the cell and the top and bottom edges.
The default value of this field is 0.
weighty should be a non-negative value.
- See Also:
GridBagConstraints.clone(),
GridBagConstraints.weightx
columnWeights
double[] columnWeights
- This field holds the overrides to the column weights.
If this field is non-null the values are
applied to the gridbag after all of the columns
weights have been calculated.
If columnWeights[i] > then weight for column i, then
column i is assigned the weight in columnWeights[i].
If columnWeights has more elements than the number
of columns, the excess elements are ignored - they do
not cause more columns to be created.
- See Also:
columnWidths
int[] columnWidths
- This field holds the overrides to the column minimum
width. If this field is non-null the values are
applied to the gridbag after all of the minimum columns
widths have been calculated.
If columnWidths has more elements than the number of
columns, columns are added to the gridbag to match
the number of elements in columnWidth.
- See Also:
GridBagLayout.getLayoutDimensions()
comptable
Hashtable comptable
- This hashtable maintains the association between
a component and its gridbag constraints.
The Keys in comptable are the components and the
values are the instances of GridBagConstraints.
- See Also:
GridBagConstraints
defaultConstraints
GridBagConstraints defaultConstraints
- This field holds a gridbag constraints instance
containing the default values, so if a component
does not have gridbag constraints associated with
it, then the component will be assigned a
copy of the
defaultConstraints.
- See Also:
getConstraints(),
setConstraints(),
lookupConstraints()
layoutInfo
java.awt.GridBagLayoutInfo layoutInfo
- This field holds tha layout information
for the gridbag. The information in this field
is based on the most recent validation of the
gridbag.
If
layoutInfo is null
this indicates that there are no components in
the gridbag or if there are components, they have
not yet been validated.
- See Also:
GetLayoutInfo()
rowHeights
int[] rowHeights
- This field holds the overrides to the row minimum
heights. If this field is non-null the values are
applied to the gridbag after all of the minimum row
heights have been calculated.
If rowHeights has more elements than the number of
rows, rowa are added to the gridbag to match
the number of elements in rowHeights.
- See Also:
GridBagLayout.getLayoutDimensions()
rowWeights
double[] rowWeights
- This field holds the overrides to the row weights.
If this field is non-null the values are
applied to the gridbag after all of the rows
weights have been calculated.
If rowWeights[i] > then weight for row i, then
row i is assigned the weight in rowWeights[i].
If rowWeights has more elements than the number
of rows, the excess elements are ignored - they do
not cause more rows to be created.
- See Also:
cols
int cols
- This is the number of columns specified for the grid. The number
of columns can be changed at any time.
This should be a non negative integer, where '0' means
'any number' meaning that the number of Columns in that
dimension depends on the other dimension.
- See Also:
GridLayout.getColumns(),
setColumns()
hgap
int hgap
- This is the horizontal gap (in pixels) which specifies the space
between columns. They can be changed at any time.
This should be a non negative integer.
- See Also:
GridLayout.getHgap(),
setHgap()
rows
int rows
- This is the number of rows specified for the grid. The number
of rows can be changed at any time.
This should be a non negative integer, where '0' means
'any number' meaning that the number of Rows in that
dimension depends on the other dimension.
- See Also:
GridLayout.getRows(),
setRows()
vgap
int vgap
- This is the vertical gap (in pixels) which specifies the space
between rows. They can be changed at any time.
This should be a non negative integer.
- See Also:
GridLayout.getVgap(),
setVgap()
bottom
int bottom
- The inset from the bottom.
This value is added to the Bottom of the rectangle
to yield a new location for the Bottom.
- See Also:
Insets.clone()
left
int left
- The inset from the left.
This value is added to the left of the rectangle
to yield a new location for the left edge.
- See Also:
Insets.clone()
right
int right
- The inset from the right.
This value is added to the Right of the rectangle
to yield a new location for the Right edge.
- See Also:
Insets.clone()
top
int top
- The inset from the top.
This value is added to the Top of the rectangle
to yield a new location for the Top.
- See Also:
Insets.clone()
alignment
int alignment
- The label's alignment. The default alignment is set
to be left justified.
- See Also:
Label.getAlignment(),
setAlignment()
text
String text
- The text of this label.
This text can be modified by the program
but never by the user.
- See Also:
Label.getText(),
setText()
readObject
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException
- Read the ObjectInputStream and if it isnt null
add a listener to receive item events fired
by the List.
Unrecognised keys or values will be Ignored.
- See Also:
removeActionListener(),
addActionListener()
writeObject
private void writeObject(ObjectOutputStream s)
throws IOException
- Writes default serializable fields to stream. Writes
a list of serializable ItemListener(s) as optional data.
The non-serializable ItemListner(s) are detected and
no attempt is made to serialize them.
- Serial Data:
- 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.
- See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
java.awt.Component.itemListenerK
items
Vector items
- A vector created to contain items which will become
part of the List Component.
- See Also:
addItem(),
getItem()
listSerializedDataVersion
int listSerializedDataVersion
- The List Components Serialized Data Version.
multipleMode
boolean multipleMode
multipleMode is a variable that will
be set to true if a list component is to be set to
multiple selection mode, that is where the user can
select more than one item in a list at one time.
multipleMode will be set to false if the
list component is set to single selection, that is where
the user can only select one item on the list at any
one time.
- See Also:
List.isMultipleMode(),
setMultipleMode()
rows
int rows
- This field will represent the number of rows in the
List Component. It is specified only once, and
that is when the list component is actually
created. It will never change.
- See Also:
List.getRows()
selected
int[] selected
selected is an array that will contain
the indices of items that have been selected.
- See Also:
List.getSelectedIndexes(),
List.getSelectedIndex()
visibleIndex
int visibleIndex
- This variable contains the value that will be used
when trying to make a particular list item visible.
- See Also:
makeVisible()
head
java.awt.MediaEntry head
- The head of the list of Images that is being
tracked by the MediaTracker.
- See Also:
addImage(),
removeImage()
target
Component target
- A given Component that will be
tracked by a media tracker where the image will
eventually be drawn.
- See Also:
MediaTracker()
readObject
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException
- Read the ObjectInputStream and if it isnt null
add a listener to receive item events fired
by the Menu.
Unrecognised keys or values will be Ignored.
- See Also:
removeActionListener(),
addActionListener()
writeObject
private void writeObject(ObjectOutputStream s)
throws ClassNotFoundException,
IOException
- Writes default serializable fields to stream. Writes
a list of serializable ItemListener(s) as optional data.
The non-serializable ItemListner(s) are detected and
no attempt is made to serialize them.
- Serial Data:
- 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.
- See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
java.awt.Component.itemListenerK
isHelpMenu
boolean isHelpMenu
- This field will be set to
true
if the Menu in question is actually a help
menu. Otherwise it will be set to
false.
items
Vector items
- A vector of the items that will be part of the Menu.
- See Also:
Menu.countItems()
menuSerializedDataVersion
int menuSerializedDataVersion
- The menu serialized Data Version.
tearOff
boolean tearOff
- This field indicates whether the menu has the
tear of property or not. It will be set to
true if the menu has the tear off
property and it will be set to false>
if it does not.
A torn off menu can be deleted by a user when
it is no longer needed.
- See Also:
Menu.isTearOff()
readObject
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException
- Read the ObjectInputStream and if it isnt null
add a listener to receive item events fired
by the MenuBar.
Unrecognised keys or values will be Ignored.
- See Also:
removeActionListener(),
addActionListener()
writeObject
private void writeObject(ObjectOutputStream s)
throws ClassNotFoundException,
IOException
- Writes default serializable fields to stream. Writes
a list of serializable ItemListener(s) as optional data.
The non-serializable ItemListner(s) are detected and
no attempt is made to serialize them.
- Serial Data:
- 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.
- See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
java.awt.Component.itemListenerK
helpMenu
Menu helpMenu
- This menu is a special menu dedicated to
help. The one thing to note about this menu
is that on some platforms it appears at the
right edge of the menubar.
- See Also:
MenuBar.getHelpMenu(),
setHelpMenu()
menuBarSerializedDataVersion
int menuBarSerializedDataVersion
- The MenuBar's serialized data version.
menus
Vector menus
- This field represents a vector of the
actual menus that will be part of the MenuBar.
- See Also:
MenuBar.countMenus()
readObject
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException
font
Font font
- The Menu Components Font.
This value can be null at which point a default will be used.
- See Also:
setFont(),
MenuComponent.getFont()
name
String name
- The Menu Components name.
- See Also:
MenuComponent.getName(),
setName()
nameExplicitlySet
boolean nameExplicitlySet
- A variable to indicate whether a name is explicitly set.
If it is true the name will be set explicitly.
- See Also:
setName()
newEventsOnly
boolean newEventsOnly
- See Also:
dispatchEvent()
readObject
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException
- Read the ObjectInputStream and if it isnt null
add a listener to receive item events fired
by the Menu Item.
Unrecognised keys or values will be Ignored.
- See Also:
removeActionListener(),
addActionListener()
writeObject
private void writeObject(ObjectOutputStream s)
throws IOException
- Writes default serializable fields to stream. Writes
a list of serializable ItemListener(s) as optional data.
The non-serializable ItemListner(s) are detected and
no attempt is made to serialize them.
- Serial Data:
- 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.
- See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
java.awt.Component.itemListenerK
actionCommand
String actionCommand
- This field indicates the command tha has been issued
by a particular menu item.
By default the
actionCommand
is the label of the menu item, unless it has been
set using setActionCommand.
- See Also:
setActionCommand(),
MenuItem.getActionCommand()
enabled
boolean enabled
- A value to indicate whether a menu item is enabled
or not. If it is enabled,
enabled will
be set to true. Else enabled will
be set to false.
- See Also:
MenuItem.isEnabled(),
setEnabled()
eventMask
long eventMask
- The 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.
label
String label
label is the label of a menu item.
It can be any string.
- See Also:
MenuItem.getLabel(),
setLabel()
menuItemSerializedDataVersion
int menuItemSerializedDataVersion
- Menu item serialized data version.
shortcut
MenuShortcut shortcut
- A sequence of key stokes that ia associated with
a menu item.
Note :in 1.1.2 you must use setActionCommand()
on a menu item in order for its shortcut to
work.
- See Also:
MenuItem.getShortcut(),
setShortcut(),
MenuItem.deleteShortcut()
key
int key
- This is indicates the virtual keycode for the menu shortcut.
It is the key code with which the menu short cut will be created.
In 1.1.2 you must use setActionCommand() on a menu item
in order for its shortcut to work, otherwise it will fire a null
action command.
Must use KeyEvent virtual keys - eg : VK_A.
- See Also:
MenuShortcut.getKey(),
MenuShortcut.usesShiftModifier()
usesShift
boolean usesShift
- Indicates whether the shft key was pressed.
If true, the shift key was pressed.
If false, the shift key was not pressed
- See Also:
MenuShortcut.usesShiftModifier()
x
int x
- The x coordinate.
If no x coordinate is set it will default to '0'.
- See Also:
Point.getLocation(),
Move()
y
int y
- The y coordinate.
If no y coordinate is set it will default to '0'.
- See Also:
Point.getLocation(),
Move()
bounds
Rectangle bounds
- Bounds of the polygon.
This value can be NULL.
Please see the javadoc comments getBounds().
- See Also:
Polygon.getBoundingBox(),
Polygon.getBounds()
npoints
int npoints
- The total number of points.
This value can be NULL.
- See Also:
Polygon.addPoint(int, int)
xpoints
int[] xpoints
- The array of x coordinates.
- See Also:
Polygon.addPoint(int, int)
ypoints
int[] ypoints
- The array of y coordinates.
- See Also:
Polygon.addPoint(int, int)
height
int height
- The height of the
Rectangle.
- See Also:
Rectangle.setSize(int, int),
Rectangle.getSize()
width
int width
- The width of the
Rectangle.
- See Also:
Rectangle.setSize(int, int),
Rectangle.getSize()- Since:
- JDK1.0.
x
int x
- The x coordinate of the
Rectangle.
- See Also:
Rectangle.setLocation(int, int),
Rectangle.getLocation()
y
int y
- The y coordinate of the
Rectangle.
- See Also:
Rectangle.setLocation(int, int),
Rectangle.getLocation()
readObject
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException
- Read the ObjectInputStream and if it isnt null
add a listener to receive item events fired
by the Scrollbar.
Unrecognised keys or values will be Ignored.
- See Also:
removeActionListener(),
addActionListener()
writeObject
private void writeObject(ObjectOutputStream s)
throws IOException
- Writes default serializable fields to stream. Writes
a list of serializable ItemListener(s) as optional data.
The non-serializable ItemListner(s) are detected and
no attempt is made to serialize them.
- Serial Data:
- 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.
- See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
java.awt.Component.itemListenerK
lineIncrement
int lineIncrement
- The amount by which the scrollbar value will change when going
up or down by a line.
This value should be a non negative integer.
- See Also:
setLineIncrement(),
Scrollbar.getLineIncrement()
maximum
int maximum
- The maximum value of the Scrollbar.
This value must be greater than the
minimum
value.
This integer can be either positive or negative, and
it's range can be altered at any time.
- See Also:
Scrollbar.getMaximum(),
setMaximum()
minimum
int minimum
- The minimum value of the Scrollbar.
This value must be greater than the
minimum
value.
This integer can be either positive or negative.
- See Also:
Scrollbar.getMinimum(),
setMinimum()
orientation
int orientation
- The Scrollbar's orientation--being either horizontal or vertical.
This value should be specified when the scrollbar is being
created.
orientation can be either : VERTICAL or
HORIZONTAL only.
- See Also:
Scrollbar.getOrientation(),
setOrientation()
pageIncrement
int pageIncrement
- The amount by which the scrollbar value will change when going
up or down by a page.
This value should be a non negative integer.
- See Also:
setPageIncrement(),
Scrollbar.getPageIncrement()
scrollbarSerializedDataVersion
int scrollbarSerializedDataVersion
- The scrollbars serialized Data Version.
value
int value
- The value of the Scrollbar.
value should be either greater than
minimum
or less that maximum
- See Also:
Scrollbar.getValue(),
setValue()
visibleAmount
int visibleAmount
- The size of the visible portion of the Scrollbar.
The size of the scrollbox is normally used to indicate
the visibleAmount.
- See Also:
Scrollbar.getVisibleAmount(),
setVisibleAmount()
hAdjustable
java.awt.ScrollPaneAdjustable hAdjustable
- An adjustable Horizontal Scrollbar.
It is important to not that you must NOT call 3 Adjustable method
ie : setMinimum(), setMaximum(), setVisibleAmount().
- See Also:
ScrollPane.getHAdjustable(),
Adjustable
scrollbarDisplayPolicy
int scrollbarDisplayPolicy
- There are 3 ways in which a scroll bar can be displayed.
This integer will represent one of these 3 displays -
(SCROLLBARS_ALWAYS, SCROLLBARS_AS_NEEDED, SCROLLBARS_NEVER)
- See Also:
ScrollPane.getScrollbarDisplayPolicy()
vAdjustable
java.awt.ScrollPaneAdjustable vAdjustable
- An adjustable Vertical Scrollbar.
It is important to not that you must NOT call 3 Adjustable methods
ie : setMinimum(), setMaximum(), setVisibleAmount().
- See Also:
ScrollPane.getVAdjustable(),
Adjustable
columns
int columns
- The number of columns in the TextArea.
The number of columns will determine the text area's
width and the number of columns is not limited.
Should be non negative.
- See Also:
TextArea.getColumns(),
setColumns()
rows
int rows
- The number of rows in the TextArea.
The number of Rows will determine the text area's
height and the number of rows is not limited.
Should be non negative.
- See Also:
TextArea.getRows(),
setRows()
scrollbarVisibility
int scrollbarVisibility
- Determines which scrollbars are created for the
text area. It can be one of four values :
SCROLLBARS_BOTH = both scrollbars.
SCROLLBARS_HORIZONTAL_ONLY = Horizontal bar only.
SCROLLBARS_VERTICAL_ONLY = Vertical bar only.
SCROLLBARS_NONE = No scrollbars.
- See Also:
TextArea.getScrollbarVisibility()
readObject
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException
- Read the ObjectInputStream and if it isnt null
add a listener to receive item events fired
by the TextComponent.
Unrecognised keys or values will be Ignored.
- See Also:
removeActionListener(),
addActionListener()
writeObject
private void writeObject(ObjectOutputStream s)
throws IOException
- Writes default serializable fields to stream. Writes
a list of serializable ItemListener(s) as optional data.
The non-serializable ItemListner(s) are detected and
no attempt is made to serialize them.
- Serial Data:
- 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.
- See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
java.awt.Component.itemListenerK
editable
boolean editable
- A boolean indicating whether or not this TextComponent is editable.
It will be
true if the text componet
is editable and false if not.
- See Also:
TextComponent.isEditable()
selectionEnd
int selectionEnd
- The selection refers to the selected text, and the selectionEnd
is the end position of the selected text.
- See Also:
TextComponent.getSelectionEnd(),
setSelectionEnd()
selectionStart
int selectionStart
- The selection refers to the selected text, and the selectionStart
is the start position of the selected text.
- See Also:
TextComponent.getSelectionStart(),
setSelectionStart()
text
String text
- The value of the text.
A null value is the same as "".
- See Also:
setText(),
TextComponent.getText()
textComponentSerializedDataVersion
int textComponentSerializedDataVersion
- The textComponent SerializedDataVersion.
readObject
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException
- Read the ObjectInputStream and if it isnt null
add a listener to receive item events fired
by the TextField.
Unrecognised keys or values will be Ignored.
- See Also:
removeActionListener(),
addActionListener()
writeObject
private void writeObject(ObjectOutputStream s)
throws IOException
- Writes default serializable fields to stream. Writes
a list of serializable ItemListener(s) as optional data.
The non-serializable ItemListner(s) are detected and
no attempt is made to serialize them.
- Serial Data:
- 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.
- See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
java.awt.Component.itemListenerK
columns
int columns
- The number of columns in the TextField.
If this value is negative, an IllegalArgumentException
is thrown when trying to set the Columns.
- See Also:
setColumns(),
TextField.getColumns()
echoChar
char echoChar
- The echo character, which is used when
the user wishes to disguise the characters
typed into the text field.
To set the echoChar, echoCharIsSet must be set to
true.
The Disguises are removed if echoChar = 0
- See Also:
TextField.getEchoChar(),
setEchoChar(),
TextField.echoCharIsSet()
textFieldSerializedDataVersion
int textFieldSerializedDataVersion
- The textField Serialized Data Version.
readObject
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException
- Read the default ObjectInputStream, a possibly null listener to
receive item events fired by the Window, and a possibly null
list of child Windows.
Unrecognised keys or values will be Ignored.
- See Also:
removeActionListener(),
addActionListener()
writeObject
private void writeObject(ObjectOutputStream s)
throws IOException
- 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. Write a list of
child Windows as optional data.
- Serial Data:
- 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 an ItemListener object.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 :
ownedWindowK indicating a child Window object.
- See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
java.awt.Component.itemListenerK,
java.awt.Component.ownedWindowK
focusMgr
java.awt.FocusManager focusMgr
- The Focus for the Window in question, and its components.
- Since:
- JDK1.2
state
int state
- An Integer value representing the Window State.
- See Also:
Window.show()- Since:
- JDK1.2
warningString
String warningString
- This represents the warning message that is
to be displayed in a non secure window. ie :
a window that has a security manager installed for
which calling SecurityManager.checkTopLevelWindow()
is false. This message can be displayed anywhere in
the window.
- See Also:
Window.getWarningString()
windowSerializedDataVersion
int windowSerializedDataVersion
- The window serialized data version.
|
Package java.awt.datatransfer |