protected final void addContent(JPanel panel, CommittablePanel content) { panel.setLayout(new BorderLayout()); panel.add(content.getComponent(), BorderLayout.CENTER); addComponent(content); }
protected final void addContent(JTabbedPane pane, CommittablePanel content, String title) { pane.add(title, content.getComponent()); addComponent(content); }
protected final Splitter createSplitter(CommittablePanel first, CommittablePanel second, boolean vertical) { Splitter splitter = createSplitter(vertical); setFirstPanel(splitter, first); setSecondPanel(splitter, second); return splitter; }
protected final Splitter createSplitter(CommittablePanel first, JComponent second, boolean vertical) { Splitter splitter = createSplitter(vertical); setFirstPanel(splitter, first); splitter.setSecondComponent(second); return splitter; }
protected final Splitter createSplitter(JComponent first, CommittablePanel second, boolean vertical) { Splitter splitter = createSplitter(vertical); splitter.setFirstComponent(first); setSecondPanel(splitter, second); return splitter; }
private void setFirstPanel(Splitter splitter, CommittablePanel panel) { splitter.setFirstComponent(panel.getComponent()); addComponent(panel); }
private void setSecondPanel(Splitter splitter, CommittablePanel panel) { splitter.setSecondComponent(panel.getComponent()); addComponent(panel); }