
system.windows.IInputElementImplementation Maven / Gradle / Ivy
Show all versions of jcoreflector_net462 Show documentation
/*
* MIT License
*
* Copyright (c) 2024 MASES s.r.l.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
/**************************************************************************************
*
* This code was generated from a template using JCOReflector v. 1.14.0.0
*
* Manual changes to this file may cause unexpected behavior in your application.
* Manual changes to this file will be overwritten if the code is regenerated.
*
*************************************************************************************/
package system.windows;
import org.mases.jcobridge.*;
import org.mases.jcobridge.netreflection.*;
import java.util.ArrayList;
// Import section
import system.windows.RoutedEvent;
import system.windows.RoutedEventArgs;
import system.windows.input.KeyboardFocusChangedEventHandler;
import system.windows.input.KeyEventHandler;
import system.windows.input.MouseButtonEventHandler;
import system.windows.input.MouseEventHandler;
import system.windows.input.MouseWheelEventHandler;
import system.windows.input.StylusButtonEventHandler;
import system.windows.input.StylusDownEventHandler;
import system.windows.input.StylusEventHandler;
import system.windows.input.StylusSystemGestureEventHandler;
import system.windows.input.TextCompositionEventHandler;
/**
* The base .NET class managing System.Windows.IInputElement, PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
*
*
* .NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.IInputElement
*
*
* Powered by JCOBridge: more info at https://www.jcobridge.com
*
* @author MASES s.r.l https://masesgroup.com
* @version 1.14.0.0
*/
public class IInputElementImplementation extends NetObject implements IInputElement {
/**
* Fully assembly qualified name: PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
*/
public static final String assemblyFullName = "PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35";
/**
* Assembly name: PresentationCore
*/
public static final String assemblyShortName = "PresentationCore";
/**
* Qualified class name: System.Windows.IInputElement
*/
public static final String className = "System.Windows.IInputElement";
static JCOBridge bridge = JCOBridgeInstance.getInstance(assemblyFullName);
/**
* The type managed from JCOBridge. See {@link JCType}
*/
public static JCType classType = createType();
static JCEnum enumInstance = null;
JCObject classInstance = null;
static JCType createType() {
try {
String classToCreate = className + ", "
+ (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
if (JCOReflector.getDebug())
JCOReflector.writeLog("Creating %s", classToCreate);
JCType typeCreated = bridge.GetType(classToCreate);
if (JCOReflector.getDebug())
JCOReflector.writeLog("Created: %s",
(typeCreated != null) ? typeCreated.toString() : "Returned null value");
return typeCreated;
} catch (JCException e) {
JCOReflector.writeLog(e);
return null;
}
}
void addReference(String ref) throws Throwable {
try {
bridge.AddReference(ref);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
/**
* Internal constructor. Use with caution
*/
public IInputElementImplementation(java.lang.Object instance) throws Throwable {
super(instance);
if (instance instanceof JCObject) {
classInstance = (JCObject) instance;
} else
throw new Exception("Cannot manage object, it is not a JCObject");
}
public String getJCOAssemblyName() {
return assemblyFullName;
}
public String getJCOClassName() {
return className;
}
public String getJCOObjectName() {
return className + ", " + (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
}
public java.lang.Object getJCOInstance() {
return classInstance;
}
public JCType getJCOType() {
return classType;
}
/**
* Try to cast the {@link IJCOBridgeReflected} instance into {@link IInputElement}, a cast assert is made to check if types are compatible.
* @param from {@link IJCOBridgeReflected} instance to be casted
* @return {@link IInputElement} instance
* @throws java.lang.Throwable in case of error during cast operation
*/
public static IInputElement ToIInputElement(IJCOBridgeReflected from) throws Throwable {
NetType.AssertCast(classType, from);
return new IInputElementImplementation(from.getJCOInstance());
}
// Methods section
public boolean CaptureMouse() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (boolean)classInstance.Invoke("CaptureMouse");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public boolean CaptureStylus() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (boolean)classInstance.Invoke("CaptureStylus");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public boolean Focus() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (boolean)classInstance.Invoke("Focus");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void RaiseEvent(RoutedEventArgs e) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("RaiseEvent", e == null ? null : e.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void ReleaseMouseCapture() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("ReleaseMouseCapture");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void ReleaseStylusCapture() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("ReleaseStylusCapture");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
// Properties section
public boolean getFocusable() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (boolean)classInstance.Get("Focusable");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setFocusable(boolean Focusable) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("Focusable", Focusable);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public boolean getIsEnabled() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (boolean)classInstance.Get("IsEnabled");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public boolean getIsKeyboardFocused() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (boolean)classInstance.Get("IsKeyboardFocused");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public boolean getIsKeyboardFocusWithin() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (boolean)classInstance.Get("IsKeyboardFocusWithin");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public boolean getIsMouseCaptured() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (boolean)classInstance.Get("IsMouseCaptured");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public boolean getIsMouseDirectlyOver() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (boolean)classInstance.Get("IsMouseDirectlyOver");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public boolean getIsMouseOver() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (boolean)classInstance.Get("IsMouseOver");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public boolean getIsStylusCaptured() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (boolean)classInstance.Get("IsStylusCaptured");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public boolean getIsStylusDirectlyOver() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (boolean)classInstance.Get("IsStylusDirectlyOver");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public boolean getIsStylusOver() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (boolean)classInstance.Get("IsStylusOver");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
// Instance Events section
public void addGotKeyboardFocus(KeyboardFocusChangedEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("GotKeyboardFocus", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeGotKeyboardFocus(KeyboardFocusChangedEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("GotKeyboardFocus", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addLostKeyboardFocus(KeyboardFocusChangedEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("LostKeyboardFocus", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeLostKeyboardFocus(KeyboardFocusChangedEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("LostKeyboardFocus", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPreviewGotKeyboardFocus(KeyboardFocusChangedEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PreviewGotKeyboardFocus", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePreviewGotKeyboardFocus(KeyboardFocusChangedEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PreviewGotKeyboardFocus", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPreviewLostKeyboardFocus(KeyboardFocusChangedEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PreviewLostKeyboardFocus", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePreviewLostKeyboardFocus(KeyboardFocusChangedEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PreviewLostKeyboardFocus", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addKeyDown(KeyEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("KeyDown", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeKeyDown(KeyEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("KeyDown", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addKeyUp(KeyEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("KeyUp", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeKeyUp(KeyEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("KeyUp", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPreviewKeyDown(KeyEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PreviewKeyDown", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePreviewKeyDown(KeyEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PreviewKeyDown", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPreviewKeyUp(KeyEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PreviewKeyUp", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePreviewKeyUp(KeyEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PreviewKeyUp", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addMouseLeftButtonDown(MouseButtonEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("MouseLeftButtonDown", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeMouseLeftButtonDown(MouseButtonEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("MouseLeftButtonDown", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addMouseLeftButtonUp(MouseButtonEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("MouseLeftButtonUp", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeMouseLeftButtonUp(MouseButtonEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("MouseLeftButtonUp", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addMouseRightButtonDown(MouseButtonEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("MouseRightButtonDown", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeMouseRightButtonDown(MouseButtonEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("MouseRightButtonDown", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addMouseRightButtonUp(MouseButtonEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("MouseRightButtonUp", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeMouseRightButtonUp(MouseButtonEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("MouseRightButtonUp", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPreviewMouseLeftButtonDown(MouseButtonEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PreviewMouseLeftButtonDown", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePreviewMouseLeftButtonDown(MouseButtonEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PreviewMouseLeftButtonDown", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPreviewMouseLeftButtonUp(MouseButtonEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PreviewMouseLeftButtonUp", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePreviewMouseLeftButtonUp(MouseButtonEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PreviewMouseLeftButtonUp", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPreviewMouseRightButtonDown(MouseButtonEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PreviewMouseRightButtonDown", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePreviewMouseRightButtonDown(MouseButtonEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PreviewMouseRightButtonDown", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPreviewMouseRightButtonUp(MouseButtonEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PreviewMouseRightButtonUp", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePreviewMouseRightButtonUp(MouseButtonEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PreviewMouseRightButtonUp", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addGotMouseCapture(MouseEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("GotMouseCapture", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeGotMouseCapture(MouseEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("GotMouseCapture", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addLostMouseCapture(MouseEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("LostMouseCapture", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeLostMouseCapture(MouseEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("LostMouseCapture", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addMouseEnter(MouseEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("MouseEnter", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeMouseEnter(MouseEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("MouseEnter", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addMouseLeave(MouseEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("MouseLeave", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeMouseLeave(MouseEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("MouseLeave", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addMouseMove(MouseEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("MouseMove", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeMouseMove(MouseEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("MouseMove", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPreviewMouseMove(MouseEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PreviewMouseMove", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePreviewMouseMove(MouseEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PreviewMouseMove", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addMouseWheel(MouseWheelEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("MouseWheel", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeMouseWheel(MouseWheelEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("MouseWheel", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPreviewMouseWheel(MouseWheelEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PreviewMouseWheel", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePreviewMouseWheel(MouseWheelEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PreviewMouseWheel", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPreviewStylusButtonDown(StylusButtonEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PreviewStylusButtonDown", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePreviewStylusButtonDown(StylusButtonEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PreviewStylusButtonDown", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPreviewStylusButtonUp(StylusButtonEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PreviewStylusButtonUp", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePreviewStylusButtonUp(StylusButtonEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PreviewStylusButtonUp", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addStylusButtonDown(StylusButtonEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("StylusButtonDown", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeStylusButtonDown(StylusButtonEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("StylusButtonDown", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addStylusButtonUp(StylusButtonEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("StylusButtonUp", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeStylusButtonUp(StylusButtonEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("StylusButtonUp", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPreviewStylusDown(StylusDownEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PreviewStylusDown", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePreviewStylusDown(StylusDownEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PreviewStylusDown", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addStylusDown(StylusDownEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("StylusDown", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeStylusDown(StylusDownEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("StylusDown", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addGotStylusCapture(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("GotStylusCapture", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeGotStylusCapture(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("GotStylusCapture", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addLostStylusCapture(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("LostStylusCapture", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeLostStylusCapture(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("LostStylusCapture", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPreviewStylusInAirMove(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PreviewStylusInAirMove", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePreviewStylusInAirMove(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PreviewStylusInAirMove", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPreviewStylusInRange(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PreviewStylusInRange", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePreviewStylusInRange(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PreviewStylusInRange", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPreviewStylusMove(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PreviewStylusMove", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePreviewStylusMove(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PreviewStylusMove", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPreviewStylusOutOfRange(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PreviewStylusOutOfRange", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePreviewStylusOutOfRange(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PreviewStylusOutOfRange", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPreviewStylusUp(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PreviewStylusUp", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePreviewStylusUp(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PreviewStylusUp", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addStylusEnter(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("StylusEnter", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeStylusEnter(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("StylusEnter", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addStylusInAirMove(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("StylusInAirMove", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeStylusInAirMove(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("StylusInAirMove", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addStylusInRange(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("StylusInRange", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeStylusInRange(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("StylusInRange", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addStylusLeave(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("StylusLeave", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeStylusLeave(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("StylusLeave", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addStylusMove(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("StylusMove", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeStylusMove(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("StylusMove", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addStylusOutOfRange(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("StylusOutOfRange", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeStylusOutOfRange(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("StylusOutOfRange", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addStylusUp(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("StylusUp", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeStylusUp(StylusEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("StylusUp", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPreviewStylusSystemGesture(StylusSystemGestureEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PreviewStylusSystemGesture", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePreviewStylusSystemGesture(StylusSystemGestureEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PreviewStylusSystemGesture", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addStylusSystemGesture(StylusSystemGestureEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("StylusSystemGesture", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeStylusSystemGesture(StylusSystemGestureEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("StylusSystemGesture", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPreviewTextInput(TextCompositionEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PreviewTextInput", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePreviewTextInput(TextCompositionEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PreviewTextInput", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addTextInput(TextCompositionEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("TextInput", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeTextInput(TextCompositionEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("TextInput", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
}