public class NotifyIcon extends Component
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Windows.Forms.NotifyIcon
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Windows.Forms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: System.Windows.Forms
|
static java.lang.String |
className
Qualified class name: System.Windows.Forms.NotifyIcon
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
NotifyIcon()
Initializes a new instance by invoking the .NET constructor.
|
NotifyIcon(IContainer container)
Initializes a new instance by invoking the .NET constructor.
|
NotifyIcon(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBalloonTipClicked(EventHandler handler)
Invokes the .NET member addBalloonTipClicked.
|
void |
addBalloonTipClosed(EventHandler handler)
Invokes the .NET member addBalloonTipClosed.
|
void |
addBalloonTipShown(EventHandler handler)
Invokes the .NET member addBalloonTipShown.
|
void |
addClick(EventHandler handler)
Invokes the .NET member addClick.
|
void |
addDoubleClick(EventHandler handler)
Invokes the .NET member addDoubleClick.
|
void |
addMouseClick(MouseEventHandler handler)
Invokes the .NET member addMouseClick.
|
void |
addMouseDoubleClick(MouseEventHandler handler)
Invokes the .NET member addMouseDoubleClick.
|
void |
addMouseDown(MouseEventHandler handler)
Invokes the .NET member addMouseDown.
|
void |
addMouseMove(MouseEventHandler handler)
Invokes the .NET member addMouseMove.
|
void |
addMouseUp(MouseEventHandler handler)
Invokes the .NET member addMouseUp.
|
static NotifyIcon |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into NotifyIcon, a cast assert is made to check if types are compatible. |
ToolTipIcon |
getBalloonTipIcon()
Gets the value of the .NET property BalloonTipIcon.
|
java.lang.String |
getBalloonTipText()
Gets the value of the .NET property BalloonTipText.
|
java.lang.String |
getBalloonTipTitle()
Gets the value of the .NET property BalloonTipTitle.
|
ContextMenuStrip |
getContextMenuStrip()
Gets the value of the .NET property ContextMenuStrip.
|
Icon |
getIcon()
Gets the value of the .NET property Icon.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
NetObject |
getTag()
Gets the value of the .NET property Tag.
|
java.lang.String |
getText()
Gets the value of the .NET property Text.
|
boolean |
getVisible()
Gets the value of the .NET property Visible.
|
void |
removeBalloonTipClicked(EventHandler handler)
Invokes the .NET member removeBalloonTipClicked.
|
void |
removeBalloonTipClosed(EventHandler handler)
Invokes the .NET member removeBalloonTipClosed.
|
void |
removeBalloonTipShown(EventHandler handler)
Invokes the .NET member removeBalloonTipShown.
|
void |
removeClick(EventHandler handler)
Invokes the .NET member removeClick.
|
void |
removeDoubleClick(EventHandler handler)
Invokes the .NET member removeDoubleClick.
|
void |
removeMouseClick(MouseEventHandler handler)
Invokes the .NET member removeMouseClick.
|
void |
removeMouseDoubleClick(MouseEventHandler handler)
Invokes the .NET member removeMouseDoubleClick.
|
void |
removeMouseDown(MouseEventHandler handler)
Invokes the .NET member removeMouseDown.
|
void |
removeMouseMove(MouseEventHandler handler)
Invokes the .NET member removeMouseMove.
|
void |
removeMouseUp(MouseEventHandler handler)
Invokes the .NET member removeMouseUp.
|
void |
setBalloonTipIcon(ToolTipIcon BalloonTipIcon)
Sets the value of the .NET property BalloonTipIcon.
|
void |
setBalloonTipText(java.lang.String BalloonTipText)
Sets the value of the .NET property BalloonTipText.
|
void |
setBalloonTipTitle(java.lang.String BalloonTipTitle)
Sets the value of the .NET property BalloonTipTitle.
|
void |
setContextMenuStrip(ContextMenuStrip ContextMenuStrip)
Sets the value of the .NET property ContextMenuStrip.
|
void |
setIcon(Icon Icon)
Sets the value of the .NET property Icon.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setTag(NetObject Tag)
Sets the value of the .NET property Tag.
|
void |
setText(java.lang.String Text)
Sets the value of the .NET property Text.
|
void |
setVisible(boolean Visible)
Sets the value of the .NET property Visible.
|
void |
ShowBalloonTip(int timeout)
Invokes the .NET member ShowBalloonTip.
|
void |
ShowBalloonTip(int timeout,
java.lang.String tipTitle,
java.lang.String tipText,
ToolTipIcon tipIcon)
Invokes the .NET member ShowBalloonTip.
|
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSiteGetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public NotifyIcon()
throws java.lang.Throwable,
InvalidOperationException,
PlatformNotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
ObjectDisposedException,
Win32Exception,
ArrayTypeMismatchException,
FormatException,
NotSupportedException,
OutOfMemoryException
java.lang.Throwable - if the .NET constructor failsInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itWin32Exception - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itFormatException - if the .NET member raises itNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic NotifyIcon(IContainer container) throws java.lang.Throwable, InvalidOperationException, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, Win32Exception, FormatException, OutOfMemoryException, ObjectDisposedException
container - the argument of type IContainerjava.lang.Throwable - if the .NET constructor failsInvalidOperationException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itWin32Exception - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic NotifyIcon(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic void addBalloonTipClicked(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void addBalloonTipClosed(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void addBalloonTipShown(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void addClick(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void addDoubleClick(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void addMouseClick(MouseEventHandler handler) throws java.lang.Throwable
handler - the argument of type MouseEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void addMouseDoubleClick(MouseEventHandler handler) throws java.lang.Throwable
handler - the argument of type MouseEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void addMouseDown(MouseEventHandler handler) throws java.lang.Throwable
handler - the argument of type MouseEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void addMouseMove(MouseEventHandler handler) throws java.lang.Throwable
handler - the argument of type MouseEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void addMouseUp(MouseEventHandler handler) throws java.lang.Throwable
handler - the argument of type MouseEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static NotifyIcon cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into NotifyIcon, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedNotifyIcon instancejava.lang.Throwable - in case of error during cast operationpublic ToolTipIcon getBalloonTipIcon() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getBalloonTipText()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getBalloonTipTitle()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic ContextMenuStrip getContextMenuStrip() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Icon getIcon() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class Componentpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class Componentpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class Componentnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class Componentpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class Componentpublic NetObject getTag() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getText()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getVisible()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void removeBalloonTipClicked(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void removeBalloonTipClosed(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void removeBalloonTipShown(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void removeClick(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void removeDoubleClick(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void removeMouseClick(MouseEventHandler handler) throws java.lang.Throwable
handler - the argument of type MouseEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void removeMouseDoubleClick(MouseEventHandler handler) throws java.lang.Throwable
handler - the argument of type MouseEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void removeMouseDown(MouseEventHandler handler) throws java.lang.Throwable
handler - the argument of type MouseEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void removeMouseMove(MouseEventHandler handler) throws java.lang.Throwable
handler - the argument of type MouseEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void removeMouseUp(MouseEventHandler handler) throws java.lang.Throwable
handler - the argument of type MouseEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setBalloonTipIcon(ToolTipIcon BalloonTipIcon) throws java.lang.Throwable, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, InvalidEnumArgumentException
BalloonTipIcon - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itpublic void setBalloonTipText(java.lang.String BalloonTipText)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException
BalloonTipText - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic void setBalloonTipTitle(java.lang.String BalloonTipTitle)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException
BalloonTipTitle - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic void setContextMenuStrip(ContextMenuStrip ContextMenuStrip) throws java.lang.Throwable
ContextMenuStrip - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setIcon(Icon Icon) throws java.lang.Throwable, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, Win32Exception, FormatException, OutOfMemoryException
Icon - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itWin32Exception - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class Componentinstance - the new underlying objectpublic void setTag(NetObject Tag) throws java.lang.Throwable
Tag - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setText(java.lang.String Text)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
Win32Exception,
FormatException,
OutOfMemoryException,
ObjectDisposedException
Text - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itWin32Exception - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void setVisible(boolean Visible)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
Win32Exception,
FormatException,
OutOfMemoryException
Visible - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itWin32Exception - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void ShowBalloonTip(int timeout)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidEnumArgumentException,
Win32Exception,
FormatException,
NotSupportedException,
OutOfMemoryException
timeout - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itWin32Exception - if the .NET member raises itFormatException - if the .NET member raises itNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void ShowBalloonTip(int timeout,
java.lang.String tipTitle,
java.lang.String tipText,
ToolTipIcon tipIcon)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidEnumArgumentException,
Win32Exception,
NotSupportedException,
IndexOutOfRangeException,
FormatException,
OutOfMemoryException
timeout - the argument of type inttipTitle - the argument of type java.lang.StringtipText - the argument of type java.lang.StringtipIcon - the argument of type ToolTipIconjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itWin32Exception - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises it