Package system.windows.input
Class KeyboardDevice
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.windows.threading.DispatcherObject
-
- system.windows.input.InputDevice
-
- system.windows.input.KeyboardDevice
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class KeyboardDevice extends InputDevice
The base .NET class managing System.Windows.Input.KeyboardDevice, PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Input.KeyboardDevice
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static java.lang.StringassemblyShortNameAssembly name: PresentationCorestatic java.lang.StringclassNameQualified class name: System.Windows.Input.KeyboardDevicestatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description KeyboardDevice()KeyboardDevice(java.lang.Object instance)Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KeyboardDevicecast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoKeyboardDevice, a cast assert is made to check if types are compatible.voidClearFocus()IInputElementFocus(IInputElement element)RestoreFocusModegetDefaultRestoreFocusMode()IInputElementgetFocusedElement()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeKeyStatesGetKeyStates(Key key)ModifierKeysgetModifiers()booleanIsKeyDown(Key key)booleanIsKeyToggled(Key key)booleanIsKeyUp(Key key)voidsetDefaultRestoreFocusMode(RestoreFocusMode DefaultRestoreFocusMode)voidsetJCOInstance(JCObject instance)-
Methods inherited from class system.windows.input.InputDevice
getActiveSource, getTarget
-
Methods inherited from class system.windows.threading.DispatcherObject
CheckAccess, getDispatcher, VerifyAccess
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: PresentationCore- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Windows.Input.KeyboardDevice- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classInputDevice- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classInputDevice- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classInputDevice- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classInputDevice- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classInputDevice
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classInputDevice- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static KeyboardDevice cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoKeyboardDevice, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
KeyboardDeviceinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
IsKeyDown
public boolean IsKeyDown(Key key) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, NotImplementedException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, FormatException, InvalidEnumArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionNotImplementedExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionInvalidEnumArgumentException
-
IsKeyToggled
public boolean IsKeyToggled(Key key) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, NotImplementedException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, FormatException, InvalidEnumArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionNotImplementedExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionInvalidEnumArgumentException
-
IsKeyUp
public boolean IsKeyUp(Key key) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, NotImplementedException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, FormatException, InvalidEnumArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionNotImplementedExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionInvalidEnumArgumentException
-
Focus
public IInputElement Focus(IInputElement element) throws java.lang.Throwable, ArgumentException, ArgumentNullException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, AbandonedMutexException, NotSupportedException, InvalidEnumArgumentException, SecurityException, IOException, Win32Exception
- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionArgumentOutOfRangeExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionAbandonedMutexExceptionNotSupportedExceptionInvalidEnumArgumentExceptionSecurityExceptionIOExceptionWin32Exception
-
GetKeyStates
public KeyStates GetKeyStates(Key key) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, NotImplementedException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, FormatException, InvalidEnumArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionNotImplementedExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionInvalidEnumArgumentException
-
ClearFocus
public void ClearFocus() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException, ArgumentException, InvalidEnumArgumentException, SecurityException, IOException, Win32Exception
-
getFocusedElement
public IInputElement getFocusedElement() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getModifiers
public ModifierKeys getModifiers() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getDefaultRestoreFocusMode
public RestoreFocusMode getDefaultRestoreFocusMode() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setDefaultRestoreFocusMode
public void setDefaultRestoreFocusMode(RestoreFocusMode DefaultRestoreFocusMode) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-