/** * Add multiple cells, one for each passed element. * * @param aCellChildren * The list of elements for which new cells should be created. May be * <code>null</code>. * @return this (the table row) */ @Nonnull public HCRow addCells (@Nullable final IHCNode... aCellChildren) { if (aCellChildren != null) for (final IHCNode aCellChild : aCellChildren) addCell (aCellChild); return this; }
/** * Add multiple cells, one for each passed element. * * @param aCellChildren * The list of elements for which new cells should be created. May be * <code>null</code>. * @return this (the table row) */ @Nonnull public HCRow addCells (@Nullable final Iterable <? extends IHCNode> aCellChildren) { if (aCellChildren != null) for (final IHCNode aCellChild : aCellChildren) addCell (aCellChild); return this; }
/** * Add multiple cells, one for each passed string. * * @param aCellTexts * The list of strings for which a table cell should be created. * @return this (the table row) */ @Nonnull public HCRow addCells (@Nullable final String... aCellTexts) { if (aCellTexts != null) for (final String sCellText : aCellTexts) addCell (sCellText); return this; }
@Deprecated @DevelopersNote ("Use either addCell or add parameters :)") @Nonnull public HCRow addCells (@Nullable final IHCNode aCellChild) { return addCell (aCellChild); }
/** * Add a single cell with the given text element. * * @param sCellText * The text to be set into the cell. May be <code>null</code>. * @return the created table cell */ @Nonnull @CheckReturnValue public IHCCell <?> addAndReturnCell (@Nullable final String sCellText) { return addCell ().addChild (sCellText); }
/** * Add a single new cell and add the passed elements. * * @param aCellChildren * The list of elements to add. May be <code>null</code>. * @return The created cell. Never <code>null</code>. */ @Nonnull @CheckReturnValue public IHCCell <?> addAndReturnCell (@Nullable final IHCNode... aCellChildren) { return addCell ().addChildren (aCellChildren); }
/** * Add a single new cell and add the passed elements. * * @param aCellChildren * The list of elements to add. May be <code>null</code>. * @return this (the table row) */ @Nonnull public HCRow addCell (@Nullable final IHCNode... aCellChildren) { addCell ().addChildren (aCellChildren); return this; }
/** * Add a single cell with the given text elements. * * @param aCellTexts * The text to be set into the cell. May be <code>null</code>. * @return the created table cell */ @Nonnull @CheckReturnValue public IHCCell <?> addAndReturnCell (@Nullable final String... aCellTexts) { return addCell ().addChildren (aCellTexts); }
@Deprecated @DevelopersNote ("Use either addCell or add parameters :)") @Nonnull public HCRow addCells (@Nullable final String sCellChild) { return addCell (sCellChild); }
/** * Add a single new cell and add the passed elements. * * @param aCellChildren * The list of elements to add. May be <code>null</code>. * @return The created cell. Never <code>null</code>. */ @Nonnull @CheckReturnValue public IHCCell <?> addAndReturnCell (@Nullable final Iterable <? extends IHCNode> aCellChildren) { return addCell ().addChildren (aCellChildren); }
/** * Add a single cell with the given text element. * * @param sCellText * The text to be set into the cell. May be <code>null</code>. * @return this (the table row) */ @Nonnull public HCRow addCell (@Nullable final String sCellText) { addCell ().addChild (sCellText); return this; }
/** * Add a single new cell and add the passed elements. * * @param aCellChildren * The list of elements to add. May be <code>null</code>. * @return this (the table row) */ @Nonnull public HCRow addCell (@Nullable final Iterable <? extends IHCNode> aCellChildren) { addCell ().addChildren (aCellChildren); return this; }
/** * Add a single new cell and add the passed element. * * @param aCellChild * The element to add. May be <code>null</code>. * @return The created cell. Never <code>null</code>. */ @Nonnull @CheckReturnValue public IHCCell <?> addAndReturnCell (@Nullable final IHCNode aCellChild) { return addCell ().addChild (aCellChild); }
/** * Add a single new cell and add the passed element. * * @param aChild * The element to add. May be <code>null</code>. * @return this (the table row) */ @Nonnull public HCRow addCell (@Nullable final IHCNode aChild) { addCell ().addChild (aChild); return this; }
/** * Add a single new cell and add the passed texts. * * @param aCellTexts * The list of texts to add. May be <code>null</code>. * @return this (the table row) */ @Nonnull public HCRow addCell (@Nullable final String... aCellTexts) { addCell ().addChildren (aCellTexts); return this; }
@Override protected void fillContent (@Nonnull final WPECTYPE aWPEC) { final HCNodeList aNodeList = aWPEC.getNodeList (); final Locale aDisplayLocale = aWPEC.getDisplayLocale (); final HCTable aTable = new HCTable (new DTCol (EText.MSG_NAME.getDisplayText (aDisplayLocale)).setInitialSorting (ESortOrder.ASCENDING), new DTCol (EText.MSG_VALUE.getDisplayText (aDisplayLocale))).setID (getID ()); // For all environment variables for (final Map.Entry <String, String> aEntry : System.getenv ().entrySet ()) { final HCRow aRow = aTable.addBodyRow (); aRow.addCell (aEntry.getKey ()); aRow.addCell (aEntry.getValue ()); } aNodeList.addChild (aTable); final DataTables aDataTables = BootstrapDataTables.createDefaultDataTables (aWPEC, aTable); aNodeList.addChild (aDataTables); } }
@Override protected void fillContent (@Nonnull final WPECTYPE aWPEC) { final HCNodeList aNodeList = aWPEC.getNodeList (); final Locale aDisplayLocale = aWPEC.getDisplayLocale (); final HCTable aTable = new HCTable (new DTCol (EText.MSG_NAME.getDisplayText (aDisplayLocale)).setInitialSorting (ESortOrder.ASCENDING), new DTCol (EText.MSG_VALUE.getDisplayText (aDisplayLocale))).setID (getID ()); // For all environment variables for (final Map.Entry <String, String> aEntry : System.getenv ().entrySet ()) { final HCRow aRow = aTable.addBodyRow (); aRow.addCell (aEntry.getKey ()); aRow.addCell (aEntry.getValue ()); } aNodeList.addChild (aTable); final DataTables aDataTables = BootstrapDataTables.createDefaultDataTables (aWPEC, aTable); aNodeList.addChild (aDataTables); } }
@Override protected void fillContent (@Nonnull final WPECTYPE aWPEC) { final HCNodeList aNodeList = aWPEC.getNodeList (); final Locale aDisplayLocale = aWPEC.getDisplayLocale (); final HCTable aTable = new HCTable (new DTCol (EText.MSG_APPID.getDisplayText (aDisplayLocale)).setInitialSorting (ESortOrder.ASCENDING), new DTCol (EText.MSG_APP_SERVLET_PATH.getDisplayText (aDisplayLocale))).setID (getID ()); for (final Map.Entry <String, String> aEntry : PhotonGlobalState.getAppIDToServletPathMap ().entrySet ()) { final String sAppID = aEntry.getKey (); final HCRow aRow = aTable.addBodyRow (); aRow.addCell (sAppID); aRow.addCell (aEntry.getValue ()); } aNodeList.addChild (aTable); final DataTables aDataTables = BootstrapDataTables.createDefaultDataTables (aWPEC, aTable); aNodeList.addChild (aDataTables); } }
@Override protected void fillContent (@Nonnull final WPECTYPE aWPEC) { final HCNodeList aNodeList = aWPEC.getNodeList (); final Locale aDisplayLocale = aWPEC.getDisplayLocale (); final HCTable aTable = new HCTable (new DTCol (EText.MSG_APPID.getDisplayText (aDisplayLocale)).setInitialSorting (ESortOrder.ASCENDING), new DTCol (EText.MSG_APP_SERVLET_PATH.getDisplayText (aDisplayLocale))).setID (getID ()); for (final Map.Entry <String, String> aEntry : PhotonGlobalState.getAppIDToServletPathMap ().entrySet ()) { final String sAppID = aEntry.getKey (); final HCRow aRow = aTable.addBodyRow (); aRow.addCell (sAppID); aRow.addCell (aEntry.getValue ()); } aNodeList.addChild (aTable); final DataTables aDataTables = BootstrapDataTables.createDefaultDataTables (aWPEC, aTable); aNodeList.addChild (aDataTables); } }