Search in sources :

Example 16 with DTCol

use of com.helger.photon.uictrls.datatables.column.DTCol 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));
}
Also used : Locale(java.util.Locale) HCTable(com.helger.html.hc.html.tabular.HCTable) HCNodeList(com.helger.html.hc.impl.HCNodeList) DTCol(com.helger.photon.uictrls.datatables.column.DTCol) HCRow(com.helger.html.hc.html.tabular.HCRow) NiceNameEntry(com.helger.phoss.smp.nicename.NiceNameEntry) ICommonsOrderedMap(com.helger.commons.collection.impl.ICommonsOrderedMap) Map(java.util.Map) Nonnull(javax.annotation.Nonnull)

Aggregations

HCRow (com.helger.html.hc.html.tabular.HCRow)16 HCNodeList (com.helger.html.hc.impl.HCNodeList)16 DTCol (com.helger.photon.uictrls.datatables.column.DTCol)16 Locale (java.util.Locale)16 HCTable (com.helger.html.hc.html.tabular.HCTable)15 BootstrapDTColAction (com.helger.photon.bootstrap4.uictrls.datatables.BootstrapDTColAction)14 ISimpleURL (com.helger.commons.url.ISimpleURL)13 HCA (com.helger.html.hc.html.textlevel.HCA)13 BootstrapDataTables (com.helger.photon.bootstrap4.uictrls.datatables.BootstrapDataTables)12 BootstrapButtonToolbar (com.helger.photon.bootstrap4.buttongroup.BootstrapButtonToolbar)11 DataTables (com.helger.photon.uictrls.datatables.DataTables)11 HCTextNode (com.helger.html.hc.impl.HCTextNode)6 ISMPServiceGroup (com.helger.phoss.smp.domain.servicegroup.ISMPServiceGroup)5 PDTToString (com.helger.commons.datetime.PDTToString)4 Nonnull (javax.annotation.Nonnull)4 ICommonsList (com.helger.commons.collection.impl.ICommonsList)3 IParticipantIdentifier (com.helger.peppolid.IParticipantIdentifier)3 ISMPServiceInformation (com.helger.phoss.smp.domain.serviceinfo.ISMPServiceInformation)3 ISMPServiceInformationManager (com.helger.phoss.smp.domain.serviceinfo.ISMPServiceInformationManager)3 BootstrapButton (com.helger.photon.bootstrap4.button.BootstrapButton)3