Package javax.swing.tree

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


        final DefaultMutableTreeNode thisNode = getNode();
        if (thisNode == null) {
            return filesystemInfo;
        }
        int i = 0;
        for (final Info info : treeMenuController.nodesToInfos(thisNode.children())) {
            if (info instanceof FilesystemInfo) {
                i++;
                continue;
            }
            break;
View Full Code Here


        final DefaultMutableTreeNode thisNode = getNode();
        if (thisNode == null) {
            return interfaceInfo;
        }
        int i = 0;
        for (final Info info : treeMenuController.nodesToInfos(thisNode.children())) {
            if (info instanceof DiskInfo
                || info instanceof FilesystemInfo
                || info instanceof InterfaceInfo) {
                i++;
                continue;
View Full Code Here

        final DefaultMutableTreeNode thisNode = getNode();
        if (thisNode == null) {
            return;
        }
        int i = 0;
        for (final Info info : treeMenuController.nodesToInfos(thisNode.children())) {
            if (info instanceof DiskInfo
                || info instanceof FilesystemInfo
                || info instanceof InterfaceInfo
                || info instanceof InputDevInfo) {
                i++;
View Full Code Here

        final DefaultMutableTreeNode thisNode = getNode();
        if (thisNode == null) {
            return graphicsInfo;
        }
        int i = 0;
        for (final Info info : treeMenuController.nodesToInfos(thisNode.children())) {
            if (info instanceof DiskInfo
                || info instanceof FilesystemInfo
                || info instanceof InterfaceInfo
                || info instanceof InputDevInfo
                || info instanceof GraphicsInfo) {
View Full Code Here

        final DefaultMutableTreeNode thisNode = getNode();
        if (thisNode == null) {
            return;
        }
        int i = 0;
        for (final Info info : treeMenuController.nodesToInfos(thisNode.children())) {
            if (info instanceof DiskInfo
                || info instanceof FilesystemInfo
                || info instanceof InterfaceInfo
                || info instanceof InputDevInfo
                || info instanceof GraphicsInfo
View Full Code Here

        final DefaultMutableTreeNode thisNode = getNode();
        if (thisNode == null) {
            return;
        }
        int i = 0;
        for (final Info info : treeMenuController.nodesToInfos(thisNode.children())) {
            if (info instanceof DiskInfo
                || info instanceof FilesystemInfo
                || info instanceof InterfaceInfo
                || info instanceof InputDevInfo
                || info instanceof GraphicsInfo
View Full Code Here

        final DefaultMutableTreeNode thisNode = getNode();
        if (thisNode == null) {
            return;
        }
        int i = 0;
        for (final Info info : treeMenuController.nodesToInfos(thisNode.children())) {
            if (info instanceof DiskInfo
                || info instanceof FilesystemInfo
                || info instanceof InterfaceInfo
                || info instanceof InputDevInfo
                || info instanceof GraphicsInfo
View Full Code Here

            hi.setApplyButtons(null, hi.getRealParametersFromXML());
        }
        if (getResource().isNew()) {
            final DefaultMutableTreeNode thisNode = getNode();
            if (thisNode != null) {
                for (final Info info : treeMenuController.nodesToInfos(thisNode.children())) {
                    final HardwareInfo hardwareInfo = (HardwareInfo) info;
                    if (hardwareInfo != null) {
                        final MyButton applyButton = hardwareInfo.getApplyButton();
                        if (applyButton != null) {
                            applyButton.setVisible(true);
View Full Code Here

                                                         new TreeMap<HardwareInfo, Map<String, String>>();
        final DefaultMutableTreeNode thisNode = getNode();
        if (thisNode == null) {
            return allParamaters;
        }
        for (final Info info : treeMenuController.nodesToInfos(thisNode.children())) {
            final HardwareInfo hardwareInfo = (HardwareInfo) info;
            allParamaters.put(hardwareInfo, hardwareInfo.getHWParameters(allParams));
        }
        return allParamaters;
    }
View Full Code Here

            incorrect.add("no host");
        }
        @SuppressWarnings("unchecked")
        final Check check = new Check(incorrect, changed);
        check.addCheck(super.checkResourceFields(param, params));
        for (final Info info : treeMenuController.nodesToInfos(thisNode.children())) {
            final HardwareInfo hardwareInfo = (HardwareInfo) info;
            check.addCheck(hardwareInfo.checkResourceFields(null, hardwareInfo.getRealParametersFromXML(), true));
        }
        return check;
    }
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.