Package org.libreplan.business.templates.entities

Examples of org.libreplan.business.templates.entities.OrderLineTemplate


            }

            @Override
            public void setWorkHours(OrderElementTemplate element, Integer value) {
                if (element instanceof OrderLineTemplate) {
                    OrderLineTemplate line = (OrderLineTemplate) element;
                    line.setWorkHours(value);
                }
            }
        };
    }
View Full Code Here


            @Override
            public void setBudgetHours(OrderElementTemplate element,
                    BigDecimal budget) {
                if (element instanceof OrderLineTemplate) {
                    OrderLineTemplate line = (OrderLineTemplate) element;
                    line.setBudget(budget);
                }
            }

        };
    }
View Full Code Here

        super(OrderElementTemplate.class, root);
    }

    @Override
    protected OrderElementTemplate createNewElement() {
        OrderLineTemplate result = OrderLineTemplate.createNew();
        result.setName(_("New template"));
        result.setDescription(_("New Description"));
        return result;
    }
View Full Code Here

        return result;
    }

    @Override
    protected OrderElementTemplate createNewElement(String name, int hours) {
        OrderLineTemplate result = OrderLineTemplate.createNew();
        result.setName(name);
        result.setDescription(_("New Description"));
        result.setWorkHours(hours);
        return result;
    }
View Full Code Here

TOP

Related Classes of org.libreplan.business.templates.entities.OrderLineTemplate

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.