Package edu.umd.cs.findbugs.gui2
Class MainFrameTree
- java.lang.Object
-
- edu.umd.cs.findbugs.gui2.MainFrameTree
-
public class MainFrameTree extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
MainFrameTree.MyTreeSelectionListener
private class
MainFrameTree.TreeMouseListener
-
Field Summary
Fields Modifier and Type Field Description (package private) javax.swing.JPopupMenu
branchPopupMenu
(package private) javax.swing.JPopupMenu
bugPopupMenu
(package private) javax.swing.JPanel
cardPanel
(package private) BugLeafNode
currentSelectedBugLeaf
private MainFrame
mainFrame
(package private) SorterTableColumnModel
sorter
(package private) javax.swing.table.JTableHeader
tableheader
private javax.swing.JTextField
textFieldForPackagesToDisplay
(package private) javax.swing.JTree
tree
(package private) javax.swing.JPanel
treePanel
(package private) javax.swing.JScrollPane
treeScrollPane
private javax.swing.JLabel
waitStatusLabel
-
Constructor Summary
Constructors Constructor Description MainFrameTree(MainFrame mainFrame)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.JPanel
bugListPanel()
(package private) javax.swing.JPopupMenu
createBranchPopUpMenu()
Creates the branch pop up menu that ask if the user wants to hide all the bugs in that branch.(package private) javax.swing.JPopupMenu
createBugPopupMenu()
Creates popup menu for bugs on tree.(package private) void
expandToFirstLeaf(int max)
(package private) void
expandTree(int max)
Sortables[]
getAvailableSortables()
BugTreeModel
getBugTreeModel()
BugLeafNode
getCurrentSelectedBugLeaf()
(package private) SorterTableColumnModel
getSorter()
Returns the SorterTableColumnModel of the MainFrame.javax.swing.table.JTableHeader
getTableheader()
javax.swing.JTree
getTree()
(package private) boolean
leavesShown()
private javax.swing.JPanel
makeNavigationPanel(java.lang.String packageSelectorLabel, javax.swing.JComponent packageSelector, javax.swing.JComponent treeHeader, javax.swing.JComponent tree)
void
newTree(javax.swing.JTree newTree, BugTreeModel newModel)
(package private) void
rebuildBugTreeIfSortablesDependOnCloud()
void
setBranchPopupMenu(javax.swing.JPopupMenu branchPopupMenu)
void
setBugPopupMenu(javax.swing.JPopupMenu bugPopupMenu)
void
setFieldForPackagesToDisplayText(java.lang.String filter)
(package private) void
setSorting(boolean b)
(package private) void
setupTreeListeners()
void
setWaitStatusLabelText(java.lang.String msg)
(package private) void
showCard(MainFrame.BugCard card, java.awt.Cursor cursor, java.awt.Window window)
(package private) Sortables[]
sortables()
(package private) java.awt.event.ActionListener
treeActionAdapter(javax.swing.ActionMap map, java.lang.String actionName)
void
updateBugTree()
(package private) void
updateFonts(float size)
private void
warnUserOfFilters()
-
-
-
Field Detail
-
mainFrame
private final MainFrame mainFrame
-
tree
javax.swing.JTree tree
-
sorter
SorterTableColumnModel sorter
-
tableheader
javax.swing.table.JTableHeader tableheader
-
currentSelectedBugLeaf
BugLeafNode currentSelectedBugLeaf
-
treePanel
javax.swing.JPanel treePanel
-
treeScrollPane
javax.swing.JScrollPane treeScrollPane
-
bugPopupMenu
javax.swing.JPopupMenu bugPopupMenu
-
branchPopupMenu
javax.swing.JPopupMenu branchPopupMenu
-
cardPanel
javax.swing.JPanel cardPanel
-
textFieldForPackagesToDisplay
private javax.swing.JTextField textFieldForPackagesToDisplay
-
waitStatusLabel
private javax.swing.JLabel waitStatusLabel
-
-
Constructor Detail
-
MainFrameTree
public MainFrameTree(MainFrame mainFrame)
-
-
Method Detail
-
newTree
public void newTree(javax.swing.JTree newTree, BugTreeModel newModel)
-
getTree
public javax.swing.JTree getTree()
-
getBugTreeModel
public BugTreeModel getBugTreeModel()
-
getAvailableSortables
public Sortables[] getAvailableSortables()
-
getSorter
SorterTableColumnModel getSorter()
Returns the SorterTableColumnModel of the MainFrame.
-
rebuildBugTreeIfSortablesDependOnCloud
void rebuildBugTreeIfSortablesDependOnCloud()
-
updateBugTree
public void updateBugTree()
-
warnUserOfFilters
private void warnUserOfFilters()
-
createBugPopupMenu
javax.swing.JPopupMenu createBugPopupMenu()
Creates popup menu for bugs on tree.
-
createBranchPopUpMenu
javax.swing.JPopupMenu createBranchPopUpMenu()
Creates the branch pop up menu that ask if the user wants to hide all the bugs in that branch.
-
treeActionAdapter
java.awt.event.ActionListener treeActionAdapter(javax.swing.ActionMap map, java.lang.String actionName)
-
expandTree
void expandTree(int max)
-
leavesShown
boolean leavesShown()
-
expandToFirstLeaf
void expandToFirstLeaf(int max)
-
setupTreeListeners
void setupTreeListeners()
-
setSorting
void setSorting(boolean b)
-
sortables
Sortables[] sortables()
-
getCurrentSelectedBugLeaf
public BugLeafNode getCurrentSelectedBugLeaf()
-
bugListPanel
public javax.swing.JPanel bugListPanel()
-
getTableheader
public javax.swing.table.JTableHeader getTableheader()
-
setBugPopupMenu
public void setBugPopupMenu(javax.swing.JPopupMenu bugPopupMenu)
-
setBranchPopupMenu
public void setBranchPopupMenu(javax.swing.JPopupMenu branchPopupMenu)
-
updateFonts
void updateFonts(float size)
-
showCard
void showCard(MainFrame.BugCard card, java.awt.Cursor cursor, java.awt.Window window)
-
makeNavigationPanel
private javax.swing.JPanel makeNavigationPanel(java.lang.String packageSelectorLabel, javax.swing.JComponent packageSelector, javax.swing.JComponent treeHeader, javax.swing.JComponent tree)
-
setWaitStatusLabelText
public void setWaitStatusLabelText(java.lang.String msg)
-
setFieldForPackagesToDisplayText
public void setFieldForPackagesToDisplayText(java.lang.String filter)
-
-