Box

A type alias: another name for the type it stands for.

Methods

MethodReturnsDescription
new(number)BoxA new box laid out along axis (BoxLayout.X_AXIS, Y_AXIS, LINE_AXIS, PAGE_AXIS).
createGlue()ComponentA filler that grows both ways.
createHorizontalGlue()ComponentA filler that grows horizontally.
createVerticalGlue()ComponentA filler that grows vertically.
createHorizontalStrut(width: number)ComponentA fixed-width filler.
createVerticalStrut(height: number)ComponentA fixed-height filler.
createRigidArea(size: Dimension)ComponentA fixed-size filler.
init(Box)()(Box) -> (): The implicit no-argument constructor: the fresh state a node of this kind starts with, and nothing more. Construction runs i…
init(Box, number)()
isInstance(any)booleanWhether obj is a Box object, a class(Box) subclass's included.

Fields

FieldTypeDescription
superJComponentClassJComponent's class table: the base class.

Returned by

MethodReturnsDescription
BoxClass.newBoxA new box laid out along axis (BoxLayout.X_AXIS, Y_AXIS, LINE_AXIS, PAGE_AXIS).

Method details

new

new: (number) -> Box

A new box laid out along axis (BoxLayout.X_AXIS, Y_AXIS, LINE_AXIS, PAGE_AXIS).

init

init: ((Box) -> ()) & ((Box, number) -> ())

(Box) -> (): The implicit no-argument constructor: the fresh state a node of this kind starts with, and nothing more. Construction runs it as every native base's super(); new does not take it.

(Box, number) -> (): A new box laid out along axis (BoxLayout.X_AXIS, Y_AXIS, LINE_AXIS, PAGE_AXIS).

isInstance

isInstance: (any) -> boolean

Whether obj is a Box object, a class(Box) subclass's included.