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 classMainFrameTree.MyTreeSelectionListenerprivate classMainFrameTree.TreeMouseListener
-
Field Summary
Fields Modifier and Type Field Description (package private) javax.swing.JPopupMenubranchPopupMenu(package private) javax.swing.JPopupMenubugPopupMenu(package private) javax.swing.JPanelcardPanel(package private) BugLeafNodecurrentSelectedBugLeafprivate MainFramemainFrame(package private) SorterTableColumnModelsorter(package private) javax.swing.table.JTableHeadertableheaderprivate javax.swing.JTextFieldtextFieldForPackagesToDisplay(package private) javax.swing.JTreetree(package private) javax.swing.JPaneltreePanel(package private) javax.swing.JScrollPanetreeScrollPaneprivate javax.swing.JLabelwaitStatusLabel
-
Constructor Summary
Constructors Constructor Description MainFrameTree(MainFrame mainFrame)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.JPanelbugListPanel()(package private) javax.swing.JPopupMenucreateBranchPopUpMenu()Creates the branch pop up menu that ask if the user wants to hide all the bugs in that branch.(package private) javax.swing.JPopupMenucreateBugPopupMenu()Creates popup menu for bugs on tree.(package private) voidexpandToFirstLeaf(int max)(package private) voidexpandTree(int max)Sortables[]getAvailableSortables()BugTreeModelgetBugTreeModel()BugLeafNodegetCurrentSelectedBugLeaf()(package private) SorterTableColumnModelgetSorter()Returns the SorterTableColumnModel of the MainFrame.javax.swing.table.JTableHeadergetTableheader()javax.swing.JTreegetTree()(package private) booleanleavesShown()private javax.swing.JPanelmakeNavigationPanel(java.lang.String packageSelectorLabel, javax.swing.JComponent packageSelector, javax.swing.JComponent treeHeader, javax.swing.JComponent tree)voidnewTree(javax.swing.JTree newTree, BugTreeModel newModel)(package private) voidrebuildBugTreeIfSortablesDependOnCloud()voidsetBranchPopupMenu(javax.swing.JPopupMenu branchPopupMenu)voidsetBugPopupMenu(javax.swing.JPopupMenu bugPopupMenu)voidsetFieldForPackagesToDisplayText(java.lang.String filter)(package private) voidsetSorting(boolean b)(package private) voidsetupTreeListeners()voidsetWaitStatusLabelText(java.lang.String msg)(package private) voidshowCard(MainFrame.BugCard card, java.awt.Cursor cursor, java.awt.Window window)(package private) Sortables[]sortables()(package private) java.awt.event.ActionListenertreeActionAdapter(javax.swing.ActionMap map, java.lang.String actionName)voidupdateBugTree()(package private) voidupdateFonts(float size)private voidwarnUserOfFilters()
-
-
-
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)
-
-