Package pt.ist.fenixWebFramework.renderers.components

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


            public HtmlComponent createComponent(Object unfiltered, Class type) {
                List<MetaObject> contacts = getFilteredContacts((Collection<PartyContact>) unfiltered);
                if (contacts.isEmpty()) {
                    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


                                getSortBy()) : new ArrayList<UnitFileTag>((Collection<UnitFileTag>) object);

                Person person = AccessControl.getPerson();
                int maximum = getMaximum(tags, person);

                HtmlList container = new HtmlList();

                for (UnitFileTag tag : tags) {
                    if (tag.isTagAccessibleToUser(person)) {
                        HtmlLink link = new HtmlLink();
                        link.setModuleRelative(isModuleRelative());
                        link.setContextRelative(isContextRelative());
                        link.setUrl(RenderUtils.getFormattedProperties(getLinkFormat(), tag));
                        if (getOnClick() != null) {
                            link.setOnClick(RenderUtils.getFormattedProperties(getOnClick(), tag));
                        }
                        if (getOnDblClick() != null) {
                            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);
                    }
View Full Code Here

                HtmlText areaName = new HtmlText(scientificArea.getNameI18n().getContent());
                if (getScientificAreaNameClasses() != null) {
                    areaName.setClasses(getScientificAreaNameClasses());
                }
                HtmlList list = new HtmlList();

                CurricularStage stage = null;

                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());
                    }
View Full Code Here

                    || isOldDepartmentMessageShown()) {
                HtmlText caption = new HtmlText(BundleUtil.getString(Bundle.BOLONHA, "caption"));
                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")));
View Full Code Here

TOP

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

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.