Package system.windows.forms
Class TreeNode
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.windows.forms.TreeNode
-
- All Implemented Interfaces:
IJCOBridgeReflected,ISerializable
public class TreeNode extends MarshalByRefObject implements ISerializable
The base .NET class managing System.Windows.Forms.TreeNode, 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.TreeNode
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: System.Windows.Forms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: System.Windows.Formsstatic java.lang.StringclassNameQualified class name: System.Windows.Forms.TreeNodestatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description TreeNode()TreeNode(java.lang.Object instance)Internal constructor.TreeNode(java.lang.String text)TreeNode(java.lang.String text, int imageIndex, int selectedImageIndex)TreeNode(java.lang.String text, int imageIndex, int selectedImageIndex, TreeNode[] children)TreeNode(java.lang.String text, TreeNode[] children)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidBeginEdit()static TreeNodecast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoTreeNode, a cast assert is made to check if types are compatible.NetObjectClone()voidCollapse()voidCollapse(boolean ignoreChildren)voidEndEdit(boolean cancel)voidEnsureVisible()voidExpand()voidExpandAll()ColorgetBackColor()RectanglegetBounds()booleangetChecked()ContextMenuStripgetContextMenuStrip()TreeNodegetFirstNode()ColorgetForeColor()java.lang.StringgetFullPath()intgetImageIndex()java.lang.StringgetImageKey()intgetIndex()booleangetIsEditing()booleangetIsExpanded()booleangetIsSelected()booleangetIsVisible()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 TypeTreeNodegetLastNode()intgetLevel()java.lang.StringgetName()TreeNodegetNextNode()TreeNodegetNextVisibleNode()intGetNodeCount(boolean includeSubTrees)FontgetNodeFont()TreeNodeCollectiongetNodes()TreeNodegetParent()TreeNodegetPrevNode()TreeNodegetPrevVisibleNode()intgetSelectedImageIndex()java.lang.StringgetSelectedImageKey()intgetStateImageIndex()java.lang.StringgetStateImageKey()NetObjectgetTag()java.lang.StringgetText()java.lang.StringgetToolTipText()TreeViewgetTreeView()voidRemove()voidsetBackColor(Color BackColor)voidsetChecked(boolean Checked)voidsetContextMenuStrip(ContextMenuStrip ContextMenuStrip)voidsetForeColor(Color ForeColor)voidsetImageIndex(int ImageIndex)voidsetImageKey(java.lang.String ImageKey)voidsetJCOInstance(JCObject instance)voidsetName(java.lang.String Name)voidsetNodeFont(Font NodeFont)voidsetSelectedImageIndex(int SelectedImageIndex)voidsetSelectedImageKey(java.lang.String SelectedImageKey)voidsetStateImageIndex(int StateImageIndex)voidsetStateImageKey(java.lang.String StateImageKey)voidsetTag(NetObject Tag)voidsetText(java.lang.String Text)voidsetToolTipText(java.lang.String ToolTipText)voidToggle()-
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.runtime.serialization.ISerializable
GetObjectData
-
-
-
-
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.TreeNode- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TreeNode
public TreeNode(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
TreeNode
public TreeNode() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
TreeNode
public TreeNode(java.lang.String text, int imageIndex, int selectedImageIndex, TreeNode[] children) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, OutOfMemoryException, ArgumentNullException
-
TreeNode
public TreeNode(java.lang.String text, int imageIndex, int selectedImageIndex) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, OutOfMemoryException, CultureNotFoundException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionFormatExceptionOutOfMemoryExceptionCultureNotFoundException
-
TreeNode
public TreeNode(java.lang.String text, TreeNode[] children) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, OutOfMemoryException
-
TreeNode
public TreeNode(java.lang.String text) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Specified by:
getJCOAssemblyNamein interfaceISerializable- Overrides:
getJCOAssemblyNamein classMarshalByRefObject- 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- Specified by:
getJCOClassNamein interfaceISerializable- Overrides:
getJCOClassNamein classMarshalByRefObject- 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- Specified by:
getJCOObjectNamein interfaceISerializable- Overrides:
getJCOObjectNamein classMarshalByRefObject- 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- Specified by:
getJCOInstancein interfaceISerializable- Overrides:
getJCOInstancein classMarshalByRefObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classMarshalByRefObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Specified by:
getJCOTypein interfaceISerializable- Overrides:
getJCOTypein classMarshalByRefObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static TreeNode cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoTreeNode, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
TreeNodeinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
GetNodeCount
public int GetNodeCount(boolean includeSubTrees) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
Clone
public NetObject Clone() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, MissingMethodException, TargetInvocationException, OutOfMemoryException, RankException, ArrayTypeMismatchException, InvalidOperationException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionFormatExceptionMissingMethodExceptionTargetInvocationExceptionOutOfMemoryExceptionRankExceptionArrayTypeMismatchExceptionInvalidOperationException
-
BeginEdit
public void BeginEdit() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, Win32Exception, OutOfMemoryException
-
Collapse
public void Collapse() throws java.lang.Throwable, ObjectDisposedException, Win32Exception, ArgumentException, InvalidOperationException, OutOfMemoryException, NotSupportedException, ArgumentNullException, PlatformNotSupportedException
-
Collapse
public void Collapse(boolean ignoreChildren) throws java.lang.Throwable, ObjectDisposedException, Win32Exception, ArgumentException, InvalidOperationException, OutOfMemoryException, NotSupportedException, ArgumentNullException, PlatformNotSupportedException
-
EndEdit
public void EndEdit(boolean cancel) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
EnsureVisible
public void EnsureVisible() throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, Win32Exception, ArgumentException, InvalidOperationException, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException
-
Expand
public void Expand() throws java.lang.Throwable, ObjectDisposedException, Win32Exception, ArgumentException, PlatformNotSupportedException, InvalidOperationException, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException
-
ExpandAll
public void ExpandAll() throws java.lang.Throwable, ObjectDisposedException, Win32Exception, ArgumentException, InvalidOperationException, OutOfMemoryException, NotSupportedException- Throws:
java.lang.ThrowableObjectDisposedExceptionWin32ExceptionArgumentExceptionInvalidOperationExceptionOutOfMemoryExceptionNotSupportedException
-
Remove
public void Remove() throws java.lang.Throwable, ObjectDisposedException, Win32Exception, ArgumentException, InvalidOperationException, OutOfMemoryException, NotSupportedException, ArgumentNullException, PlatformNotSupportedException
-
Toggle
public void Toggle() throws java.lang.Throwable, ObjectDisposedException, Win32Exception, ArgumentException, PlatformNotSupportedException, InvalidOperationException, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, ArgumentNullException
-
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- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedException
-
getIsEditing
public boolean getIsEditing() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getIsExpanded
public boolean getIsExpanded() throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, Win32Exception, ArgumentException, InvalidOperationException, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException
-
getIsSelected
public boolean getIsSelected() throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, Win32Exception, ArgumentException, InvalidOperationException, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException
-
getIsVisible
public boolean getIsVisible() throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, Win32Exception, ArgumentException, InvalidOperationException, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException
-
getImageIndex
public int getImageIndex() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeException
-
setImageIndex
public void setImageIndex(int ImageIndex) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, OutOfMemoryException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFormatExceptionOutOfMemoryException
-
getIndex
public int getIndex() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getLevel
public int getLevel() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getSelectedImageIndex
public int getSelectedImageIndex() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeException
-
setSelectedImageIndex
public void setSelectedImageIndex(int SelectedImageIndex) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, OutOfMemoryException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFormatExceptionOutOfMemoryException
-
getStateImageIndex
public int getStateImageIndex() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeException
-
setStateImageIndex
public void setStateImageIndex(int StateImageIndex) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, OutOfMemoryException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFormatExceptionOutOfMemoryException
-
getBackColor
public Color getBackColor() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setBackColor
public void setBackColor(Color BackColor) throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentException, ArgumentOutOfRangeException, FormatException, NotSupportedException
-
getForeColor
public Color getForeColor() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setForeColor
public void setForeColor(Color ForeColor) throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentException, ArgumentOutOfRangeException, FormatException, NotSupportedException
-
getNodeFont
public Font getNodeFont() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setNodeFont
public void setNodeFont(Font NodeFont) throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentException, ArgumentOutOfRangeException, FormatException, NotSupportedException
-
getBounds
public Rectangle getBounds() throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, Win32Exception, ArgumentException, InvalidOperationException, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException
-
getTag
public NetObject getTag() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setTag
public void setTag(NetObject Tag) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getFullPath
public java.lang.String getFullPath() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArrayTypeMismatchException, OutOfMemoryException, InvalidOperationException
-
getImageKey
public java.lang.String getImageKey() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setImageKey
public void setImageKey(java.lang.String ImageKey) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, FormatException, InvalidOperationException, CultureNotFoundException
-
getName
public java.lang.String getName() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setName
public void setName(java.lang.String Name) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getSelectedImageKey
public java.lang.String getSelectedImageKey() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setSelectedImageKey
public void setSelectedImageKey(java.lang.String SelectedImageKey) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, FormatException, InvalidOperationException, CultureNotFoundException
-
getStateImageKey
public java.lang.String getStateImageKey() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setStateImageKey
public void setStateImageKey(java.lang.String StateImageKey) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, FormatException, InvalidOperationException, CultureNotFoundException
-
getText
public java.lang.String getText() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setText
public void setText(java.lang.String Text) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, CultureNotFoundException
-
getToolTipText
public java.lang.String getToolTipText() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setToolTipText
public void setToolTipText(java.lang.String ToolTipText) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getContextMenuStrip
public ContextMenuStrip getContextMenuStrip() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setContextMenuStrip
public void setContextMenuStrip(ContextMenuStrip ContextMenuStrip) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getFirstNode
public TreeNode getFirstNode() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getLastNode
public TreeNode getLastNode() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getNextNode
public TreeNode getNextNode() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
-
getNextVisibleNode
public TreeNode getNextVisibleNode() throws java.lang.Throwable, ObjectDisposedException, Win32Exception, ArgumentException, InvalidOperationException, OutOfMemoryException, NotSupportedException, ArgumentNullException, PlatformNotSupportedException
-
getParent
public TreeNode getParent() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getPrevNode
public TreeNode getPrevNode() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
-
getPrevVisibleNode
public TreeNode getPrevVisibleNode() throws java.lang.Throwable, ObjectDisposedException, Win32Exception, ArgumentException, InvalidOperationException, OutOfMemoryException, NotSupportedException, ArgumentNullException, PlatformNotSupportedException
-
getNodes
public TreeNodeCollection getNodes() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getTreeView
public TreeView getTreeView() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-