Пример #1
0
 public static List<FontSize> getFontSizes() {
   List<FontSize> list = new ArrayList<FontSize>();
   Directories dir = Directories.FONT_SIZES;
   for (DocumentModel entry : getThemeService().getDirFontSizes()) {
     try {
       list.add(
           new FontSize(
               (String) entry.getPropertyValue(dir.idField()),
               (String) entry.getPropertyValue(dir.labelField())));
     } catch (PropertyException e) {
       LOG.error(e, e);
     } catch (ClientException e) {
       LOG.error(e, e);
     }
   }
   return list;
 }