
CHAPTER 4: User-Interface Tools Window object 117
margins
Margins A Margins object describing the number of pixels between the
edges of this container and the outermost child elements. You
can specify different margins for each edge of the container. The
default value is based on the type of container, and is chosen to
match the standard Adobe user-interface guidelines.
maximumSize
Dimension A Dimension object for the largest rectangle to which the
window can be resized, used in automatic layout and resizing.
minimumSize
Dimension A Dimension object for the smallest rectangle to which the
window can be resized, used in automatic layout and resizing.
orientation
String How elements are organized within this container. Interpreted by
the layout manager for the container. The default LayoutManager
object accepts the (case-insensitive) values:
row
column
stack
The default orientation depends on the type of container. For
Window and Panel, the default is column, and for Group the
default is
row.
The allowed values for the container’s
alignChildren and its
children’s
alignment properties depend on the orientation.
parent
Object The immediate parent object of this element, a window or
container element. The value is
null for Window objects. Read
only.
preferredSize
Dimension A Dimension object for the preferred size of the window, used in
automatic layout and resizing. To set a specific value for only one
dimension, specify other dimension as -1.
properties
Object An object that contains one or more creation properties of the
container (properties used only when the element is created).
selection
Tab For a TabbedPanel only, the currently active Tab child. Setting
this property changes the active tab. The value can only be
null
when the panel has no children; setting it to
null is an error.
When the value changes, either by a user selecting a different tab,
or by a script setting the property, the onChange
callback for the
panel is called.
size
Dimension A Dimension object for the current size and location of a group or
panel element, or of the content area of a window.
spacing
Number The number of pixels separating one child element from its
adjacent sibling element. Because each container holds only a
single row or column of children, only a single spacing value is
needed for a container. The default value is based on the type of
container, and is chosen to match standard Adobe user-interface
guidelines.
Kommentare zu diesen Handbüchern