Table of Contents

Class JTree

Namespace
Javax.Swing
Assembly
MASES.JNet.dll
public class JTree : JComponent, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<Component>
JTree
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<Component>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Component>.IsAssignableFrom<T>()
JVMBridgeBase<Component>.Execute<T>(params T[])
JVMBridgeBase<Component>.DynBridgeClazz
JVMBridgeBase<Component>.BridgeClazz
JVMBridgeBase.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.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.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

arg0 Hashtable<object, object>

Hashtable

JTree(Vector<object>)

public JTree(Vector<object> arg0)

Parameters

arg0 Vector<object>

Vector

JTree(TreeModel)

public JTree(TreeModel arg0)

Parameters

arg0 TreeModel

TreeModel

JTree(TreeNode)

public JTree(TreeNode arg0)

Parameters

arg0 TreeNode

TreeNode

JTree(TreeNode, bool)

public JTree(TreeNode arg0, bool arg1)

Parameters

arg0 TreeNode

TreeNode

arg1 bool

bool

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

String

AnchorSelectionPath

public TreePath AnchorSelectionPath { get; set; }

Property Value

TreePath

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

CELL_EDITOR_PROPERTY

public static String CELL_EDITOR_PROPERTY { get; }

Property Value

String

CELL_RENDERER_PROPERTY

public static String CELL_RENDERER_PROPERTY { get; }

Property Value

String

CellEditor

public TreeCellEditor CellEditor { get; set; }

Property Value

TreeCellEditor

CellRenderer

public TreeCellRenderer CellRenderer { get; set; }

Property Value

TreeCellRenderer

DragEnabled

public bool DragEnabled { get; set; }

Property Value

bool

DropMode

public DropMode DropMode { get; set; }

Property Value

DropMode

EDITABLE_PROPERTY

public static String EDITABLE_PROPERTY { get; }

Property Value

String

EXPANDS_SELECTED_PATHS_PROPERTY

public static String EXPANDS_SELECTED_PATHS_PROPERTY { get; }

Property Value

String

EditingPath

public TreePath EditingPath { get; }

Property Value

TreePath

ExpandsSelectedPaths

public bool ExpandsSelectedPaths { get; set; }

Property Value

bool

GetDropLocation

public JTree.DropLocation GetDropLocation { get; }

Property Value

JTree.DropLocation

INVOKES_STOP_CELL_EDITING_PROPERTY

public static String INVOKES_STOP_CELL_EDITING_PROPERTY { get; }

Property Value

String

InvokesStopCellEditing

public bool InvokesStopCellEditing { get; set; }

Property Value

bool

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

LARGE_MODEL_PROPERTY

public static String LARGE_MODEL_PROPERTY { get; }

Property Value

String

LEAD_SELECTION_PATH_PROPERTY

public static String LEAD_SELECTION_PATH_PROPERTY { get; }

Property Value

String

LastSelectedPathComponent

public object LastSelectedPathComponent { get; }

Property Value

object

LeadSelectionPath

public TreePath LeadSelectionPath { get; set; }

Property Value

TreePath

LeadSelectionRow

public int LeadSelectionRow { get; }

Property Value

int

MaxSelectionRow

public int MaxSelectionRow { get; }

Property Value

int

MinSelectionRow

public int MinSelectionRow { get; }

Property Value

int

Model

public TreeModel Model { get; set; }

Property Value

TreeModel

PreferredScrollableViewportSize

public Dimension PreferredScrollableViewportSize { get; }

Property Value

Dimension

ROOT_VISIBLE_PROPERTY

public static String ROOT_VISIBLE_PROPERTY { get; }

Property Value

String

ROW_HEIGHT_PROPERTY

public static String ROW_HEIGHT_PROPERTY { get; }

Property Value

String

RowCount

public int RowCount { get; }

Property Value

int

RowHeight

public int RowHeight { get; set; }

Property Value

int

SCROLLS_ON_EXPAND_PROPERTY

public static String SCROLLS_ON_EXPAND_PROPERTY { get; }

Property Value

String

SELECTION_MODEL_PROPERTY

public static String SELECTION_MODEL_PROPERTY { get; }

Property Value

String

SHOWS_ROOT_HANDLES_PROPERTY

public static String SHOWS_ROOT_HANDLES_PROPERTY { get; }

Property Value

String

ScrollableTracksViewportHeight

public bool ScrollableTracksViewportHeight { get; }

Property Value

bool

ScrollableTracksViewportWidth

public bool ScrollableTracksViewportWidth { get; }

Property Value

bool

ScrollsOnExpand

public bool ScrollsOnExpand { get; set; }

Property Value

bool

SelectionCount

public int SelectionCount { get; }

Property Value

int

SelectionModel

public TreeSelectionModel SelectionModel { get; set; }

Property Value

TreeSelectionModel

SelectionPath

public TreePath SelectionPath { get; set; }

Property Value

TreePath

SelectionPaths

public TreePath[] SelectionPaths { get; set; }

Property Value

TreePath[]

SelectionRows

public int[] SelectionRows { get; set; }

Property Value

int[]

