Package com.atlauncher.data

Examples of com.atlauncher.data.Pack


        gbc.gridx = 0;
        gbc.gridy = 0;
        gbc.weightx = 1.0;
        gbc.fill = GridBagConstraints.BOTH;

        Pack pack;
        boolean show;
        int count = 0;
        for (PackCard card : this.cards) {
            show = true;
            pack = card.getPack();
            if (keep) {
                if (!this.searchField.getText().isEmpty()) {
                    if (!Pattern.compile(Pattern.quote(this.searchField.getText()),
                            Pattern.CASE_INSENSITIVE).matcher(pack.getName()).find()) {
                        show = false;
                    }
                }

                if (this.searchDescBox.isSelected()) {
                    if (Pattern.compile(Pattern.quote(this.searchField.getText()),
                            Pattern.CASE_INSENSITIVE).matcher(pack.getDescription()).find()) {
                        show = true;
                    }
                }

                if (this.serversBox.isSelected()) {
                    if (!pack.canCreateServer()) {
                        show = false;
                    }
                }

                if (privateBox.isSelected()) {
                    if (!pack.isPrivate()) {
                        show = false;
                    }
                }

                if (show) {
View Full Code Here

TOP

Related Classes of com.atlauncher.data.Pack

Copyright © 2018 www.massapicom. 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.