public ProjectOutlineView() { getOutline().setShowHorizontalLines(true); getOutline().setShowVerticalLines(false); getOutline().setRootVisible(false); setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); setBorder(UIManager.getBorder("Nb.ScrollPane.border")); // NOI18N getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(ProjectsView.class, "ACSD_ProjectOutlineView")); // NOI18N getAccessibleContext().setAccessibleName(NbBundle.getMessage(ProjectsView.class, "ACSN_ProjectOutlineView")); // NOI18N setPopupAllowed(true); setupColumns(); setDefaultColumnSizes(); }
@Messages({ "CTL_FileTree.treeColumn.Name=File" }) public FileTreeView () { em = new ExplorerManager(); view = new OutlineView(Bundle.CTL_FileTree_treeColumn_Name()); view.getOutline().setShowHorizontalLines(true); view.getOutline().setShowVerticalLines(false); view.getOutline().setRootVisible(false); view.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); view.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); view.setPopupAllowed(false); view.getOutline().addMouseListener(this); view.getOutline().getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT ).put( KeyStroke.getKeyStroke(KeyEvent.VK_F10, KeyEvent.SHIFT_DOWN_MASK ), "org.openide.actions.PopupAction"); //NOI18N view.getOutline().getActionMap().put("org.openide.actions.PopupAction", new AbstractAction() { //NOI18N @Override public void actionPerformed(ActionEvent e) { showPopup(org.netbeans.modules.versioning.util.Utils.getPositionForPopup(view.getOutline())); } }); viewComponent = new ViewContainer(em); viewComponent.add(view, BorderLayout.CENTER); viewComponent.addAncestorListener(this); em.addPropertyChangeListener(this); }
@NbBundle.Messages("LBL_DiffView.TreeColumnLabel=Revision") public DiffTreeTable(SearchHistoryPanel master) { super(Bundle.LBL_DiffView_TreeColumnLabel()); this.master = master; getOutline().setShowHorizontalLines(true); getOutline().setShowVerticalLines(false); getOutline().setRootVisible(false); setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); setupColumns(); getOutline().setRenderDataProvider( new NoLeafIconRenderDataProvider( getOutline().getRenderDataProvider() ) ); }
resultsOutline.setDefaultRenderer(Object.class, new NodeRenderer(backColor)); resultsOutline.setShowHorizontalLines(false); resultsOutline.setShowVerticalLines(true); resultsOutline.setGridColor(TreeUtils.getDarkerColor(backColor));
resultsOutline.setDefaultRenderer(Object.class, new NodeRenderer(backColor)); resultsOutline.setShowHorizontalLines(false); resultsOutline.setShowVerticalLines(true); resultsOutline.setGridColor(TreeUtils.getDarkerColor(backColor));