Package pt.ist.fenixWebFramework.renderers.components

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


                    return new HtmlText();
                }
                HtmlList list = new HtmlList();
                list.setClasses(getClasses());
                for (MetaObject meta : contacts) {
                    HtmlListItem item = list.createItem();
                    item.setClasses(getItemClasses());
                    item.setBody(getValue((PartyContact) meta.getObject()));
                }
                return list;
            }
        };
    }
View Full Code Here


                            link.setOnDblClick(RenderUtils.getFormattedProperties(getOnDblClick(), tag));
                        }
                        HtmlText text = new HtmlText(tag.getName());
                        text.setClasses(getHtmlClass(maximum, tag, person));
                        link.setBody(text);
                        HtmlListItem item = container.createItem();

                        addExtraParameters(link, tag);

                        item.addChild(link);
                    }
                }
                return container;
            }
View Full Code Here

                if (getFilterBy() != null) {
                    stage = CurricularStage.valueOf(getFilterBy());
                }
                for (CompetenceCourseGroupUnit group : scientificArea.getCompetenceCourseGroupUnits()) {

                    HtmlListItem item = list.createItem();
                    HtmlBlockContainer courseContainer = new HtmlBlockContainer();
                    HtmlText groupName = new HtmlText(group.getPresentationName());
                    if (getGroupNameClasses() != null) {
                        groupName.setClasses(getGroupNameClasses());
                    }
                    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");
                            }
                        }
                    }
                    courseContainer.addChild(table);
                    if (getTableClasses() != null) {
                        table.setClasses(getTableClasses());
                    }

                    item.setBody(courseContainer);
                }
                listContainer.addChild(areaName);
                listContainer.addChild(list);
            }
            HtmlBlockContainer container = new HtmlBlockContainer();
View Full Code Here

                caption.setClasses(CAPTION_CLASSES);
                caption.setFace(Face.STRONG);
                container.addChild(caption);
                HtmlList list = new HtmlList();
                if (isOldDepartmentMessageShown()) {
                    HtmlListItem item = list.createItem();
                    HtmlInlineContainer messageLine = new HtmlInlineContainer();
                    HtmlText message = new HtmlText(BundleUtil.getString(Bundle.BOLONHA, "current.department") + ":");
                    message.setFace(Face.EMPHASIS);
                    messageLine.addChild(message);
                    messageLine.addChild(new HtmlText(BundleUtil.getString(Bundle.BOLONHA, "current.department.caption")));
                    item.addChild(messageLine);
                }
                if (isFutureDepartmentMessageShown()) {
                    HtmlListItem item = list.createItem();
                    HtmlInlineContainer messageLine = new HtmlInlineContainer();
                    HtmlText message = new HtmlText(BundleUtil.getString(Bundle.BOLONHA, "future.department") + ":");
                    message.setFace(Face.EMPHASIS);
                    messageLine.addChild(message);
                    messageLine.addChild(new HtmlText(BundleUtil.getString(Bundle.BOLONHA, "future.department.caption")));
                    item.addChild(messageLine);
                }
                if (isFutureGroupMessageShown()) {
                    HtmlListItem item = list.createItem();
                    HtmlInlineContainer messageLine = new HtmlInlineContainer();
                    HtmlText message = new HtmlText(BundleUtil.getString(Bundle.BOLONHA, "future.group") + ":");
                    message.setFace(Face.EMPHASIS);
                    messageLine.addChild(message);
                    messageLine.addChild(new HtmlText(BundleUtil.getString(Bundle.BOLONHA, "future.group.caption")));
                    item.addChild(messageLine);
                }
                if (isFutureTransferMessageShown()) {
                    HtmlListItem item = list.createItem();
                    HtmlInlineContainer messageLine = new HtmlInlineContainer();
                    HtmlText message = new HtmlText(BundleUtil.getString(Bundle.BOLONHA, "future.transfer") + ":");
                    message.setFace(Face.EMPHASIS);
                    messageLine.addChild(message);
                    messageLine.addChild(new HtmlText(BundleUtil.getString(Bundle.BOLONHA, "future.transfer.caption")));
                    item.addChild(messageLine);
                }
                container.addChild(list);
            }
            return container;
        }
View Full Code Here

TOP

Related Classes of pt.ist.fenixWebFramework.renderers.components.HtmlListItem

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.