Descripción
Sintaxis
@JavaBean(defaultProperty="UI", description="A component that displays a set of hierarchical data as an outline.") public class JTree extends JComponent implements Scrollable, Accessible
Constructores
Campos
- ANCHOR_SELECTION_PATH_PROPERTY
- CELL_EDITOR_PROPERTY
- CELL_RENDERER_PROPERTY
- cellEditor
- cellRenderer
- editable
- EDITABLE_PROPERTY
- EXPANDS_SELECTED_PATHS_PROPERTY
- INVOKES_STOP_CELL_EDITING_PROPERTY
- invokesStopCellEditing
- LARGE_MODEL_PROPERTY
- largeModel
- LEAD_SELECTION_PATH_PROPERTY
- ROOT_VISIBLE_PROPERTY
- rootVisible
- ROW_HEIGHT_PROPERTY
- rowHeight
- SCROLLS_ON_EXPAND_PROPERTY
- scrollsOnExpand
- SELECTION_MODEL_PROPERTY
- selectionModel
- selectionRedirector
- SHOWS_ROOT_HANDLES_PROPERTY
- showsRootHandles
- TOGGLE_CLICK_COUNT_PROPERTY
- toggleClickCount
- TREE_MODEL_PROPERTY
- treeModel
- treeModelListener
- VISIBLE_ROW_COUNT_PROPERTY
- visibleRowCount
Métodos
- addSelectionInterval()
- addSelectionPath()
- addSelectionPaths()
- addSelectionRow()
- addSelectionRows()
- addTreeExpansionListener()
- addTreeSelectionListener()
- addTreeWillExpandListener()
- cancelEditing()
- clearSelection()
- clearToggledPaths()
- collapsePath()
- collapseRow()
- convertValueToText()
- createTreeModel()
- createTreeModelListener()
- expandPath()
- expandRow()
- fireTreeCollapsed()
- fireTreeExpanded()
- fireTreeWillCollapse()
- fireTreeWillExpand()
- fireValueChanged()
- getAccessibleContext()
- getAnchorSelectionPath()
- getCellEditor()
- getCellRenderer()
- getClosestPathForLocation()
- getClosestRowForLocation()
- getDefaultTreeModel()
- getDescendantToggledPaths()
- getDragEnabled()
- getDropLocation()
- getDropMode()
- getEditingPath()
- getExpandedDescendants()
- getExpandsSelectedPaths()
- getInvokesStopCellEditing()
- getLastSelectedPathComponent()
- getLeadSelectionPath()
- getLeadSelectionRow()
- getMaxSelectionRow()
- getMinSelectionRow()
- getModel()
- getNextMatch()
- getPathBetweenRows()
- getPathBounds()
- getPathForLocation()
- getPathForRow()
- getPreferredScrollableViewportSize()
- getRowBounds()
- getRowCount()
- getRowForLocation()
- getRowForPath()
- getRowHeight()
- getScrollableBlockIncrement()
- getScrollableTracksViewportHeight()
- getScrollableTracksViewportWidth()
- getScrollableUnitIncrement()
- getScrollsOnExpand()
- getSelectionCount()
- getSelectionModel()
- getSelectionPath()
- getSelectionPaths()
- getSelectionRows()
- getShowsRootHandles()
- getToggleClickCount()
- getToolTipText()
- getTreeExpansionListeners()
- getTreeSelectionListeners()
- getTreeWillExpandListeners()
- getUI()
- getUIClassID()
- getVisibleRowCount()
- hasBeenExpanded()
- isCollapsed()
- isEditable()
- isEditing()
- isExpanded()
- isFixedRowHeight()
- isLargeModel()
- isPathEditable()
- isPathSelected()
- isRootVisible()
- isRowSelected()
- isSelectionEmpty()
- isVisible()
- makeVisible()
- paramString()
- removeDescendantSelectedPaths()
- removeDescendantToggledPaths()
- removeSelectionInterval()
- removeSelectionPath()
- removeSelectionPaths()
- removeSelectionRow()
- removeSelectionRows()
- removeTreeExpansionListener()
- removeTreeSelectionListener()
- removeTreeWillExpandListener()
- scrollPathToVisible()
- scrollRowToVisible()
- setAnchorSelectionPath()
- setCellEditor()
- setCellRenderer()
- setDragEnabled()
- setDropMode()
- setEditable()
- setExpandedState()
- setExpandsSelectedPaths()
- setInvokesStopCellEditing()
- setLargeModel()
- setLeadSelectionPath()
- setModel()
- setRootVisible()
- setRowHeight()
- setScrollsOnExpand()
- setSelectionInterval()
- setSelectionModel()
- setSelectionPath()
- setSelectionPaths()
- setSelectionRow()
- setSelectionRows()
- setShowsRootHandles()
- setToggleClickCount()
- setUI()
- setVisibleRowCount()
- startEditingAtPath()
- stopEditing()
- treeDidChange()
- updateUI()
Ejemplo
Líneas de Código
Vídeos Java
Disfruta también de nuestros artículos sobre Java en formato vídeo. Aprovecha y suscribete a nuestro canal.