Class JTree
public class JTree : JComponent, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<Component>JTree
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<Component>.IsAssignableFrom(IJavaType)JVMBridgeBase<Component>.IsAssignableFrom<T>()JVMBridgeBase<Component>.Execute<T>(params T[])JVMBridgeBase<Component>.DynBridgeClazzJVMBridgeBase<Component>.BridgeClazzJVMBridgeBase.RuntimeClassNameOf<T>()JVMBridgeBase.ClassNameOf<T>()JVMBridgeBase.ClassOf<T>()JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)JVMBridgeBase.MonitorEnter()JVMBridgeBase.MonitorExit()JVMBridgeBase.IsInstanceOf(IJavaType)JVMBridgeBase.IsInstanceOf<T>()JVMBridgeBase.RuntimeIsInstanceOf<T>()JVMBridgeBase.CastTo<TNewClass>()JVMBridgeBase.CastDirect<TNewClass>()JVMBridgeBase.ToString()JVMBridgeBase.GetHashCode()JVMBridgeBase.Notify()JVMBridgeBase.NotifyAll()JVMBridgeBase.Wait()JVMBridgeBase.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeListener
- Extension Methods
Constructors
JTree()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public JTree()
JTree(Hashtable<object, object>)
public JTree(Hashtable<object, object> arg0)
Parameters
JTree(Vector<object>)
public JTree(Vector<object> arg0)
Parameters
JTree(TreeModel)
public JTree(TreeModel arg0)
Parameters
JTree(TreeNode)
public JTree(TreeNode arg0)
Parameters
JTree(TreeNode, bool)
public JTree(TreeNode arg0, bool arg1)
Parameters
JTree(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
public JTree(params object[] args)
Parameters
args
object[]
Properties
ANCHOR_SELECTION_PATH_PROPERTY
public static String ANCHOR_SELECTION_PATH_PROPERTY { get; }
Property Value
AnchorSelectionPath
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#getAnchorSelectionPath() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#setAnchorSelectionPath(javax.swing.tree.TreePath)
public TreePath AnchorSelectionPath { get; set; }
Property Value
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
CELL_EDITOR_PROPERTY
public static String CELL_EDITOR_PROPERTY { get; }
Property Value
CELL_RENDERER_PROPERTY
public static String CELL_RENDERER_PROPERTY { get; }
Property Value
CellEditor
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#getCellEditor() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#setCellEditor(javax.swing.tree.TreeCellEditor)
public TreeCellEditor CellEditor { get; set; }
Property Value
CellRenderer
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#getCellRenderer() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#setCellRenderer(javax.swing.tree.TreeCellRenderer)
public TreeCellRenderer CellRenderer { get; set; }
Property Value
DragEnabled
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#getDragEnabled() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#setDragEnabled(boolean)
public bool DragEnabled { get; set; }
Property Value
DropMode
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#getDropMode() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#setDropMode(javax.swing.DropMode)
public DropMode DropMode { get; set; }
Property Value
EDITABLE_PROPERTY
public static String EDITABLE_PROPERTY { get; }
Property Value
EXPANDS_SELECTED_PATHS_PROPERTY
public static String EXPANDS_SELECTED_PATHS_PROPERTY { get; }
Property Value
EditingPath
public TreePath EditingPath { get; }
Property Value
ExpandsSelectedPaths
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#getExpandsSelectedPaths() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#setExpandsSelectedPaths(boolean)
public bool ExpandsSelectedPaths { get; set; }
Property Value
GetDropLocation
public JTree.DropLocation GetDropLocation { get; }
Property Value
INVOKES_STOP_CELL_EDITING_PROPERTY
public static String INVOKES_STOP_CELL_EDITING_PROPERTY { get; }
Property Value
InvokesStopCellEditing
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#getInvokesStopCellEditing() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#setInvokesStopCellEditing(boolean)
public bool InvokesStopCellEditing { get; set; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
LARGE_MODEL_PROPERTY
public static String LARGE_MODEL_PROPERTY { get; }
Property Value
LEAD_SELECTION_PATH_PROPERTY
public static String LEAD_SELECTION_PATH_PROPERTY { get; }
Property Value
LastSelectedPathComponent
public object LastSelectedPathComponent { get; }
Property Value
LeadSelectionPath
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#getLeadSelectionPath() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#setLeadSelectionPath(javax.swing.tree.TreePath)
public TreePath LeadSelectionPath { get; set; }
Property Value
LeadSelectionRow
public int LeadSelectionRow { get; }
Property Value
MaxSelectionRow
public int MaxSelectionRow { get; }
Property Value
MinSelectionRow
public int MinSelectionRow { get; }
Property Value
Model
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#getModel() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#setModel(javax.swing.tree.TreeModel)
public TreeModel Model { get; set; }
Property Value
PreferredScrollableViewportSize
public Dimension PreferredScrollableViewportSize { get; }
Property Value
ROOT_VISIBLE_PROPERTY
public static String ROOT_VISIBLE_PROPERTY { get; }
Property Value
ROW_HEIGHT_PROPERTY
public static String ROW_HEIGHT_PROPERTY { get; }
Property Value
RowCount
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#getRowCount()
public int RowCount { get; }
Property Value
RowHeight
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#getRowHeight() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#setRowHeight(int)
public int RowHeight { get; set; }
Property Value
SCROLLS_ON_EXPAND_PROPERTY
public static String SCROLLS_ON_EXPAND_PROPERTY { get; }
Property Value
SELECTION_MODEL_PROPERTY
public static String SELECTION_MODEL_PROPERTY { get; }
Property Value
SHOWS_ROOT_HANDLES_PROPERTY
public static String SHOWS_ROOT_HANDLES_PROPERTY { get; }
Property Value
ScrollableTracksViewportHeight
public bool ScrollableTracksViewportHeight { get; }
Property Value
ScrollableTracksViewportWidth
public bool ScrollableTracksViewportWidth { get; }
Property Value
ScrollsOnExpand
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#getScrollsOnExpand() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#setScrollsOnExpand(boolean)
public bool ScrollsOnExpand { get; set; }
Property Value
SelectionCount
public int SelectionCount { get; }
Property Value
SelectionModel
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#getSelectionModel() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#setSelectionModel(javax.swing.tree.TreeSelectionModel)
public TreeSelectionModel SelectionModel { get; set; }
Property Value
SelectionPath
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#getSelectionPath() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#setSelectionPath(javax.swing.tree.TreePath)
public TreePath SelectionPath { get; set; }
Property Value
SelectionPaths
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#getSelectionPaths() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#setSelectionPaths(javax.swing.tree.TreePath[])
public TreePath[] SelectionPaths { get; set; }
Property Value
- TreePath[]
SelectionRows
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#getSelectionRows() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#setSelectionRows(int[])
public int[] SelectionRows { get; set; }
Property Value
- int[]
ShowsRootHandles
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#getShowsRootHandles() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#setShowsRootHandles(boolean)
public bool ShowsRootHandles { get; set; }
Property Value
TOGGLE_CLICK_COUNT_PROPERTY
public static String TOGGLE_CLICK_COUNT_PROPERTY { get; }
Property Value
TREE_MODEL_PROPERTY
public static String TREE_MODEL_PROPERTY { get; }
Property Value
ToggleClickCount
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#getToggleClickCount() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#setToggleClickCount(int)
public int ToggleClickCount { get; set; }
Property Value
TreeExpansionListeners
public TreeExpansionListener[] TreeExpansionListeners { get; }
Property Value
TreeSelectionListeners
public TreeSelectionListener[] TreeSelectionListeners { get; }
Property Value
TreeWillExpandListeners
public TreeWillExpandListener[] TreeWillExpandListeners { get; }
Property Value
VISIBLE_ROW_COUNT_PROPERTY
public static String VISIBLE_ROW_COUNT_PROPERTY { get; }
Property Value
VisibleRowCount
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#getVisibleRowCount() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#setVisibleRowCount(int)
public int VisibleRowCount { get; set; }
Property Value
Methods
AddSelectionInterval(int, int)
public void AddSelectionInterval(int arg0, int arg1)
Parameters
AddSelectionPath(TreePath)
public void AddSelectionPath(TreePath arg0)
Parameters
AddSelectionPaths(TreePath[])
public void AddSelectionPaths(TreePath[] arg0)
Parameters
AddSelectionRow(int)
public void AddSelectionRow(int arg0)
Parameters
AddSelectionRows(int[])
public void AddSelectionRows(int[] arg0)
Parameters
AddTreeExpansionListener(TreeExpansionListener)
public void AddTreeExpansionListener(TreeExpansionListener arg0)
Parameters
AddTreeSelectionListener(TreeSelectionListener)
public void AddTreeSelectionListener(TreeSelectionListener arg0)
Parameters
AddTreeWillExpandListener(TreeWillExpandListener)
public void AddTreeWillExpandListener(TreeWillExpandListener arg0)
Parameters
CancelEditing()
public void CancelEditing()
ClearSelection()
public void ClearSelection()
CollapsePath(TreePath)
public void CollapsePath(TreePath arg0)
Parameters
CollapseRow(int)
public void CollapseRow(int arg0)
Parameters
ConvertValueToText(object, bool, bool, bool, int, bool)
public String ConvertValueToText(object arg0, bool arg1, bool arg2, bool arg3, int arg4, bool arg5)
Parameters
Returns
ExpandPath(TreePath)
public void ExpandPath(TreePath arg0)
Parameters
ExpandRow(int)
public void ExpandRow(int arg0)
Parameters
FireTreeCollapsed(TreePath)
public void FireTreeCollapsed(TreePath arg0)
Parameters
FireTreeExpanded(TreePath)
public void FireTreeExpanded(TreePath arg0)
Parameters
FireTreeWillCollapse(TreePath)
public void FireTreeWillCollapse(TreePath arg0)
Parameters
Exceptions
FireTreeWillExpand(TreePath)
public void FireTreeWillExpand(TreePath arg0)
Parameters
Exceptions
GetClosestPathForLocation(int, int)
public TreePath GetClosestPathForLocation(int arg0, int arg1)
Parameters
Returns
GetClosestRowForLocation(int, int)
public int GetClosestRowForLocation(int arg0, int arg1)
Parameters
Returns
GetExpandedDescendants(TreePath)
public Enumeration<TreePath> GetExpandedDescendants(TreePath arg0)
Parameters
Returns
GetNextMatch(String, int, Bias)
public TreePath GetNextMatch(String arg0, int arg1, Position.Bias arg2)
Parameters
Returns
GetPathBounds(TreePath)
public Rectangle GetPathBounds(TreePath arg0)
Parameters
Returns
GetPathForLocation(int, int)
public TreePath GetPathForLocation(int arg0, int arg1)
Parameters
Returns
GetPathForRow(int)
public TreePath GetPathForRow(int arg0)
Parameters
Returns
GetRowBounds(int)
public Rectangle GetRowBounds(int arg0)
Parameters
Returns
GetRowForLocation(int, int)
public int GetRowForLocation(int arg0, int arg1)
Parameters
Returns
GetRowForPath(TreePath)
public int GetRowForPath(TreePath arg0)
Parameters
Returns
GetScrollableBlockIncrement(Rectangle, int, int)
public int GetScrollableBlockIncrement(Rectangle arg0, int arg1, int arg2)
Parameters
Returns
GetScrollableUnitIncrement(Rectangle, int, int)
public int GetScrollableUnitIncrement(Rectangle arg0, int arg1, int arg2)
Parameters
Returns
HasBeenExpanded(TreePath)
public bool HasBeenExpanded(TreePath arg0)
Parameters
Returns
IsCollapsed(TreePath)
public bool IsCollapsed(TreePath arg0)
Parameters
Returns
IsCollapsed(int)
public bool IsCollapsed(int arg0)
Parameters
Returns
IsEditable()
public bool IsEditable()
Returns
IsEditing()
public bool IsEditing()
Returns
IsExpanded(TreePath)
public bool IsExpanded(TreePath arg0)
Parameters
Returns
IsExpanded(int)
public bool IsExpanded(int arg0)
Parameters
Returns
IsFixedRowHeight()
public bool IsFixedRowHeight()
Returns
IsLargeModel()
public bool IsLargeModel()
Returns
IsPathEditable(TreePath)
public bool IsPathEditable(TreePath arg0)
Parameters
Returns
IsPathSelected(TreePath)
public bool IsPathSelected(TreePath arg0)
Parameters
Returns
IsRootVisible()
public bool IsRootVisible()
Returns
IsRowSelected(int)
public bool IsRowSelected(int arg0)
Parameters
Returns
IsSelectionEmpty()
public bool IsSelectionEmpty()
Returns
IsVisible(TreePath)
public bool IsVisible(TreePath arg0)
Parameters
Returns
MakeVisible(TreePath)
public void MakeVisible(TreePath arg0)
Parameters
RemoveSelectionInterval(int, int)
public void RemoveSelectionInterval(int arg0, int arg1)
Parameters
RemoveSelectionPath(TreePath)
public void RemoveSelectionPath(TreePath arg0)
Parameters
RemoveSelectionPaths(TreePath[])
public void RemoveSelectionPaths(TreePath[] arg0)
Parameters
RemoveSelectionRow(int)
public void RemoveSelectionRow(int arg0)
Parameters
RemoveSelectionRows(int[])
public void RemoveSelectionRows(int[] arg0)
Parameters
RemoveTreeExpansionListener(TreeExpansionListener)
public void RemoveTreeExpansionListener(TreeExpansionListener arg0)
Parameters
RemoveTreeSelectionListener(TreeSelectionListener)
public void RemoveTreeSelectionListener(TreeSelectionListener arg0)
Parameters
RemoveTreeWillExpandListener(TreeWillExpandListener)
public void RemoveTreeWillExpandListener(TreeWillExpandListener arg0)
Parameters
ScrollPathToVisible(TreePath)
public void ScrollPathToVisible(TreePath arg0)
Parameters
ScrollRowToVisible(int)
public void ScrollRowToVisible(int arg0)
Parameters
SetEditable(bool)
public void SetEditable(bool arg0)
Parameters
SetLargeModel(bool)
public void SetLargeModel(bool arg0)
Parameters
SetRootVisible(bool)
public void SetRootVisible(bool arg0)
Parameters
SetSelectionInterval(int, int)
public void SetSelectionInterval(int arg0, int arg1)
Parameters
SetSelectionRow(int)
public void SetSelectionRow(int arg0)
Parameters
SetUI(TreeUI)
public void SetUI(TreeUI arg0)
Parameters
StartEditingAtPath(TreePath)
public void StartEditingAtPath(TreePath arg0)
Parameters
StopEditing()
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JTree.html#stopEditing()
public bool StopEditing()
Returns
TreeDidChange()
public void TreeDidChange()
Operators
implicit operator Accessible(JTree)
Converter from JTree to Accessible
public static implicit operator Accessible(JTree t)
Parameters
t
JTree
Returns
implicit operator Scrollable(JTree)
Converter from JTree to Scrollable
public static implicit operator Scrollable(JTree t)
Parameters
t
JTree