Examples of removeAllChildren()


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

     * Remove all of the entrys.
     */
    public void removeAll() {
        DefaultTreeModel model = (DefaultTreeModel) _tree.getModel();
        DefaultMutableTreeNode root = (DefaultMutableTreeNode) model.getRoot();
        root.removeAllChildren();
        refresh();
    }

    /**
     * Remove the entry at the given index.
View Full Code Here

Examples of net.sf.jabref.groups.GroupTreeNode.removeAllChildren()

    public boolean makeChange(BasePanel panel, BibtexDatabase secondary, NamedCompound undoEdit) {
        final GroupTreeNode root = panel.getGroupSelector().getGroupTreeRoot();
        final UndoableModifySubtree undo = new UndoableModifySubtree(
                panel.getGroupSelector(), root, Globals.lang("Modified groups")); // JZTODO lyrics
        root.removeAllChildren();
        if (m_changedGroups == null) {
            // I think setting root to null is not possible
            root.setGroup(new AllEntriesGroup());
        } else {
            // change root group, even though it'll be AllEntries anyway
View Full Code Here

Examples of org.geoforge.guillc.treenode.GfrNodCtrAbs.removeAllChildren()

    {
       this._blnIsOpen = false;
      
        Object objRoot = super.getModel().getRoot();
        GfrNodCtrAbs nodRoot = (GfrNodCtrAbs) objRoot;
        nodRoot.removeAllChildren();
       
        DefaultTreeModel dtm = (DefaultTreeModel) super.getModel();
        dtm.nodeStructureChanged(nodRoot);
    }
   
View Full Code Here

Examples of org.gradle.gradleplugin.foundation.settings.SettingsNode.removeAllChildren()

     *
     * @param settings where you save the settings.
     */
    public void serializeOut(SettingsNode settings) {
        SettingsNode rootNode = settings.addChildIfNotPresent(BASIC_PROJECT_AND_TASK_FILTER);
        rootNode.removeAllChildren(); //clear out whatever may have already been there

        rootNode.setValueOfChildAsBoolean(FILTER_OUT_TASKS_WITH_NO_DESCRIPTION, filterOutTasksWithNoDescription);

        SettingsNode filteredOutProjectsNode = rootNode.addChild(FILTERED_OUT_PROJECTS);
        serializeOutStringList(filteredOutProjectsNode, filteredOutProjectNames);
View Full Code Here

Examples of org.gradle.gradleplugin.foundation.settings.SettingsNode.removeAllChildren()

        serializeOut(settings, favorites);
    }

    public static void serializeOut(SettingsNode settings, List<FavoriteTask> favorites) {
        SettingsNode rootNode = settings.addChildIfNotPresent(ROOT_TAG);
        rootNode.removeAllChildren(); //clear out whatever may have already been there

        Iterator<FavoriteTask> iterator = favorites.iterator();
        while (iterator.hasNext()) {
            FavoriteTask favoriteTask = iterator.next();
View Full Code Here

Examples of org.jboss.dna.graph.query.plan.PlanNode.removeAllChildren()

            while (true) {
                if (bottomRightSelect.getFirstChild().isNot(Type.SELECT)) break;
                bottomRightSelect = bottomRightSelect.getFirstChild();
            }
            topRightSelect.setParent(null);
            bottomRightSelect.removeAllChildren();
            // Place just above the left source ...
            leftSource.getParent().addLastChild(topRightSelect);
            leftSource.setParent(bottomRightSelect);
        }
View Full Code Here

Examples of org.jboss.dna.sequencer.ddl.node.AstNode.removeAllChildren()

        List<AstNode> options = parser.nodeFactory().getChildrenForType(tableNode, TYPE_STATEMENT_OPTION);
        assertEquals(1, options.size());

        assertEquals(content, options.get(0).getProperty(VALUE).getFirstValue());

        tableNode.removeAllChildren();

        // CASE 2 ON COMMIT DELETE ROWS
        content = "ON COMMIT DELETE ROWS";
        tokens = getTokens(content);
View Full Code Here

Examples of org.jboss.dna.sequencer.ddl.node.AstNode.removeAllChildren()

        options = parser.nodeFactory().getChildrenForType(tableNode, TYPE_STATEMENT_OPTION);
        assertEquals(1, options.size());

        assertEquals(content, options.get(0).getProperty(VALUE).getFirstValue());

        tableNode.removeAllChildren();

        // CASE 3 ON COMMIT DROP
        content = "ON COMMIT DROP";
        tokens = getTokens(content);
View Full Code Here

Examples of org.jboss.dna.sequencer.ddl.node.AstNode.removeAllChildren()

        options = parser.nodeFactory().getChildrenForType(tableNode, TYPE_STATEMENT_OPTION);
        assertEquals(1, options.size());

        assertEquals(content, options.get(0).getProperty(VALUE).getFirstValue());

        tableNode.removeAllChildren();
    }

    @Test
    public void shouldAreNextTokensCreateTableOptions() {
        printTest("shouldAreNextTokensCreateTableOptions()");
View Full Code Here

Examples of org.jboss.dna.sequencer.ddl.node.AstNode.removeAllChildren()

        List<AstNode> attributes = parser.nodeFactory().getChildrenForType(constraintNode, CONSTRAINT_ATTRIBUTE_TYPE);
        assertEquals(1, attributes.size());
        assertEquals(content, attributes.get(0).getProperty(PROPERTY_VALUE).getFirstValue());

        constraintNode.removeAllChildren();

        // CASE 2: INITIALLY IMMEDIATE DEFERRABLE
        content = "INITIALLY IMMEDIATE DEFERRABLE";
        tokens = getTokens(content);
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.