Package org.libreplan.business.labels.entities

Examples of org.libreplan.business.labels.entities.Label


    }

    @Test
    @Transactional
    public void testFindByLabels2() throws InstanceNotFoundException {
        Label label1 = givenStoredLabel();
        Label label2 = givenStoredLabel();

        OrderLine orderLine1 = createValidOrderLine();
        orderLine1.addLabel(label1);
        orderLine1.addLabel(label2);
        orderElementDAO.save(orderLine1);
View Full Code Here


    }

    @Test
    @Transactional
    public void testFindByLabelsOnTree() throws InstanceNotFoundException {
        Label label1 = givenStoredLabel();
        Label label2 = givenStoredLabel();

        OrderLineGroup orderLineGroup = createValidOrderLineGroup();
        orderLineGroup.addLabel(label1);
        OrderElement child = orderLineGroup.getChildren().get(0);
        child.addLabel(label2);
View Full Code Here

    }

    @Test
    @Transactional
    public void testFindByLabelsAndCriteria1() throws InstanceNotFoundException {
        Label label = givenStoredLabel();
        Criterion criterion = givenStoredCriterion();

        OrderLine orderLine1 = createValidOrderLine();
        orderLine1.addLabel(label);
        orderElementDAO.save(orderLine1);
View Full Code Here

    }

    @Test
    @Transactional
    public void testFindByLabelsAndCriteria2() throws InstanceNotFoundException {
        Label label1 = givenStoredLabel();
        Label label2 = givenStoredLabel();
        Criterion criterion1 = givenStoredCriterion();
        Criterion criterion2 = givenStoredCriterion();

        OrderLine orderLine1 = createValidOrderLine();
        orderLine1.addLabel(label1);
View Full Code Here

        label.getType().getName();
    }

    @Override
    public boolean entryMatchesText(Object obj, String text) {
        final Label label = (Label) obj;
        text = text.toLowerCase();
        return (label.getType().getName().toLowerCase().contains(text.toLowerCase()) || label
                .getName().toLowerCase().contains(text));
    }
View Full Code Here

        Iterator<LabelType> iteratorLabelType = mapLabels.keySet().iterator();
        while (iteratorLabelType.hasNext() && getListMatching().size() < 10) {
            LabelType type = iteratorLabelType.next();
            for (int i = 0; getListMatching().size() < 10
                    && i < mapLabels.get(type).size(); i++) {
                Label label = mapLabels.get(type).get(i);
                addLabel(type, label);
            }
        }
        return getListMatching();
    }
View Full Code Here

TOP

Related Classes of org.libreplan.business.labels.entities.Label

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.