public class SIPCommTreeUI
extends javax.swing.plaf.basic.BasicTreeUI
implements java.awt.event.HierarchyListener, javax.swing.event.TreeSelectionListener
javax.swing.plaf.basic.BasicTreeUI.CellEditorHandler, javax.swing.plaf.basic.BasicTreeUI.ComponentHandler, javax.swing.plaf.basic.BasicTreeUI.FocusHandler, javax.swing.plaf.basic.BasicTreeUI.KeyHandler, javax.swing.plaf.basic.BasicTreeUI.MouseHandler, javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler, javax.swing.plaf.basic.BasicTreeUI.NodeDimensionsHandler, javax.swing.plaf.basic.BasicTreeUI.PropertyChangeHandler, javax.swing.plaf.basic.BasicTreeUI.SelectionModelPropertyChangeHandler, javax.swing.plaf.basic.BasicTreeUI.TreeCancelEditingAction, javax.swing.plaf.basic.BasicTreeUI.TreeExpansionHandler, javax.swing.plaf.basic.BasicTreeUI.TreeHomeAction, javax.swing.plaf.basic.BasicTreeUI.TreeIncrementAction, javax.swing.plaf.basic.BasicTreeUI.TreeModelHandler, javax.swing.plaf.basic.BasicTreeUI.TreePageAction, javax.swing.plaf.basic.BasicTreeUI.TreeSelectionHandler, javax.swing.plaf.basic.BasicTreeUI.TreeToggleAction, javax.swing.plaf.basic.BasicTreeUI.TreeTraverseAction
cellEditor, collapsedIcon, createdCellEditor, createdRenderer, currentCellRenderer, depthOffset, drawingCache, editingComponent, editingPath, editingRow, editorHasDifferentSize, expandedIcon, largeModel, lastSelectedRow, leftChildIndent, nodeDimensions, preferredMinSize, preferredSize, rendererPane, rightChildIndent, stopEditingInCompleteEditing, totalChildIndent, treeModel, treeSelectionModel, treeState, validCachedPreferredSize
Constructor and Description |
---|
SIPCommTreeUI() |
Modifier and Type | Method and Description |
---|---|
protected javax.swing.tree.AbstractLayoutCache |
createLayoutCache()
Creates the object responsible for managing what is expanded, as
well as the size of nodes.
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Creates the UI for the given component.
|
void |
hierarchyChanged(java.awt.event.HierarchyEvent e)
HierarchyListener's method.
|
protected void |
installDefaults()
Installs the defaults of this UI.
|
void |
installUI(javax.swing.JComponent c)
Installs this UI to the given component.
|
void |
selectionChanged(javax.swing.tree.TreePath oldPath,
javax.swing.tree.TreePath newPath)
Refreshes row sizes corresponding to the given paths.
|
protected void |
selectPathForEvent(javax.swing.tree.TreePath path,
java.awt.event.MouseEvent event)
Do not select the ShowMoreContact.
|
void |
uninstallUI(javax.swing.JComponent c)
On uninstalling the ui remove the listeners.
|
void |
valueChanged(javax.swing.event.TreeSelectionEvent e)
The TreeSelectionListener's method.
|
cancelEditing, checkForClickInExpandControl, completeEditing, completeEditing, completeUIInstall, completeUIUninstall, configureLayoutCache, createCellEditorListener, createCellRendererPane, createComponentListener, createDefaultCellEditor, createDefaultCellRenderer, createFocusListener, createKeyListener, createMouseListener, createNodeDimensions, createPropertyChangeListener, createSelectionModelPropertyChangeListener, createTreeExpansionListener, createTreeModelListener, createTreeSelectionListener, drawCentered, drawDashedHorizontalLine, drawDashedVerticalLine, ensureRowsAreVisible, getBaseline, getBaselineResizeBehavior, getCellEditor, getCellRenderer, getClosestPathForLocation, getCollapsedIcon, getDropLineRect, getEditingPath, getExpandedIcon, getHashColor, getHorizontalLegBuffer, getLastChildPath, getLeadSelectionRow, getLeftChildIndent, getMaximumSize, getMinimumSize, getModel, getPathBounds, getPathForRow, getPreferredMinSize, getPreferredSize, getPreferredSize, getRightChildIndent, getRowCount, getRowForPath, getRowHeight, getRowX, getSelectionModel, getShowsRootHandles, getVerticalLegBuffer, handleExpandControlClick, installComponents, installKeyboardActions, installListeners, isDropLine, isEditable, isEditing, isLargeModel, isLeaf, isLocationInExpandControl, isMultiSelectEvent, isRootVisible, isToggleEvent, isToggleSelectionEvent, paint, paintDropLine, paintExpandControl, paintHorizontalLine, paintHorizontalPartOfLeg, paintRow, paintVerticalLine, paintVerticalPartOfLeg, pathWasCollapsed, pathWasExpanded, prepareForUIInstall, prepareForUIUninstall, setCellEditor, setCellRenderer, setCollapsedIcon, setEditable, setExpandedIcon, setHashColor, setLargeModel, setLeftChildIndent, setModel, setPreferredMinSize, setRightChildIndent, setRootVisible, setRowHeight, setSelectionModel, setShowsRootHandles, shouldPaintExpandControl, startEditing, startEditingAtPath, stopEditing, toggleExpandState, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, updateCachedPreferredSize, updateCellEditor, updateDepthOffset, updateExpandedDescendants, updateLayoutCacheExpandedNodes, updateLeadSelectionRow, updateRenderer, updateSize
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c
- the component for which we're create an UIpublic void installUI(javax.swing.JComponent c)
installUI
in class javax.swing.plaf.basic.BasicTreeUI
c
- the component to which to install this UIpublic void uninstallUI(javax.swing.JComponent c)
uninstallUI
in class javax.swing.plaf.basic.BasicTreeUI
c
- public void hierarchyChanged(java.awt.event.HierarchyEvent e)
hierarchyChanged
in interface java.awt.event.HierarchyListener
e
- the event.public void valueChanged(javax.swing.event.TreeSelectionEvent e)
valueChanged
in interface javax.swing.event.TreeSelectionListener
e
- the event.protected void installDefaults()
installDefaults
in class javax.swing.plaf.basic.BasicTreeUI
protected javax.swing.tree.AbstractLayoutCache createLayoutCache()
createLayoutCache
in class javax.swing.plaf.basic.BasicTreeUI
protected void selectPathForEvent(javax.swing.tree.TreePath path, java.awt.event.MouseEvent event)
selectPathForEvent
in class javax.swing.plaf.basic.BasicTreeUI
path
- the TreePath to selectevent
- the MouseEvent that provoked the selectpublic void selectionChanged(javax.swing.tree.TreePath oldPath, javax.swing.tree.TreePath newPath)
oldPath
- the old selection pathnewPath
- the new selection path
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.