Package com.psddev.dari.db

Examples of com.psddev.dari.db.ObjectFieldComparator


                }
            }
        }

        List<ObjectType> types = new ArrayList<ObjectType>(typesSet);
        Collections.sort(types, new ObjectFieldComparator("name", false));

        page.writeStart("h1").writeHtml("Upload Files").writeEnd();

        page.writeStart("form",
                "method", "post",
View Full Code Here


                items = new ArrayList<Object>(types);
            } else {
                items = dropDownSearch.toQuery(getSite()).selectAll();
            }

            Collections.sort(items, new ObjectFieldComparator("_label", false));

            writeStart("select",
                    "data-searchable", "true",
                    attributes);
                writeStart("option", "value", "");
View Full Code Here

                if (disabled.contains(plugin.getInternalName())) {
                    i.remove();
                }
            }

            Collections.sort(plugins, new ObjectFieldComparator("displayName", true));

            return plugins;
        }
View Full Code Here

        private static <T extends Taxon> void sort(List<T> taxa) {
            if (taxa != null && !taxa.isEmpty()) {
                ObjectType taxonType = taxa.get(0).getState().getType();
                ToolUi ui = taxonType.as(ToolUi.class);
                if (!ObjectUtils.isBlank(ui.getDefaultSortField())) {
                    Collections.sort(taxa, new ObjectFieldComparator(ui.getDefaultSortField(), true));
                }
            }
        }
View Full Code Here

TOP

Related Classes of com.psddev.dari.db.ObjectFieldComparator

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.