Examples of HtmlComponent


Examples of pt.ist.fenixWebFramework.renderers.components.HtmlComponent

    protected HtmlComponent createTextField(Object object, Class type) {

        Person person = (Person) object;
        String username = (person != null) ? person.getUsername() : null;

        final HtmlComponent container = super.createTextField(username, type);
        final HtmlFormComponent formComponent = (HtmlFormComponent) container.getChild(new Predicate<HtmlComponent>() {
            @Override
            public boolean apply(HtmlComponent input) {
                return input instanceof HtmlFormComponent;
            }
        });
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlComponent

                    courseContainer.addChild(groupName);
                    HtmlTable table = new HtmlTable();
                    for (CompetenceCourse course : group.getCurrentOrFutureCompetenceCourses()) {
                        if (course.getCurricularStage().equals(stage)) {
                            HtmlTableRow courseRow = table.createRow();
                            HtmlComponent coursePresentation =
                                    getCurrentOrFutureCoursePresentation(course, group, department.getDepartmentUnit());
                            if (getCourseNameClasses() != null) {
                                coursePresentation.setClasses(getCourseNameClasses());
                            }
                            courseRow.createCell().setBody(coursePresentation);
                            HtmlTableCell cell = courseRow.createCell();
                            cell.setBody(getLinks(course));
                            cell.setClasses("aright");
                        }
                    }
                    if (isShowOldCompetenceCourses()) {
                        for (CompetenceCourse course : group.getOldCompetenceCourses()) {
                            if (course.getCurricularStage().equals(stage)) {
                                HtmlTableRow courseRow = table.createRow();
                                HtmlComponent coursePresentation = getOldCoursePresentation(course);
                                if (getCourseNameClasses() != null) {
                                    coursePresentation.setClasses(getCourseNameClasses());
                                }
                                courseRow.createCell().setBody(coursePresentation);
                                HtmlTableCell cell = courseRow.createCell();
                                cell.setBody(getLinks(course));
                                cell.setClasses("aright");
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.