Reference
ClippingWindow
, DesktopWindow
, FinderWindow
, InformationWindow
, PreferencesWindow
@Plural("windows") @Code("cwin") @Name("window") public interface Window extends Reference
Modifier and Type | Method | Description |
---|---|---|
Rectangle |
getBounds() |
The boundary rectangle for the window.
|
int |
getId() |
The unique id for this window.
|
int |
getIndex() |
The number of the window in the front-to-back layer ordering.
|
String |
getName() |
The name of the window.
|
Point |
getPosition() |
The upper left position of the window.
|
Map<String,Object> |
getProperties() |
Returns all properties for an instance of this class.
|
boolean |
isCloseable() |
Does the window have a close box?
|
boolean |
isCollapsed() |
Is the window collapsed.
|
boolean |
isFloating() |
Does the window have a title bar?
|
boolean |
isModal() |
Is the window modal?
|
boolean |
isResizable() |
Is the window resizable?
|
boolean |
isTitled() |
Does the window have a title bar?
|
boolean |
isVisible() |
Is the window visible (always true for open Finder windows)?
|
boolean |
isZoomable() |
Is the window zoomable?
|
boolean |
isZoomed() |
Is the window zoomed?
|
void |
setBounds(Rectangle bounds) |
The boundary rectangle for the window.
|
void |
setCollapsed(boolean collapsed) |
Is the window collapsed.
|
void |
setIndex(int index) |
The number of the window in the front-to-back layer ordering.
|
void |
setPosition(Point position) |
The upper left position of the window.
|
void |
setZoomed(boolean zoomed) |
Is the window zoomed?
|
cast, getApplicationReference, getObjectReference, getTypeClass, isInstanceOf
static final TypeClass CLASS
@Code("ID ") @Kind("property") @Name("id") @Type("integer") int getId()
@Code("posn") @Kind("property") @Name("position") @Type("point") Point getPosition()
@Code("posn") @Kind("property") @Name("position") @Type("point") void setPosition(Point position)
position
- new property value@Code("pbnd") @Kind("property") @Name("bounds") @Type("rectangle") Rectangle getBounds()
@Code("pbnd") @Kind("property") @Name("bounds") @Type("rectangle") void setBounds(Rectangle bounds)
bounds
- new property value@Code("ptit") @Kind("property") @Name("titled") @Type("boolean") boolean isTitled()
@Code("pnam") @Kind("property") @Name("name") @Type("text") String getName()
@Code("pidx") @Kind("property") @Name("index") @Type("integer") int getIndex()
@Code("pidx") @Kind("property") @Name("index") @Type("integer") void setIndex(int index)
index
- new property value@Code("hclb") @Kind("property") @Name("closeable") @Type("boolean") boolean isCloseable()
@Code("isfl") @Kind("property") @Name("floating") @Type("boolean") boolean isFloating()
@Code("pmod") @Kind("property") @Name("modal") @Type("boolean") boolean isModal()
@Code("prsz") @Kind("property") @Name("resizable") @Type("boolean") boolean isResizable()
@Code("iszm") @Kind("property") @Name("zoomable") @Type("boolean") boolean isZoomable()
@Code("pzum") @Kind("property") @Name("zoomed") @Type("boolean") boolean isZoomed()
@Code("pzum") @Kind("property") @Name("zoomed") @Type("boolean") void setZoomed(boolean zoomed)
zoomed
- new property value@Code("pvis") @Kind("property") @Name("visible") @Type("boolean") boolean isVisible()
@Code("wshd") @Kind("property") @Name("collapsed") @Type("boolean") boolean isCollapsed()
@Code("wshd") @Kind("property") @Name("collapsed") @Type("boolean") void setCollapsed(boolean collapsed)
collapsed
- new property value