Package system.windows.forms.design
Class ComponentTray
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.componentmodel.Component
-
- system.windows.forms.Control
-
- system.windows.forms.ScrollableControl
-
- system.windows.forms.design.ComponentTray
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
,IExtenderProvider
,IDropTarget
public class ComponentTray extends ScrollableControl implements IExtenderProvider
The base .NET class managing System.Windows.Forms.Design.ComponentTray, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Forms.Design.ComponentTray
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.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.Designstatic java.lang.String
className
Qualified class name: System.Windows.Forms.Design.ComponentTraystatic org.mases.jcobridge.JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description ComponentTray()
ComponentTray(java.lang.Object instance)
Internal constructor.ComponentTray(IDesigner mainDesigner, IServiceProvider serviceProvider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
AddComponent(IComponent component)
static ComponentTray
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoComponentTray
, a cast assert is made to check if types are compatible.void
CreateComponentFromTool(ToolboxItem tool)
boolean
getAutoArrange()
int
getComponentCount()
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 TypePoint
GetLocation(IComponent receiver)
IComponent
GetNextComponent(IComponent component, boolean forward)
boolean
getShowLargeIcons()
Point
GetTrayLocation(IComponent receiver)
boolean
IsTrayComponent(IComponent comp)
void
RemoveComponent(IComponent component)
void
setAutoArrange(boolean AutoArrange)
void
setJCOInstance(org.mases.jcobridge.JCObject instance)
void
SetLocation(IComponent receiver, Point location)
void
setShowLargeIcons(boolean ShowLargeIcons)
void
SetTrayLocation(IComponent receiver, Point location)
-
Methods inherited from class system.windows.forms.ScrollableControl
addScroll, getAutoScroll, getAutoScrollMargin, getAutoScrollMinSize, getAutoScrollPosition, getHorizontalScroll, getVerticalScroll, removeScroll, ScrollControlIntoView, setAutoScroll, setAutoScrollMargin, SetAutoScrollMargin, setAutoScrollMinSize, setAutoScrollPosition
-
Methods inherited from class system.windows.forms.Control
addAutoSizeChanged, addBackColorChanged, addBackgroundImageChanged, addBackgroundImageLayoutChanged, addBindingContextChanged, addCausesValidationChanged, addChangeUICues, addClick, addClientSizeChanged, addContextMenuChanged, addContextMenuStripChanged, addControlAdded, addControlRemoved, addCursorChanged, addDockChanged, addDoubleClick, addDpiChangedAfterParent, addDpiChangedBeforeParent, addDragDrop, addDragEnter, addDragLeave, addDragOver, addEnabledChanged, addEnter, addFontChanged, addForeColorChanged, addGiveFeedback, addGotFocus, addHandleCreated, addHandleDestroyed, addHelpRequested, addImeModeChanged, addInvalidated, addKeyDown, addKeyPress, addKeyUp, addLayout, addLeave, addLocationChanged, addLostFocus, addMarginChanged, addMouseCaptureChanged, addMouseClick, addMouseDoubleClick, addMouseDown, addMouseEnter, addMouseHover, addMouseLeave, addMouseMove, addMouseUp, addMouseWheel, addMove, addPaddingChanged, addPaint, addParentChanged, addPreviewKeyDown, addQueryAccessibilityHelp, addQueryContinueDrag, addRegionChanged, addResize, addRightToLeftChanged, addSizeChanged, addStyleChanged, addSystemColorsChanged, addTabIndexChanged, addTabStopChanged, addTextChanged, addValidated, addValidating, addVisibleChanged, BringToFront, Contains, CreateControl, CreateGraphics, DoDragDrop, DrawToBitmap, EndInvoke, FindForm, Focus, getAccessibilityObject, getAccessibleDefaultActionDescription, getAccessibleDescription, getAccessibleName, getAccessibleRole, getAllowDrop, getAnchor, getAutoScrollOffset, getAutoSize, getBackColor, getBackgroundImage, getBackgroundImageLayout, getBindingContext, getBottom, getBounds, getCanFocus, getCanSelect, getCapture, getCausesValidation, getCheckForIllegalCrossThreadCalls, GetChildAtPoint, GetChildAtPoint, getClientRectangle, getClientSize, getCompanyName, GetContainerControl, getContainsFocus, getContextMenu, getContextMenuStrip, getCreated, getCursor, getDataBindings, getDefaultBackColor, getDefaultFont, getDefaultForeColor, getDeviceDpi, getDisplayRectangle, getDisposing, getDock, getEnabled, getFocused, getFont, getForeColor, getHasChildren, getHeight, getImeMode, getInvokeRequired, getIsAccessible, getIsDisposed, getIsHandleCreated, getIsMirrored, getLayoutEngine, getLeft, getLocation, getMargin, getMaximumSize, getMinimumSize, getModifierKeys, getMouseButtons, getMousePosition, getName, GetNextControl, getPadding, getParent, getPreferredSize, GetPreferredSize, getProductName, getProductVersion, getRecreatingHandle, getRegion, getRight, getRightToLeft, getSize, getTabIndex, getTabStop, getTag, getText, getTop, getTopLevelControl, getUseWaitCursor, getVisible, getWidth, getWindowTarget, Hide, Invalidate, Invalidate, Invalidate, Invalidate, Invalidate, Invalidate, IsKeyLocked, IsMnemonic, LogicalToDeviceUnits, LogicalToDeviceUnits, PerformLayout, PerformLayout, PointToClient, PointToScreen, PreProcessControlMessage, PreProcessMessage, RectangleToClient, RectangleToScreen, Refresh, removeAutoSizeChanged, removeBackColorChanged, removeBackgroundImageChanged, removeBackgroundImageLayoutChanged, removeBindingContextChanged, removeCausesValidationChanged, removeChangeUICues, removeClick, removeClientSizeChanged, removeContextMenuChanged, removeContextMenuStripChanged, removeControlAdded, removeControlRemoved, removeCursorChanged, removeDockChanged, removeDoubleClick, removeDpiChangedAfterParent, removeDpiChangedBeforeParent, removeDragDrop, removeDragEnter, removeDragLeave, removeDragOver, removeEnabledChanged, removeEnter, removeFontChanged, removeForeColorChanged, removeGiveFeedback, removeGotFocus, removeHandleCreated, removeHandleDestroyed, removeHelpRequested, removeImeModeChanged, removeInvalidated, removeKeyDown, removeKeyPress, removeKeyUp, removeLayout, removeLeave, removeLocationChanged, removeLostFocus, removeMarginChanged, removeMouseCaptureChanged, removeMouseClick, removeMouseDoubleClick, removeMouseDown, removeMouseEnter, removeMouseHover, removeMouseLeave, removeMouseMove, removeMouseUp, removeMouseWheel, removeMove, removePaddingChanged, removePaint, removeParentChanged, removePreviewKeyDown, removeQueryAccessibilityHelp, removeQueryContinueDrag, removeRegionChanged, removeResize, removeRightToLeftChanged, removeSizeChanged, removeStyleChanged, removeSystemColorsChanged, removeTabIndexChanged, removeTabStopChanged, removeTextChanged, removeValidated, removeValidating, removeVisibleChanged, ResetBackColor, ResetBindings, ResetCursor, ResetFont, ResetForeColor, ResetImeMode, ResetRightToLeft, ResetText, ResumeLayout, ResumeLayout, Scale, Scale, Scale, ScaleBitmapLogicalToDevice, Select, SelectNextControl, SendToBack, setAccessibleDefaultActionDescription, setAccessibleDescription, setAccessibleName, setAccessibleRole, setAllowDrop, setAnchor, setAutoScrollOffset, setAutoSize, setBackColor, setBackgroundImage, setBackgroundImageLayout, setBindingContext, setBounds, SetBounds, SetBounds, setCapture, setCausesValidation, setCheckForIllegalCrossThreadCalls, setClientSize, setContextMenu, setContextMenuStrip, setCursor, setDock, setEnabled, setFont, setForeColor, setHeight, setImeMode, setIsAccessible, setLeft, setLocation, setMargin, setMaximumSize, setMinimumSize, setName, setPadding, setParent, setRegion, setRightToLeft, setSize, setTabIndex, setTabStop, setTag, setText, setTop, setUseWaitCursor, setVisible, setWidth, setWindowTarget, Show, SuspendLayout, Update
-
Methods inherited from class system.componentmodel.Component
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSite
-
Methods inherited from class system.MarshalByRefObject
CreateObjRef, 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
-
Methods inherited from interface system.componentmodel.IExtenderProvider
CanExtend
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Design- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Windows.Forms.Design.ComponentTray- See Also:
- Constant Field Values
-
classType
public static org.mases.jcobridge.JCType classType
The type managed from JCOBridge. SeeJCType
-
-
Constructor Detail
-
ComponentTray
public ComponentTray(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
ComponentTray
public ComponentTray() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ComponentTray
public ComponentTray(IDesigner mainDesigner, IServiceProvider serviceProvider) throws java.lang.Throwable, ArgumentNullException, ConfigurationErrorsException, ArgumentException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, MissingManifestResourceException, Win32Exception, ObjectDisposedException, OutOfMemoryException, SecurityException, ThreadStateException, IndexOutOfRangeException, RankException, InvalidAsynchronousStateException, MemberAccessException, PathTooLongException, ExternalException
- Throws:
java.lang.Throwable
ArgumentNullException
ConfigurationErrorsException
ArgumentException
CultureNotFoundException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
MissingManifestResourceException
Win32Exception
ObjectDisposedException
OutOfMemoryException
SecurityException
ThreadStateException
IndexOutOfRangeException
RankException
InvalidAsynchronousStateException
MemberAccessException
PathTooLongException
ExternalException
-
-
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 interfaceIExtenderProvider
- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classScrollableControl
- 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 interfaceIExtenderProvider
- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classScrollableControl
- 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 interfaceIExtenderProvider
- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classScrollableControl
- 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 interfaceIExtenderProvider
- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classScrollableControl
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(org.mases.jcobridge.JCObject instance)
- Overrides:
setJCOInstance
in classScrollableControl
-
getJCOType
public org.mases.jcobridge.JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIDropTarget
- Specified by:
getJCOType
in interfaceIExtenderProvider
- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classScrollableControl
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static ComponentTray cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoComponentTray
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
ComponentTray
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
IsTrayComponent
public boolean IsTrayComponent(IComponent comp) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, ConfigurationException, ConfigurationErrorsException, FormatException, OverflowException, IndexOutOfRangeException
-
GetNextComponent
public IComponent GetNextComponent(IComponent component, boolean forward) throws java.lang.Throwable, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
-
GetLocation
public Point GetLocation(IComponent receiver) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, TypeLoadException, SecurityException, MissingMethodException, TargetInvocationException, IndexOutOfRangeException, CultureNotFoundException, NullReferenceException, ConfigurationException, ConfigurationErrorsException, OverflowException, MissingManifestResourceException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
InvalidOperationException
TypeLoadException
SecurityException
MissingMethodException
TargetInvocationException
IndexOutOfRangeException
CultureNotFoundException
NullReferenceException
ConfigurationException
ConfigurationErrorsException
OverflowException
MissingManifestResourceException
-
GetTrayLocation
public Point GetTrayLocation(IComponent receiver) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, ConfigurationException, ConfigurationErrorsException, FormatException, OverflowException, IndexOutOfRangeException
-
AddComponent
public void AddComponent(IComponent component) throws java.lang.Throwable, ArgumentNullException, ArgumentException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, NotSupportedException, ConfigurationErrorsException, CultureNotFoundException, Win32Exception, OutOfMemoryException, SecurityException, ThreadStateException, MemberAccessException, MulticastNotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, ExternalException, RankException, InvalidAsynchronousStateException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
MissingManifestResourceException
NotImplementedException
ObjectDisposedException
InvalidOperationException
ArgumentOutOfRangeException
IndexOutOfRangeException
NotSupportedException
ConfigurationErrorsException
CultureNotFoundException
Win32Exception
OutOfMemoryException
SecurityException
ThreadStateException
MemberAccessException
MulticastNotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
ExternalException
RankException
InvalidAsynchronousStateException
-
CreateComponentFromTool
public void CreateComponentFromTool(ToolboxItem tool) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, SecurityException, ObjectDisposedException, MissingManifestResourceException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, NullReferenceException, Win32Exception, OutOfMemoryException, NotImplementedException, RankException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
InvalidOperationException
SecurityException
ObjectDisposedException
MissingManifestResourceException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
NullReferenceException
Win32Exception
OutOfMemoryException
NotImplementedException
RankException
-
RemoveComponent
public void RemoveComponent(IComponent component) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, ConfigurationException, ConfigurationErrorsException, FormatException, OverflowException, IndexOutOfRangeException, ObjectDisposedException, AbandonedMutexException, InvalidOperationException, Win32Exception, NotSupportedException, RankException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
ConfigurationException
ConfigurationErrorsException
FormatException
OverflowException
IndexOutOfRangeException
ObjectDisposedException
AbandonedMutexException
InvalidOperationException
Win32Exception
NotSupportedException
RankException
-
SetLocation
public void SetLocation(IComponent receiver, Point location) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ConfigurationException, ConfigurationErrorsException, OverflowException, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, IndexOutOfRangeException, Win32Exception, NotSupportedException, TypeLoadException, SecurityException, CultureNotFoundException, NullReferenceException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ConfigurationException
ConfigurationErrorsException
OverflowException
ArgumentNullException
MissingManifestResourceException
InvalidOperationException
IndexOutOfRangeException
Win32Exception
NotSupportedException
TypeLoadException
SecurityException
CultureNotFoundException
NullReferenceException
-
SetTrayLocation
public void SetTrayLocation(IComponent receiver, Point location) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, ConfigurationException, ConfigurationErrorsException, FormatException, OverflowException, IndexOutOfRangeException, Win32Exception, InvalidOperationException, ObjectDisposedException, NotSupportedException
-
getAutoArrange
public boolean getAutoArrange() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setAutoArrange
public void setAutoArrange(boolean AutoArrange) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException, RankException, InvalidOperationException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, IndexOutOfRangeException, Win32Exception, NotSupportedException, SecurityException, NullReferenceException, OutOfMemoryException, InvalidAsynchronousStateException, CultureNotFoundException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
ArgumentNullException
RankException
InvalidOperationException
MissingManifestResourceException
NotImplementedException
ObjectDisposedException
IndexOutOfRangeException
Win32Exception
NotSupportedException
SecurityException
NullReferenceException
OutOfMemoryException
InvalidAsynchronousStateException
CultureNotFoundException
-
getShowLargeIcons
public boolean getShowLargeIcons() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setShowLargeIcons
public void setShowLargeIcons(boolean ShowLargeIcons) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, Win32Exception, NotSupportedException, SecurityException, NullReferenceException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
InvalidOperationException
ArgumentException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
Win32Exception
NotSupportedException
SecurityException
NullReferenceException
OutOfMemoryException
-
getComponentCount
public int getComponentCount() throws java.lang.Throwable, ArgumentNullException, FormatException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
FormatException
ArgumentOutOfRangeException
-
-