Examples of removeFromParent()


Examples of elemental.html.DivElement.removeFromParent()

    }

    private void removeParticipant(String userId) {
      DivElement row = rows.get(userId);
      if (row != null) {
        row.removeFromParent();
      }
    }
  }

  private final ParticipantModel model;
View Full Code Here

Examples of elemental.html.Element.removeFromParent()

      }
    });

    Element element = line.getTag(LINE_TAG_LINE_ELEMENT);
    if (element != null && buffer.hasLineElement(element)) {
      element.removeFromParent();
      line.putTag(LINE_TAG_LINE_ELEMENT, null);
    }

    handleLineLeftViewport(line);
  }
View Full Code Here

Examples of elemental.html.IFrameElement.removeFromParent()

    iframe.setId(DOWNLOAD_FRAME_ID);
    iframe.getStyle().setDisplay("none");
    iframe.setOnLoad(new EventListener() {
      @Override
      public void handleEvent(Event event) {
        iframe.removeFromParent();
      }
    });

    iframe.setSrc(source);
    Elements.getBody().appendChild(iframe);
View Full Code Here

Examples of javax.swing.tree.DefaultMutableTreeNode.removeFromParent()

                        TreePath pathNewChild = null;

                        TreeNode sourceFather = source.getParent();
                        int index = sourceFather.getIndex(source);
                        source.removeFromParent();

                        treeModel.nodesWereRemoved(sourceFather,
                                new int[] { index }, new Object[] { source });

                        ((GanttTreeTableModel) treeModel).insertNodeInto(
View Full Code Here

Examples of javax.swing.tree.DefaultMutableTreeNode.removeFromParent()

            DefaultMutableTreeNode child =
                (DefaultMutableTreeNode) treeModel.getChild(rootNode, 0);

            treeModel.removeNodeFromParent(child);
            child.removeAllChildren();
            child.removeFromParent();
        }

        treeModel.nodeStructureChanged(rootNode);
        treeModel.reload();
        tScrollPane.repaint();
View Full Code Here

Examples of javax.swing.tree.DefaultMutableTreeNode.removeFromParent()

            DefaultMutableTreeNode child =
                (DefaultMutableTreeNode) treeModel.getChild(rootNode, 0);

            treeModel.removeNodeFromParent(child);
            child.removeAllChildren();
            child.removeFromParent();
        }

        treeModel.nodeStructureChanged(rootNode);
        treeModel.reload();
        tScrollPane.repaint();
View Full Code Here

Examples of javax.swing.tree.MutableTreeNode.removeFromParent()

    public void pomRemoved(final PomManagerEvent pEvent) {
        final MutableTreeNode node = findPomNode(pEvent.getUrl());
        if (node != null) {
            final int index = projectsNode.getIndex(node);
            node.removeFromParent();
            nodesWereRemoved(projectsNode, new int[]{index}, new Object[]{node});
        }
    }

    public void pomValidityChanged(final PomManagerEvent pEvent) {
View Full Code Here

Examples of javax.swing.tree.MutableTreeNode.removeFromParent()

      TreePath path = tree.getPathForRow(row);
      Object object = path.getLastPathComponent();
      TreePath parent = path.getParentPath();
      if (object instanceof MutableTreeNode) {
        MutableTreeNode node = (MutableTreeNode) object;
        node.removeFromParent();
      }
      if (parent != null) {
        tree.expandPath(parent);
        tree.updateUI();
      }
View Full Code Here

Examples of jmt.gui.jmodel.JGraphMod.BlockingRegion.removeFromParent()

      }
      // Avoid insertion of a blocking region in an other
      else if (cell2 instanceof BlockingRegion) {
        BlockingRegion region = (BlockingRegion) cell2;
        if (region.getParent() != null) {
          region.removeFromParent();
          graph.getModel().insert(new Object[] { region }, null, null, null, null);
        }
      }
    }
    // Puts cells removed from blocking regiont on background
View Full Code Here

Examples of jmt.gui.jmodel.JGraphMod.JmtCell.removeFromParent()

          // Object added to a blocking region
          newRegionKey = ((BlockingRegion) cell.getParent()).getKey();
          if (!model.addRegionStation(newRegionKey, key)) {
            // object cannot be added to blocking region (for
            // example it's a source)
            cell.removeFromParent();
            graph.getModel().insert(new Object[] { cell }, null, null, null, null);
            putBack.add(cell);
          }
          // Doesn't allow adding of selected objects to a new
          // blocking region
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.