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;
}
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;
}
Aggregations