Click or drag to resize

JCWindowsManager Class

Class to manage windows initialization and positioning, it is the input of Initialize(JCWindowsManager)
Inheritance Hierarchy
SystemObject
  MASES.JCOBridge.C2JBridgeJCWindowsManager

Namespace: MASES.JCOBridge.C2JBridge
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.5.7.230503-5b2d77f31cef8c4bcaa15ef3ad392561e9e38aa6
Syntax
public class JCWindowsManager

The JCWindowsManager type exposes the following members.

Constructors
 NameDescription
Public methodJCWindowsManagerInitializes a new instance of the JCWindowsManager class
Top
Properties
 NameDescription
Public propertyCanManageWndProc if Java AWT/Swing window can manages message pump
Public propertyStatic memberDefault The default implementation of JCWindowsManager
Public propertyHasRemoteMeasureOverride if Java AWT/Swing window can manage https://learn.microsoft.com/en-us/dotnet/api/system.windows.interop.hwndhost.measureoverride
Public propertyHwndParent The HandleRef received from WPF/WinForms graphic system
Public propertyIsRemoteManaged if Java AWT/Swing window manages itself positioning and it is detached from WPF/WinForms graphic system
Public propertyJCGraphicContainer The IJCGraphicContainer created by GetJCGraphicContainer(IJavaObject, Boolean) or GetJCGraphicContainer(String, Boolean)
Public propertyRemoteWindow The IntPtr pointer to Java AWT/Swing window
Top
Methods
 NameDescription
Public methodDestroyWindow Invoked during destroy of WPF/WinForms container associated to Java AWT/Swing graphic object
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodStatic memberGetAncestorhttps://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getancestor
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodStatic memberGetLastErrorhttps://learn.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-getlasterror
Public methodStatic memberGetParenthttps://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getparent
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberGetWindowLongPtrhttps://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getwindowlongptra, https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getwindowlongptrw
Public methodStatic memberGetWindowRect Variant of https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getwindowrect
Public methodInitialize Invoked during initialization of WPF/WinForms container associated to Java AWT/Swing graphic object
Public methodMeasureOverride Returns the size of the window represented by the WPF/WinForms container associated to Java AWT/Swing graphic object, as requested by layout engine operations.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodOnBuildWindow Invoked during initialization of WPF/WinForms container associated to Java AWT/Swing graphic object if IsRemoteManaged is .

The standard operation done are:

- removes the styles WS_CAPTION, WS_THICKFRAME, WS_MINIMIZEBOX, WS_MAXIMIZEBOX and WS_SYSMENU

- set Java AWT/Swing window to be WS_CHILDWINDOW

- connects WPF/WinForms window and Java AWT/Swing window

Public methodOnWindowPositionChanged Invoked when a repaint of WPF/WinForms container associated to Java AWT/Swing graphic object occurs and Java AWT/Swing graphic object needs a resize
Public methodStatic memberSetParenthttps://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setparent
Public methodStatic memberSetWindowLongPtrhttps://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowlongptra, https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowlongptrw
Public methodStatic memberSetWindowPoshttps://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowpos
Public methodStatic memberShowWindowhttps://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-showwindow
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodConvertTReturn Converts a generic object
(Defined by JCOBridgeExtensions)
Public Extension MethodToNative Converts a generic input to an object manageable from the JVM
(Defined by JCOBridgeExtensions)
Top
Remarks
To be used only on Windows OSes
See Also