Package system.windows.forms
Class ToolStripButton
- java.lang.Object
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
,IDropTarget
public class ToolStripButton extends ToolStripItem
The base .NET class managing System.Windows.Forms.ToolStripButton, System.Windows.Forms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Forms.ToolStripButton
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: System.Windows.Forms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: System.Windows.Formsstatic java.lang.String
className
Qualified class name: System.Windows.Forms.ToolStripButtonstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description ToolStripButton()
ToolStripButton(java.lang.Object instance)
Internal constructor.ToolStripButton(java.lang.String text)
ToolStripButton(java.lang.String text, Image image)
ToolStripButton(java.lang.String text, Image image, EventHandler onClick)
ToolStripButton(java.lang.String text, Image image, EventHandler onClick, java.lang.String name)
ToolStripButton(Image image)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCheckedChanged(EventHandler handler)
void
addCheckStateChanged(EventHandler handler)
static ToolStripButton
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoToolStripButton
, a cast assert is made to check if types are compatible.boolean
getAutoToolTip()
boolean
getChecked()
boolean
getCheckOnClick()
CheckState
getCheckState()
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 objectJCType
getJCOType()
Returns the instantiated class TypeSize
GetPreferredSize(Size constrainingSize)
void
removeCheckedChanged(EventHandler handler)
void
removeCheckStateChanged(EventHandler handler)
void
setAutoToolTip(boolean AutoToolTip)
void
setChecked(boolean Checked)
void
setCheckOnClick(boolean CheckOnClick)
void
setCheckState(CheckState CheckState)
void
setJCOInstance(JCObject instance)
-
Methods inherited from class system.windows.forms.ToolStripItem
addAvailableChanged, addBackColorChanged, addClick, addCommandCanExecuteChanged, addCommandChanged, addCommandParameterChanged, addDisplayStyleChanged, addDoubleClick, addDragDrop, addDragEnter, addDragLeave, addDragOver, addEnabledChanged, addForeColorChanged, addGiveFeedback, addLocationChanged, addMouseDown, addMouseEnter, addMouseHover, addMouseLeave, addMouseMove, addMouseUp, addOwnerChanged, addPaint, addQueryAccessibilityHelp, addQueryContinueDrag, addRightToLeftChanged, addSelectedChanged, addTextChanged, addVisibleChanged, DoDragDrop, DoDragDrop, getAccessibilityObject, getAccessibleDefaultActionDescription, getAccessibleDescription, getAccessibleName, getAccessibleRole, getAlignment, getAllowDrop, getAnchor, getAutoSize, getAvailable, getBackColor, getBackgroundImage, getBackgroundImageLayout, getBounds, getCanSelect, getCommand, getCommandParameter, getContentRectangle, GetCurrentParent, getDisplayStyle, getDock, getDoubleClickEnabled, getEnabled, getFont, getForeColor, getHeight, getImage, getImageAlign, getImageIndex, getImageKey, getImageScaling, getImageTransparentColor, getIsDisposed, getIsOnDropDown, getIsOnOverflow, getMargin, getMergeAction, getMergeIndex, getName, getOverflow, getOwner, getOwnerItem, getPadding, getPlacement, getPressed, getRightToLeft, getRightToLeftAutoMirrorImage, getSelected, getSize, getTag, getText, getTextAlign, getTextDirection, getTextImageRelation, getToolTipText, getVisible, getWidth, Invalidate, Invalidate, PerformClick, removeAvailableChanged, removeBackColorChanged, removeClick, removeCommandCanExecuteChanged, removeCommandChanged, removeCommandParameterChanged, removeDisplayStyleChanged, removeDoubleClick, removeDragDrop, removeDragEnter, removeDragLeave, removeDragOver, removeEnabledChanged, removeForeColorChanged, removeGiveFeedback, removeLocationChanged, removeMouseDown, removeMouseEnter, removeMouseHover, removeMouseLeave, removeMouseMove, removeMouseUp, removeOwnerChanged, removePaint, removeQueryAccessibilityHelp, removeQueryContinueDrag, removeRightToLeftChanged, removeSelectedChanged, removeTextChanged, removeVisibleChanged, ResetBackColor, ResetDisplayStyle, ResetFont, ResetForeColor, ResetImage, ResetMargin, ResetPadding, ResetRightToLeft, ResetTextDirection, Select, setAccessibleDefaultActionDescription, setAccessibleDescription, setAccessibleName, setAccessibleRole, setAlignment, setAllowDrop, setAnchor, setAutoSize, setAvailable, setBackColor, setBackgroundImage, setBackgroundImageLayout, setCommand, setCommandParameter, setDisplayStyle, setDock, setDoubleClickEnabled, setEnabled, setFont, setForeColor, setHeight, setImage, setImageAlign, setImageIndex, setImageKey, setImageScaling, setImageTransparentColor, setMargin, setMergeAction, setMergeIndex, setName, setOverflow, setOwner, setPadding, setRightToLeft, setRightToLeftAutoMirrorImage, setSize, setTag, setText, setTextAlign, setTextDirection, setTextImageRelation, setToolTipText, setVisible, setWidth
-
Methods inherited from class system.windows.forms.BindableComponent
addBindingContextChanged, getBindingContext, getDataBindings, removeBindingContextChanged, setBindingContext
-
Methods inherited from class system.componentmodel.Component
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSite
-
Methods inherited from class system.MarshalByRefObject
GetLifetimeService, InitializeLifetimeService
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.windows.forms.IDropTarget
OnDragDrop, OnDragEnter, OnDragLeave, OnDragOver
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Windows.Forms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Windows.Forms- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Windows.Forms.ToolStripButton- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ToolStripButton
public ToolStripButton(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
ToolStripButton
public ToolStripButton() throws java.lang.Throwable, ArgumentException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, NotSupportedException, IndexOutOfRangeException, RankException, ArgumentOutOfRangeException, ArrayTypeMismatchException, InvalidCastException, LockRecursionException, OutOfMemoryException, ObjectDisposedException, AbandonedMutexException, SynchronizationLockException, InvalidEnumArgumentException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
NotSupportedException
IndexOutOfRangeException
RankException
ArgumentOutOfRangeException
ArrayTypeMismatchException
InvalidCastException
LockRecursionException
OutOfMemoryException
ObjectDisposedException
AbandonedMutexException
SynchronizationLockException
InvalidEnumArgumentException
-
ToolStripButton
public ToolStripButton(Image image) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, ArgumentException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, LockRecursionException, AbandonedMutexException, SynchronizationLockException, InvalidEnumArgumentException, ArgumentOutOfRangeException, OverflowException, InvalidOperationException, InvalidAsynchronousStateException, MulticastNotSupportedException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
ArgumentNullException
ArgumentException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
LockRecursionException
AbandonedMutexException
SynchronizationLockException
InvalidEnumArgumentException
ArgumentOutOfRangeException
OverflowException
InvalidOperationException
InvalidAsynchronousStateException
MulticastNotSupportedException
-
ToolStripButton
public ToolStripButton(java.lang.String text, Image image, EventHandler onClick, java.lang.String name) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, ArgumentNullException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, LockRecursionException, NotSupportedException, OutOfMemoryException, AbandonedMutexException, SynchronizationLockException, InvalidEnumArgumentException, ArgumentOutOfRangeException, OverflowException, InvalidOperationException, InvalidAsynchronousStateException, MulticastNotSupportedException
- Throws:
java.lang.Throwable
ArgumentException
PlatformNotSupportedException
ArgumentNullException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
LockRecursionException
NotSupportedException
OutOfMemoryException
AbandonedMutexException
SynchronizationLockException
InvalidEnumArgumentException
ArgumentOutOfRangeException
OverflowException
InvalidOperationException
InvalidAsynchronousStateException
MulticastNotSupportedException
-
ToolStripButton
public ToolStripButton(java.lang.String text, Image image, EventHandler onClick) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, ArgumentException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, LockRecursionException, AbandonedMutexException, SynchronizationLockException, InvalidEnumArgumentException, ArgumentOutOfRangeException, OverflowException, InvalidOperationException, InvalidAsynchronousStateException, MulticastNotSupportedException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
ArgumentNullException
ArgumentException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
LockRecursionException
AbandonedMutexException
SynchronizationLockException
InvalidEnumArgumentException
ArgumentOutOfRangeException
OverflowException
InvalidOperationException
InvalidAsynchronousStateException
MulticastNotSupportedException
-
ToolStripButton
public ToolStripButton(java.lang.String text, Image image) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, ArgumentException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, LockRecursionException, AbandonedMutexException, SynchronizationLockException, InvalidEnumArgumentException, ArgumentOutOfRangeException, OverflowException, InvalidOperationException, InvalidAsynchronousStateException, MulticastNotSupportedException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
ArgumentNullException
ArgumentException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
LockRecursionException
AbandonedMutexException
SynchronizationLockException
InvalidEnumArgumentException
ArgumentOutOfRangeException
OverflowException
InvalidOperationException
InvalidAsynchronousStateException
MulticastNotSupportedException
-
ToolStripButton
public ToolStripButton(java.lang.String text) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, ArgumentException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, LockRecursionException, AbandonedMutexException, SynchronizationLockException, InvalidEnumArgumentException, ArgumentOutOfRangeException, OverflowException, InvalidOperationException, InvalidAsynchronousStateException, MulticastNotSupportedException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
ArgumentNullException
ArgumentException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
LockRecursionException
AbandonedMutexException
SynchronizationLockException
InvalidEnumArgumentException
ArgumentOutOfRangeException
OverflowException
InvalidOperationException
InvalidAsynchronousStateException
MulticastNotSupportedException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIDropTarget
- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classToolStripItem
- 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 interfaceIDropTarget
- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classToolStripItem
- 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 interfaceIDropTarget
- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classToolStripItem
- 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 interfaceIDropTarget
- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classToolStripItem
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classToolStripItem
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIDropTarget
- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classToolStripItem
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static ToolStripButton cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoToolStripButton
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
ToolStripButton
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
GetPreferredSize
public Size GetPreferredSize(Size constrainingSize) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException
- Overrides:
GetPreferredSize
in classToolStripItem
- Throws:
java.lang.Throwable
ArgumentNullException
InvalidOperationException
-
getAutoToolTip
public boolean getAutoToolTip() throws java.lang.Throwable
- Overrides:
getAutoToolTip
in classToolStripItem
- Throws:
java.lang.Throwable
-
setAutoToolTip
public void setAutoToolTip(boolean AutoToolTip) throws java.lang.Throwable
- Overrides:
setAutoToolTip
in classToolStripItem
- Throws:
java.lang.Throwable
-
getChecked
public boolean getChecked() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setChecked
public void setChecked(boolean Checked) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, NotSupportedException, FormatException, InvalidEnumArgumentException
-
getCheckOnClick
public boolean getCheckOnClick() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setCheckOnClick
public void setCheckOnClick(boolean CheckOnClick) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCheckState
public CheckState getCheckState() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setCheckState
public void setCheckState(CheckState CheckState) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, InvalidOperationException, NotSupportedException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException
-
addCheckedChanged
public void addCheckedChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeCheckedChanged
public void removeCheckedChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addCheckStateChanged
public void addCheckStateChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeCheckStateChanged
public void removeCheckStateChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-