Top Description Fields Constructors Methods
com.sun.jna.platform

public Class DesktopWindow

extends Object
Class Inheritance
Imports
java.awt.Rectangle, com.sun.jna.platform.win32.WinDef.HWND

Holds some general information about a window.
Author
Andreas "PAX" Lück, onkelpax-git[at]yahoo.de

Field Summary

Modifier and TypeField and Description
private String
private WinDef.HWND
private Rectangle
private String

Constructor Summary

AccessConstructor and Description
public
DesktopWindow(final WinDef.HWND
The associated window handle for this window.
hwnd
,
final String
The title text of the window.
title
,
final String
The full file path to the main process that created the window.
filePath
,
final Rectangle
The window's location on screen and its dimensions.
locAndSize
)

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The full file path to the main process that created the window.
getFilePath
()

public WinDef.HWND

Returns:

The associated window handle for this window.
getHWND
()

public Rectangle

Returns:

The window's location on screen and its dimensions.
getLocAndSize
()

public String

Returns:

The title text of the window.
getTitle
()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

filePathback to summary
private String filePath
hwndback to summary
private WinDef.HWND hwnd
locAndSizeback to summary
private Rectangle locAndSize
titleback to summary
private String title

Constructor Detail

DesktopWindowback to summary
public DesktopWindow(final WinDef.HWND hwnd, final String title, final String filePath, final Rectangle locAndSize)
Parameters
hwnd:WinDef.HWND

The associated window handle for this window.

title:String

The title text of the window.

filePath:String

The full file path to the main process that created the window.

locAndSize:Rectangle

The window's location on screen and its dimensions.

Method Detail

getFilePathback to summary
public String getFilePath()
Returns:String

The full file path to the main process that created the window.

getHWNDback to summary
public WinDef.HWND getHWND()
Returns:WinDef.HWND

The associated window handle for this window.

getLocAndSizeback to summary
public Rectangle getLocAndSize()
Returns:Rectangle

The window's location on screen and its dimensions.

getTitleback to summary
public String getTitle()
Returns:String

The title text of the window.