public void closeView() { // Just remove from parent NodePanel nodePanel = (NodePanel) SwingUtilities.getAncestorOfClass(NodePanel.class, this); if (nodePanel != null) { getParent().remove(this); dispose(); nodePanel.rebuild(); nodePanel.repaint(); } else { if (getParent() instanceof ViewContainer) { ((ViewContainer) getParent()).closeView(this); dispose(); } } }
public void closeView() { // Just remove from parent NodePanel nodePanel = (NodePanel) SwingUtilities.getAncestorOfClass(NodePanel.class, this); if (nodePanel != null) { getParent().remove(this); dispose(); nodePanel.rebuild(); nodePanel.repaint(); } else { if (getParent() instanceof ViewContainer) { ((ViewContainer) getParent()).closeView(this); dispose(); } } }
public void closeView() { // Just remove from parent NodePanel nodePanel = (NodePanel) SwingUtilities.getAncestorOfClass(NodePanel.class, this); if (nodePanel != null) { getParent().remove(this); dispose(); nodePanel.rebuild(); nodePanel.repaint(); } else { if (getParent() instanceof ViewContainer) { ((ViewContainer) getParent()).closeView(this); dispose(); } } }
public void splitVerticallyWith(ViewComponentPlugin plugin) { if (getNodePanel() != null) { ComponentNode newNode = new ComponentNode(); newNode.add(createView(plugin), plugin.getLabel()); componentNode.getParent().insertNodeAfter(newNode, componentNode, SplitterNode.VERTICAL_SPLITTER); getNodePanel().rebuild(); } else if (getParent() instanceof ViewContainer) { ((ViewContainer) getParent()).splitVertically(createView(plugin)); } }
public void splitHorizontallyWith(ViewComponentPlugin plugin) { if (getNodePanel() != null) { ComponentNode newNode = new ComponentNode(); newNode.add(createView(plugin), plugin.getLabel()); componentNode.getParent().insertNodeAfter(newNode, componentNode, SplitterNode.HORIZONTAL_SPLITTER); getNodePanel().rebuild(); } else if (getParent() instanceof ViewContainer) { ((ViewContainer) getParent()).splitHorizontally(createView(plugin)); } }
public void splitHorizontallyWith(ViewComponentPlugin plugin) { if (getNodePanel() != null) { ComponentNode newNode = new ComponentNode(); newNode.add(createView(plugin), plugin.getLabel()); componentNode.getParent().insertNodeAfter(newNode, componentNode, SplitterNode.HORIZONTAL_SPLITTER); getNodePanel().rebuild(); } else if (getParent() instanceof ViewContainer) { ((ViewContainer) getParent()).splitHorizontally(createView(plugin)); } }
public void splitVerticallyWith(ViewComponentPlugin plugin) { if (getNodePanel() != null) { ComponentNode newNode = new ComponentNode(); newNode.add(createView(plugin), plugin.getLabel()); componentNode.getParent().insertNodeAfter(newNode, componentNode, SplitterNode.VERTICAL_SPLITTER); getNodePanel().rebuild(); } else if (getParent() instanceof ViewContainer) { ((ViewContainer) getParent()).splitVertically(createView(plugin)); } }
public void splitHorizontallyWith(ViewComponentPlugin plugin) { if (getNodePanel() != null) { ComponentNode newNode = new ComponentNode(); newNode.add(createView(plugin), plugin.getLabel()); componentNode.getParent().insertNodeAfter(newNode, componentNode, SplitterNode.HORIZONTAL_SPLITTER); getNodePanel().rebuild(); } else if (getParent() instanceof ViewContainer) { ((ViewContainer) getParent()).splitHorizontally(createView(plugin)); } }
public void splitVerticallyWith(ViewComponentPlugin plugin) { if (getNodePanel() != null) { ComponentNode newNode = new ComponentNode(); newNode.add(createView(plugin), plugin.getLabel()); componentNode.getParent().insertNodeAfter(newNode, componentNode, SplitterNode.VERTICAL_SPLITTER); getNodePanel().rebuild(); } else if (getParent() instanceof ViewContainer) { ((ViewContainer) getParent()).splitVertically(createView(plugin)); } }