ShowsRootHandles

public bool ShowsRootHandles { get; set; }

Property Value

bool

TOGGLE_CLICK_COUNT_PROPERTY

public static String TOGGLE_CLICK_COUNT_PROPERTY { get; }

Property Value

String

TREE_MODEL_PROPERTY

public static String TREE_MODEL_PROPERTY { get; }

Property Value

String

ToggleClickCount

public int ToggleClickCount { get; set; }

Property Value

int

TreeExpansionListeners

public TreeExpansionListener[] TreeExpansionListeners { get; }

Property Value

TreeExpansionListener[]

TreeSelectionListeners

public TreeSelectionListener[] TreeSelectionListeners { get; }

Property Value

TreeSelectionListener[]

TreeWillExpandListeners

public TreeWillExpandListener[] TreeWillExpandListeners { get; }

Property Value

TreeWillExpandListener[]

VISIBLE_ROW_COUNT_PROPERTY

public static String VISIBLE_ROW_COUNT_PROPERTY { get; }

Property Value

String

VisibleRowCount

public int VisibleRowCount { get; set; }

Property Value

int

Methods

AddSelectionInterval(int, int)

public void AddSelectionInterval(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

AddSelectionPath(TreePath)

public void AddSelectionPath(TreePath arg0)

Parameters

arg0 TreePath

TreePath

AddSelectionPaths(TreePath[])

public void AddSelectionPaths(TreePath[] arg0)

Parameters

arg0 TreePath[]

TreePath

AddSelectionRow(int)

public void AddSelectionRow(int arg0)

Parameters

arg0 int

int

AddSelectionRows(int[])

public void AddSelectionRows(int[] arg0)

Parameters

arg0 int[]

int

AddTreeExpansionListener(TreeExpansionListener)

public void AddTreeExpansionListener(TreeExpansionListener arg0)

Parameters

arg0 TreeExpansionListener

TreeExpansionListener

AddTreeSelectionListener(TreeSelectionListener)

public void AddTreeSelectionListener(TreeSelectionListener arg0)

Parameters

arg0 TreeSelectionListener

TreeSelectionListener

AddTreeWillExpandListener(TreeWillExpandListener)

public void AddTreeWillExpandListener(TreeWillExpandListener arg0)

Parameters

arg0 TreeWillExpandListener

TreeWillExpandListener

CancelEditing()

public void CancelEditing()

ClearSelection()

public void ClearSelection()

CollapsePath(TreePath)

public void CollapsePath(TreePath arg0)

Parameters

arg0 TreePath

TreePath

CollapseRow(int)

public void CollapseRow(int arg0)

Parameters

arg0 int

int

ConvertValueToText(object, bool, bool, bool, int, bool)

public String ConvertValueToText(object arg0, bool arg1, bool arg2, bool arg3, int arg4, bool arg5)

Parameters

arg0 object

object

arg1 bool

bool

arg2 bool

bool

arg3 bool

bool

arg4 int

int

arg5 bool

bool

Returns

String

String

ExpandPath(TreePath)

public void ExpandPath(TreePath arg0)

Parameters

arg0 TreePath

TreePath

ExpandRow(int)

public void ExpandRow(int arg0)

Parameters

arg0 int

int

FireTreeCollapsed(TreePath)

public void FireTreeCollapsed(TreePath arg0)

Parameters

arg0 TreePath

TreePath

FireTreeExpanded(TreePath)

public void FireTreeExpanded(TreePath arg0)

Parameters

arg0 TreePath

TreePath

FireTreeWillCollapse(TreePath)

public void FireTreeWillCollapse(TreePath arg0)

Parameters

arg0 TreePath

TreePath

Exceptions

ExpandVetoException

FireTreeWillExpand(TreePath)

public void FireTreeWillExpand(TreePath arg0)

Parameters

arg0 TreePath

TreePath

Exceptions

ExpandVetoException

GetClosestPathForLocation(int, int)

public TreePath GetClosestPathForLocation(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

TreePath

TreePath

GetClosestRowForLocation(int, int)

public int GetClosestRowForLocation(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

int

int

GetExpandedDescendants(TreePath)

public Enumeration<TreePath> GetExpandedDescendants(TreePath arg0)

Parameters

arg0 TreePath

TreePath

Returns

Enumeration<TreePath>

Enumeration

GetNextMatch(String, int, Bias)

public TreePath GetNextMatch(String arg0, int arg1, Position.Bias arg2)

Parameters

arg0 String

String

arg1 int

int

arg2 Position.Bias

Position.Bias

Returns

TreePath

TreePath

GetPathBounds(TreePath)

public Rectangle GetPathBounds(TreePath arg0)

Parameters

arg0 TreePath

TreePath

Returns

Rectangle

Rectangle

GetPathForLocation(int, int)

public TreePath GetPathForLocation(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

TreePath

TreePath

GetPathForRow(int)

public TreePath GetPathForRow(int arg0)

Parameters

arg0 int

int

Returns

TreePath

TreePath

GetRowBounds(int)

public Rectangle GetRowBounds(int arg0)

Parameters

arg0 int

int

Returns

Rectangle

Rectangle

GetRowForLocation(int, int)

public int GetRowForLocation(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

int

int

GetRowForPath(TreePath)

public int GetRowForPath(TreePath arg0)

Parameters

arg0 TreePath

TreePath

Returns

int

int

GetScrollableBlockIncrement(Rectangle, int, int)

public int GetScrollableBlockIncrement(Rectangle arg0, int arg1, int arg2)

Parameters

arg0 Rectangle

Rectangle

arg1 int

int

arg2 int

int

Returns

int

int

GetScrollableUnitIncrement(Rectangle, int, int)

public int GetScrollableUnitIncrement(Rectangle arg0, int arg1, int arg2)

Parameters

arg0 Rectangle

Rectangle

arg1 int

int

arg2 int

int

Returns

int

int

HasBeenExpanded(TreePath)

public bool HasBeenExpanded(TreePath arg0)

Parameters

arg0 TreePath

TreePath

Returns

bool

bool

IsCollapsed(TreePath)

public bool IsCollapsed(TreePath arg0)

Parameters

arg0 TreePath

TreePath

Returns

bool

bool

IsCollapsed(int)

public bool IsCollapsed(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

IsEditable()

public bool IsEditable()

Returns

bool

bool

IsEditing()

public bool IsEditing()

Returns

bool

bool

IsExpanded(TreePath)

public bool IsExpanded(TreePath arg0)

Parameters

arg0 TreePath

TreePath

Returns

bool

bool

IsExpanded(int)

public bool IsExpanded(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

IsFixedRowHeight()

public bool IsFixedRowHeight()

Returns

bool

bool

IsLargeModel()

public bool IsLargeModel()

Returns

bool

bool

IsPathEditable(TreePath)

public bool IsPathEditable(TreePath arg0)

Parameters

arg0 TreePath

TreePath

Returns

bool

bool

IsPathSelected(TreePath)

public bool IsPathSelected(TreePath arg0)

Parameters

arg0 TreePath

TreePath

Returns

bool

bool

IsRootVisible()

public bool IsRootVisible()

Returns

bool

bool

IsRowSelected(int)

public bool IsRowSelected(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

IsSelectionEmpty()

public bool IsSelectionEmpty()

Returns

bool

bool

IsVisible(TreePath)

public bool IsVisible(TreePath arg0)

Parameters

arg0 TreePath

TreePath

Returns

bool

bool

MakeVisible(TreePath)

public void MakeVisible(TreePath arg0)

Parameters

arg0 TreePath

TreePath

RemoveSelectionInterval(int, int)

public void RemoveSelectionInterval(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

RemoveSelectionPath(TreePath)

public void RemoveSelectionPath(TreePath arg0)

Parameters

arg0 TreePath

TreePath

RemoveSelectionPaths(TreePath[])

public void RemoveSelectionPaths(TreePath[] arg0)

Parameters

arg0 TreePath[]

TreePath

RemoveSelectionRow(int)

public void RemoveSelectionRow(int arg0)

Parameters

arg0 int

int

RemoveSelectionRows(int[])

public void RemoveSelectionRows(int[] arg0)

Parameters

arg0 int[]

int

RemoveTreeExpansionListener(TreeExpansionListener)

public void RemoveTreeExpansionListener(TreeExpansionListener arg0)

Parameters

arg0 TreeExpansionListener

TreeExpansionListener

RemoveTreeSelectionListener(TreeSelectionListener)

public void RemoveTreeSelectionListener(TreeSelectionListener arg0)

Parameters

arg0 TreeSelectionListener

TreeSelectionListener

RemoveTreeWillExpandListener(TreeWillExpandListener)

public void RemoveTreeWillExpandListener(TreeWillExpandListener arg0)

Parameters

arg0 TreeWillExpandListener

TreeWillExpandListener

ScrollPathToVisible(TreePath)

public void ScrollPathToVisible(TreePath arg0)

Parameters

arg0 TreePath

TreePath

ScrollRowToVisible(int)

public void ScrollRowToVisible(int arg0)

Parameters

arg0 int

int

SetEditable(bool)

public void SetEditable(bool arg0)

Parameters

arg0 bool

bool

SetLargeModel(bool)

public void SetLargeModel(bool arg0)

Parameters

arg0 bool

bool

SetRootVisible(bool)

public void SetRootVisible(bool arg0)

Parameters

arg0 bool

bool

SetSelectionInterval(int, int)

public void SetSelectionInterval(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

SetSelectionRow(int)

public void SetSelectionRow(int arg0)

Parameters

arg0 int

int

SetUI(TreeUI)

public void SetUI(TreeUI arg0)

Parameters

arg0 TreeUI

TreeUI

StartEditingAtPath(TreePath)

public void StartEditingAtPath(TreePath arg0)

Parameters

arg0 TreePath

TreePath

StopEditing()

public bool StopEditing()

Returns

bool

bool

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

Accessible

implicit operator Scrollable(JTree)

Converter from JTree to Scrollable

public static implicit operator Scrollable(JTree t)

Parameters

t JTree

Returns

Scrollable