Class org.aswing.Box

Description

Field Index

Inherited from Container

Inherited from Component

Inherited from EventDispatcher

Method Index

new Box()
createHorizontalBox(), createHorizontalGlue(), createVerticalBox(), createVerticalGlue()

Inherited from JPanel

Inherited from Container

Inherited from Component

Inherited from EventDispatcher

Constructor Detail

Box

public function Box(axis:Number, gap:Number)

Box(axis:Number, gap:Number)
Box(axis:Number) default gap to 0. Creates a panel with a BoxLayout.

Parameters

axis(optional)the axis of layout, default is X_AXIS org.aswing.BoxLayout.X_AXIS or org.aswing.BoxLayout.Y_AXIS
gap(optional)the gap between each component, default 0

See Also

Method Detail

createHorizontalBox

static public function createHorizontalBox(gap:Number):Box

Creates and return a Horizontal Box.

Parameters

gap(optional)the gap between each component, default 0

Return

a horizontal Box.

createVerticalBox

static public function createVerticalBox(gap:Number):Box

Creates and return a Vertical Box.

Parameters

gap(optional)the gap between each component, default 0

Return

a vertical Box.

createHorizontalGlue

static public function createHorizontalGlue():Component

createVerticalGlue

static public function createVerticalGlue():Component