Package system.windows.controls
Class ContextMenuService
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.windows.controls.ContextMenuService
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class ContextMenuService extends NetObject
The base .NET class managing System.Windows.Controls.ContextMenuService, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Controls.ContextMenuService
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.String
assemblyFullName
Fully assembly qualified name: PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static java.lang.String
assemblyShortName
Assembly name: PresentationFrameworkstatic java.lang.String
className
Qualified class name: System.Windows.Controls.ContextMenuServicestatic org.mases.jcobridge.JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description ContextMenuService()
ContextMenuService(java.lang.Object instance)
Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
AddContextMenuClosingHandler(DependencyObject element, ContextMenuEventHandler handler)
static void
AddContextMenuOpeningHandler(DependencyObject element, ContextMenuEventHandler handler)
static ContextMenuService
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoContextMenuService
, a cast assert is made to check if types are compatible.static ContextMenu
GetContextMenu(DependencyObject element)
static boolean
GetHasDropShadow(DependencyObject element)
static double
GetHorizontalOffset(DependencyObject element)
static boolean
GetIsEnabled(DependencyObject element)
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectorg.mases.jcobridge.JCType
getJCOType()
Returns the instantiated class Typestatic PlacementMode
GetPlacement(DependencyObject element)
static Rect
GetPlacementRectangle(DependencyObject element)
static UIElement
GetPlacementTarget(DependencyObject element)
static boolean
GetShowOnDisabled(DependencyObject element)
static double
GetVerticalOffset(DependencyObject element)
static void
RemoveContextMenuClosingHandler(DependencyObject element, ContextMenuEventHandler handler)
static void
RemoveContextMenuOpeningHandler(DependencyObject element, ContextMenuEventHandler handler)
static void
SetContextMenu(DependencyObject element, ContextMenu value)
static void
SetHasDropShadow(DependencyObject element, boolean value)
static void
SetHorizontalOffset(DependencyObject element, double value)
static void
SetIsEnabled(DependencyObject element, boolean value)
void
setJCOInstance(org.mases.jcobridge.JCObject instance)
static void
SetPlacement(DependencyObject element, PlacementMode value)
static void
SetPlacementRectangle(DependencyObject element, Rect value)
static void
SetPlacementTarget(DependencyObject element, UIElement value)
static void
SetShowOnDisabled(DependencyObject element, boolean value)
static void
SetVerticalOffset(DependencyObject element, double value)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: PresentationFramework- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Windows.Controls.ContextMenuService- See Also:
- Constant Field Values
-
classType
public static org.mases.jcobridge.JCType classType
The type managed from JCOBridge. SeeJCType
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(org.mases.jcobridge.JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public org.mases.jcobridge.JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static ContextMenuService cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoContextMenuService
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
ContextMenuService
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
GetHasDropShadow
public static boolean GetHasDropShadow(DependencyObject element) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException
-
GetIsEnabled
public static boolean GetIsEnabled(DependencyObject element) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException
-
GetShowOnDisabled
public static boolean GetShowOnDisabled(DependencyObject element) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException
-
GetHorizontalOffset
public static double GetHorizontalOffset(DependencyObject element) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException
-
GetVerticalOffset
public static double GetVerticalOffset(DependencyObject element) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException
-
GetContextMenu
public static ContextMenu GetContextMenu(DependencyObject element) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException
-
GetPlacement
public static PlacementMode GetPlacement(DependencyObject element) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException
-
GetPlacementRectangle
public static Rect GetPlacementRectangle(DependencyObject element) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException
-
GetPlacementTarget
public static UIElement GetPlacementTarget(DependencyObject element) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException
-
AddContextMenuClosingHandler
public static void AddContextMenuClosingHandler(DependencyObject element, ContextMenuEventHandler handler) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException
-
AddContextMenuOpeningHandler
public static void AddContextMenuOpeningHandler(DependencyObject element, ContextMenuEventHandler handler) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException
-
RemoveContextMenuClosingHandler
public static void RemoveContextMenuClosingHandler(DependencyObject element, ContextMenuEventHandler handler) throws java.lang.Throwable, ArgumentNullException, FormatException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException
-
RemoveContextMenuOpeningHandler
public static void RemoveContextMenuOpeningHandler(DependencyObject element, ContextMenuEventHandler handler) throws java.lang.Throwable, ArgumentNullException, FormatException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException
-
SetContextMenu
public static void SetContextMenu(DependencyObject element, ContextMenu value) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException
-
SetHasDropShadow
public static void SetHasDropShadow(DependencyObject element, boolean value) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException
-
SetHorizontalOffset
public static void SetHorizontalOffset(DependencyObject element, double value) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException
-
SetIsEnabled
public static void SetIsEnabled(DependencyObject element, boolean value) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException
-
SetPlacement
public static void SetPlacement(DependencyObject element, PlacementMode value) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException
-
SetPlacementRectangle
public static void SetPlacementRectangle(DependencyObject element, Rect value) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException
-
SetPlacementTarget
public static void SetPlacementTarget(DependencyObject element, UIElement value) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException
-
SetShowOnDisabled
public static void SetShowOnDisabled(DependencyObject element, boolean value) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException
-
SetVerticalOffset
public static void SetVerticalOffset(DependencyObject element, double value) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException
-
-