Frame

Extends
AwtWindow
Methods
8
Fields
6

Methods

MethodReturnsDescription
getTitle()stringThe title: exactly what the plugin set ("" until then).
setTitle(string?)()Sets the title the OS window shows, exactly as given (nil: empty).
isResizable()booleanWhether the user may resize the window.
setResizable(boolean)()Lets the user resize the window, or not.
getExtendedState()numberThe window's state: NORMAL, or ICONIFIED and the MAXIMIZED_* bits.
setExtendedState(number)()Maximizes, iconifies or restores the OS window (Frame.MAXIMIZED_BOTH, ...). On a showing frame its WindowListeners hear `windowIconifie…
init(Frame)()The implicit no-argument constructor: the fresh state a node of this kind starts with, and nothing more. Construction runs it as every nati…
isInstance(any)booleanWhether obj is a Frame object, a class(Frame) subclass's included.

Fields

FieldTypeDescription
NORMALnumberFrame.NORMAL: 0.
ICONIFIEDnumberFrame.ICONIFIED: 1.
MAXIMIZED_HORIZnumberFrame.MAXIMIZED_HORIZ: 2.
MAXIMIZED_VERTnumberFrame.MAXIMIZED_VERT: 4.
MAXIMIZED_BOTHnumberFrame.MAXIMIZED_BOTH: 6.
superAwtWindowClassAwtWindow's class table: the base class.

Method details

getTitle

getTitle: (Frame) -> string

The title: exactly what the plugin set ("" until then).

setTitle

setTitle: (Frame, string?) -> ()

Sets the title the OS window shows, exactly as given (nil: empty).

isResizable

isResizable: (Frame) -> boolean

Whether the user may resize the window.

setResizable

setResizable: (Frame, boolean) -> ()

Lets the user resize the window, or not.

getExtendedState

getExtendedState: (Frame) -> number

The window's state: NORMAL, or ICONIFIED and the MAXIMIZED_* bits.

setExtendedState

setExtendedState: (Frame, number) -> ()

Maximizes, iconifies or restores the OS window (Frame.MAXIMIZED_BOTH, ...). On a showing frame its WindowListeners hear windowIconified or windowDeiconified; a frame not showing only keeps the state; MAXIMIZED_HORIZ or MAXIMIZED_VERT alone is not taken (Windows supports neither).

init

init: (Frame) -> ()

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.

isInstance

isInstance: (any) -> boolean

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