projectPane = new OutlineView(); hierarchyPane = new BeanTreeView(); jScrollPane1 = new javax.swing.JScrollPane();
type = new javax.swing.JComboBox(); save = new javax.swing.JButton(); stepsPane = new OutlineView(); jLabel7 = new javax.swing.JLabel();
public ToolTipView() { final OutlineView ov = new OutlineView(); ov.setPropertyColumns("value", "Value"); //NOI18N ov.getOutline().getColumnModel().getColumn(0).setHeaderValue("Name"); //NOI18N ov.getOutline().setRootVisible(true); ov.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); setBorder(BorderFactory.createCompoundBorder( BorderFactory.createLineBorder(getForeground()), BorderFactory.createEmptyBorder(0, 0, 0, 0))); setLayout(new BorderLayout()); add(ov, BorderLayout.CENTER); }
@Override public void addNotify() { super.addNotify(); if (outlineView == null) { outlineView = new OutlineView(Bundle.CTL_FoundModes()); outlineView.getOutline().setRootVisible(false); tree.add(outlineView); outlineView.setDefaultActionAllowed(false); outlineView.setVisible(false); tree.setMinimumSize(outlineView.getPreferredSize()); } }
public CreateSiteTemplate(FileObject root, FileObject externalSiteRoot, WizardPanel wp) { this.root = root; this.manager = new ExplorerManager(); this.wp = wp; try { if (externalSiteRoot != null) { ExternalSiteRootNode externalSiteRootNode = new ExternalSiteRootNode(DataObject.find(externalSiteRoot).getNodeDelegate(), externalSiteRoot.isFolder()); manager.setRootContext(new OurFilteredNode(DataObject.find(root).getNodeDelegate(), externalSiteRootNode)); } else { manager.setRootContext(new OurFilteredNode(DataObject.find(root).getNodeDelegate(), root.isFolder())); } } catch (DataObjectNotFoundException ex) { Exceptions.printStackTrace(ex); } initComponents(); tree = new OutlineView(); tree.setTreeSortable(false); placeholder.setLayout(new BorderLayout()); placeholder.add(tree, BorderLayout.CENTER); nameTextField.getDocument().addDocumentListener(this); fileTextField.getDocument().addDocumentListener(this); fileTextField.setText(new File(System.getProperty("user.home")).getAbsolutePath()); // NOI18N }
public void jbuttonActionPerformance(ActionEvent ev){ TopComponent findTopComponent = WindowManager.getDefault().findTopComponent("OutlineTopComponent"); // TODO add your handling code here: findTopComponent.setVisible(false); findTopComponent.removeAll(); findTopComponent.setLayout(new BorderLayout()); OutlineView myView2 = new OutlineView("Filename"); Outline outline2 = myView2.getOutline(); findTopComponent.add(myView2, BorderLayout.CENTER); findTopComponent.setVisible(true); findTopComponent.open();findTopComponent.requestActive(); }
private void initView() { setLayout(new BorderLayout()); outlineView = new OutlineView(nodesColumnName); outlineView.setPropertyColumns(COLUMN_NAMES); final Outline outline = outlineView.getOutline(); outline.setRootVisible(false); DefaultTableCellRenderer decimalTableCellRenderer = new StringDecimalFormatRenderer(); outline.setDefaultRenderer(Double.class, decimalTableCellRenderer); outline.setDefaultRenderer(Float.class, decimalTableCellRenderer); outline.setDefaultRenderer(Node.Property.class, new MetadataOutlineCellRenderer()); final TableColumnModel columnModel = outline.getColumnModel(); columnModel.getColumn(0).setCellRenderer(new MetadataOutlineCellRenderer()); final int[] columnWidths = COLUMN_WIDTHS; for (int i = 0; i < columnModel.getColumnCount(); i++) { columnModel.getColumn(i).setPreferredWidth(columnWidths[i]); } add(outlineView, BorderLayout.CENTER); }
WindowManager.getDefault().invokeWhenUIReady(new Runnable() { @Override public void run() { RequestProcessor.getDefault().post(new Runnable() { @Override public void run() { //We must do this in the awt thread SwingUtilities.invokeLater(new Runnable() { @Override public void run() { TopComponent findTopComponent = WindowManager.getDefault().findTopComponent(PROJECT_LOGICAL_TAB_ID); // TODO add your handling code here: findTopComponent.setVisible(false); findTopComponent.removeAll(); findTopComponent.setLayout(new BorderLayout()); OutlineView myView2 = new OutlineView("Filename"); Outline outline2 = myView2.getOutline(); outline2.setRootVisible(false); outline2.setTableHeader(null); findTopComponent.add(myView2, BorderLayout.CENTER); findTopComponent.setVisible(true); findTopComponent.open(); findTopComponent.requestActive(); } }); } //This delay is important! }, 1000); } });
@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); }