Search in sources :

Example 1 with OmTextLabel

use of org.apache.openmeetings.service.mail.template.OmTextLabel in project openmeetings by apache.

the class RecordingExpiringTemplate method getSubjectFragment.

@Override
Fragment getSubjectFragment() {
    Fragment f = new Fragment(COMP_ID, "subject", this);
    Room room = roomDao.get(rec.getRoomId());
    f.add(new OmTextLabel("prefix", getString("template.recording.expiring.subj.prefix", locale)), new OmTextLabel("room", room == null ? null : getString("template.recording.expiring.subj.room", locale, room.getName())).setVisible(room != null));
    return f;
}
Also used : OmTextLabel(org.apache.openmeetings.service.mail.template.OmTextLabel) Fragment(org.apache.wicket.markup.html.panel.Fragment) Room(org.apache.openmeetings.db.entity.room.Room)

Example 2 with OmTextLabel

use of org.apache.openmeetings.service.mail.template.OmTextLabel in project openmeetings by apache.

the class AppointmentTemplate method getSubjectFragment.

@Override
Fragment getSubjectFragment() {
    Fragment f = new Fragment(COMP_ID, "subject", this);
    f.add(new OmTextLabel("prefix", getPrefix()), new OmTextLabel("title", a.getTitle()), new OmTextLabel("start", format(a.getStart(), SHORT)), new DashOmTextLabel("dash"), new OmTextLabel("end", format(a.getEnd(), SHORT)));
    return f;
}
Also used : DashOmTextLabel(org.apache.openmeetings.service.mail.template.DashOmTextLabel) DashOmTextLabel(org.apache.openmeetings.service.mail.template.DashOmTextLabel) OmTextLabel(org.apache.openmeetings.service.mail.template.OmTextLabel) Fragment(org.apache.wicket.markup.html.panel.Fragment)

Aggregations

OmTextLabel (org.apache.openmeetings.service.mail.template.OmTextLabel)2 Fragment (org.apache.wicket.markup.html.panel.Fragment)2 Room (org.apache.openmeetings.db.entity.room.Room)1 DashOmTextLabel (org.apache.openmeetings.service.mail.template.DashOmTextLabel)1