Examples of KeyValueObject


Examples of org.apache.roller.weblogger.ui.struts2.util.KeyValueObject

   
   
    public List<KeyValueObject> getSortByOptions() {
        List<KeyValueObject> opts = new ArrayList();
       
        opts.add(new KeyValueObject("pubTime", getText("weblogEntryQuery.label.pubTime")));
        opts.add(new KeyValueObject("updateTime", getText("weblogEntryQuery.label.updateTime")));
       
        return opts;
    }
View Full Code Here

Examples of org.apache.roller.weblogger.ui.struts2.util.KeyValueObject

    }
   
    public List<KeyValueObject> getStatusOptions() {
        List<KeyValueObject> opts = new ArrayList();
       
        opts.add(new KeyValueObject("ALL", getText("weblogEntryQuery.label.allEntries")));
        opts.add(new KeyValueObject("DRAFT", getText("weblogEntryQuery.label.draftOnly")));
        opts.add(new KeyValueObject("PUBLISHED", getText("weblogEntryQuery.label.publishedOnly")));
        opts.add(new KeyValueObject("PENDING", getText("weblogEntryQuery.label.pendingOnly")));
        opts.add(new KeyValueObject("SCHEDULED", getText("weblogEntryQuery.label.scheduledOnly")));
       
        return opts;
    }
View Full Code Here

Examples of org.apache.roller.weblogger.ui.struts2.util.KeyValueObject

   
    public List getCommentStatusOptions() {
       
        List opts = new ArrayList();
       
        opts.add(new KeyValueObject("ALL", getText("commentManagement.all")));
        opts.add(new KeyValueObject("ONLY_PENDING", getText("commentManagement.onlyPending")));
        opts.add(new KeyValueObject("ONLY_APPROVED", getText("commentManagement.onlyApproved")));
        opts.add(new KeyValueObject("ONLY_DISAPPROVED", getText("commentManagement.onlyDisapproved")));
       
        return opts;
    }
View Full Code Here

Examples of org.apache.roller.weblogger.ui.struts2.util.KeyValueObject

   
    public List getSpamStatusOptions() {
       
        List opts = new ArrayList();
       
        opts.add(new KeyValueObject("ALL", getText("commentManagement.all")));
        opts.add(new KeyValueObject("NO_SPAM", getText("commentManagement.noSpam")));
        opts.add(new KeyValueObject("ONLY_SPAM", getText("commentManagement.onlySpam")));
       
        return opts;
    }
View Full Code Here

Examples of org.apache.roller.weblogger.ui.struts2.util.KeyValueObject

   
    public List getCommentStatusOptions() {
       
        List opts = new ArrayList();
       
        opts.add(new KeyValueObject("ALL", getText("commentManagement.all")));
        opts.add(new KeyValueObject("ONLY_PENDING", getText("commentManagement.onlyPending")));
        opts.add(new KeyValueObject("ONLY_APPROVED", getText("commentManagement.onlyApproved")));
        opts.add(new KeyValueObject("ONLY_DISAPPROVED", getText("commentManagement.onlyDisapproved")));
       
        return opts;
    }
View Full Code Here

Examples of org.apache.roller.weblogger.ui.struts2.util.KeyValueObject

   
    public List getSpamStatusOptions() {
       
        List opts = new ArrayList();
       
        opts.add(new KeyValueObject("ALL", getText("commentManagement.all")));
        opts.add(new KeyValueObject("NO_SPAM", getText("commentManagement.noSpam")));
        opts.add(new KeyValueObject("ONLY_SPAM", getText("commentManagement.onlySpam")));
       
        return opts;
    }
View Full Code Here

Examples of org.apache.roller.weblogger.ui.struts2.util.KeyValueObject

   
    public List getCommentStatusOptions() {
       
        List opts = new ArrayList();
       
        opts.add(new KeyValueObject("ALL", getText("commentManagement.all")));
        opts.add(new KeyValueObject("ONLY_PENDING", getText("commentManagement.onlyPending")));
        opts.add(new KeyValueObject("ONLY_APPROVED", getText("commentManagement.onlyApproved")));
        opts.add(new KeyValueObject("ONLY_DISAPPROVED", getText("commentManagement.onlyDisapproved")));
       
        return opts;
    }
View Full Code Here

Examples of org.apache.roller.weblogger.ui.struts2.util.KeyValueObject

   
    public List getSpamStatusOptions() {
       
        List opts = new ArrayList();
       
        opts.add(new KeyValueObject("ALL", getText("commentManagement.all")));
        opts.add(new KeyValueObject("NO_SPAM", getText("commentManagement.noSpam")));
        opts.add(new KeyValueObject("ONLY_SPAM", getText("commentManagement.onlySpam")));
       
        return opts;
    }
View Full Code Here

Examples of org.apache.roller.weblogger.ui.struts2.util.KeyValueObject

        this.pageTitle = "mediaFileView.title";

        if (SIZE_FILTER_TYPES == null) {

            SIZE_FILTER_TYPES = Arrays.asList(
                new KeyValueObject("mediaFileView.gt", getText("mediaFileView.gt")),
                new KeyValueObject("mediaFileView.ge", getText("mediaFileView.ge")),
                new KeyValueObject("mediaFileView.eq", getText("mediaFileView.eq")),
                new KeyValueObject("mediaFileView.le", getText("mediaFileView.le")),
                new KeyValueObject("mediaFileView.lt", getText("mediaFileView.lt")));

            FILE_TYPES = Arrays.asList(
                new KeyValueObject("mediaFileView.any",   getText("mediaFileView.any")),
                new KeyValueObject("mediaFileView.others",   getText("mediaFileView.others")),
                new KeyValueObject("mediaFileView.image", getText("mediaFileView.image")),
                new KeyValueObject("mediaFileView.video", getText("mediaFileView.video")),
                new KeyValueObject("mediaFileView.audio", getText("mediaFileView.audio")));

            SIZE_UNITS = Arrays.asList(
                new KeyValueObject("mediaFileView.bytes", getText("mediaFileView.bytes")),
                new KeyValueObject("mediaFileView.kb",    getText("mediaFileView.kb")),
                new KeyValueObject("mediaFileView.mb",    getText("mediaFileView.mb")));

            SORT_OPTIONS = Arrays.asList(
                new KeyValueObject("mediaFileView.name", getText("mediaFileView.name")),
                new KeyValueObject("mediaFileView.date", getText("mediaFileView.date")),
                new KeyValueObject("mediaFileView.type", getText("mediaFileView.type")));
        }
    }
View Full Code Here

Examples of org.apache.roller.weblogger.ui.struts2.util.KeyValueObject

     * displaying path information as breadcrumb.
     */
    public List<KeyValueObject> getCurrentDirectoryHierarchy() {
        List<KeyValueObject> directoryHierarchy = new ArrayList<KeyValueObject>();

        directoryHierarchy.add(new KeyValueObject("/", "root"));
        String fullPath = this.currentDirectory.getPath();
        String dpath = "";
        if (fullPath.length() > 1) {
            String[] directoryNames = fullPath.substring(1).split("/");
            for (String directoryName : directoryNames) {
                dpath = dpath + "/" + directoryName;
                directoryHierarchy.add(new KeyValueObject(dpath, directoryName));
            }
        }
        return directoryHierarchy;
    }
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.