Package org.blync.client

Examples of org.blync.client.PrivateSettings


    }

    protected boolean isInFilter(IndexEntry entry) {
        TaskIndexEntry taskEntry = (TaskIndexEntry)entry;
        int status = taskEntry.getStatus();
        PrivateSettings privateSettings = PrivateSettings.getInstance();
        switch (status) {
            case Task.STATUS_NEEDS_ACTION:
                return privateSettings.getShowNeedsActionTasks();
            case Task.STATUS_COMPLETED:
                return privateSettings.getShowCompletedTasks();
            case Task.STATUS_IN_PROCESS:
                return privateSettings.getShowInProcessTasks();
            case Task.STATUS_CANCELLED:
                return privateSettings.getShowCancelledTasks();
            default:
                return privateSettings.getShowUndefinedTasks();
        }
    }
View Full Code Here


        load();
    }

    private void load() {
        PrivateSettings settings = PrivateSettings.getInstance();
        filterField.setSelectedIndex(Task.STATUS_UNDEFINED, settings.getShowUndefinedTasks());
        filterField.setSelectedIndex(Task.STATUS_NEEDS_ACTION, settings.getShowNeedsActionTasks());
        filterField.setSelectedIndex(Task.STATUS_COMPLETED, settings.getShowCompletedTasks());
        filterField.setSelectedIndex(Task.STATUS_IN_PROCESS, settings.getShowInProcessTasks());
        filterField.setSelectedIndex(Task.STATUS_CANCELLED, settings.getShowCancelledTasks());
    }
View Full Code Here

        filterField.setSelectedIndex(Task.STATUS_IN_PROCESS, settings.getShowInProcessTasks());
        filterField.setSelectedIndex(Task.STATUS_CANCELLED, settings.getShowCancelledTasks());
    }

    private void save() {
        PrivateSettings settings = PrivateSettings.getInstance();
        settings.setShowUndefinedTasks(filterField.isSelected(Task.STATUS_UNDEFINED));
        settings.setShowNeedsActionTasks(filterField.isSelected(Task.STATUS_NEEDS_ACTION));
        settings.setShowCompletedTasks(filterField.isSelected(Task.STATUS_COMPLETED));
        settings.setShowInProcessTasks(filterField.isSelected(Task.STATUS_IN_PROCESS));
        settings.setShowCancelledTasks(filterField.isSelected(Task.STATUS_CANCELLED));
    }
View Full Code Here

TOP

Related Classes of org.blync.client.PrivateSettings

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.