use of com.helger.phoss.smp.nicename.NiceNameEntry in project phoss-smp by phax.
the class PageSecureSMPIdentifierMappings method _createList.
@Nonnull
private IHCNode _createList(@Nonnull final WebPageExecutionContext aWPEC, @Nonnull final ICommonsOrderedMap<String, NiceNameEntry> aEntries, @Nonnull final String sSuffix) {
final Locale aDisplayLocale = aWPEC.getDisplayLocale();
final HCTable aTable = new HCTable(new DTCol("ID"), new DTCol("Name"), new DTCol("Deprecated?")).setID(getID() + sSuffix);
for (final Map.Entry<String, NiceNameEntry> aEntry : aEntries.entrySet()) {
final HCRow aRow = aTable.addBodyRow();
aRow.addCell(aEntry.getKey());
aRow.addCell(aEntry.getValue().getName());
aRow.addCell(EPhotonCoreText.getYesOrNo(aEntry.getValue().isDeprecated(), aDisplayLocale));
}
return new HCNodeList().addChild(aTable).addChild(BootstrapDataTables.createDefaultDataTables(aWPEC, aTable));
}
Aggregations