/** * 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 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 element. * * @param nIndex * The index where the cell should be added * @param aCellChild * The element to add. May be <code>null</code>. * @return The created cell. Never <code>null</code>. */ @Nonnull @CheckReturnValue public IHCCell <?> addAndReturnCellAt (@Nonnegative final int nIndex, @Nullable final IHCNode aCellChild) { return addCellAt (nIndex).addChild (aCellChild); }
/** * 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 cell with the given text element. * * @param nIndex * The index where the cell should be added * @param sCellText * The text to be set into the cell. May be <code>null</code>. * @return this (the table row) */ @Nonnull public HCRow addCellAt (@Nonnegative final int nIndex, @Nullable final String sCellText) { addCellAt (nIndex).addChild (sCellText); return this; }
/** * Add a single new cell and add the passed element. * * @param nIndex * The index where the cell should be added * @param aChild * The element to add. May be <code>null</code>. * @return this (the table row) */ @Nonnull public HCRow addCellAt (@Nonnegative final int nIndex, @Nullable final IHCNode aChild) { addCellAt (nIndex).addChild (aChild); return this; }
/** * Add a single cell with the given text element. * * @param nIndex * The index where the cell should be added * @param sCellText * The text to be set into the cell. May be <code>null</code>. * @return the created table cell */ @Nonnull @CheckReturnValue public IHCCell <?> addAndReturnCellAt (@Nonnegative final int nIndex, @Nullable final String sCellText) { return addCellAt (nIndex).addChild (sCellText); }
aActionCell.addChild (createEditLink (aWPEC, aCurObject, EText.ACTION_EDIT.getDisplayTextWithArgs (aDisplayLocale, sDisplayName))); else aActionCell.addChild (createEmptyAction ()); aActionCell.addChild (" "); aActionCell.addChild (createCopyLink (aWPEC, aCurObject, EText.ACTION_COPY.getDisplayTextWithArgs (aDisplayLocale, sDisplayName))); aActionCell.addChild (" "); if (isActionAllowed (aWPEC, EWebPageFormAction.DELETE, aCurObject)) aActionCell.addChild (createDeleteLink (aWPEC, aCurObject, EText.ACTION_DELETE.getDisplayTextWithArgs (aDisplayLocale, sDisplayName))); else aActionCell.addChild (createEmptyAction ()); aActionCell.addChild (" "); if (canCreateNewAccessToken (aCurObject)) aActionCell.addChild (new HCA (aWPEC.getSelfHref () .add (CPageParam.PARAM_ACTION, ACTION_CREATE_NEW_ACCESS_TOKEN) .add (CPageParam.PARAM_OBJECT, aCurObject.getID ())) sDisplayName))); else aActionCell.addChild (createEmptyAction ()); aActionCell.addChild (" "); if (canRevokeAccessToken (aCurObject))
aActionCell.addChild (createEditLink (aWPEC, aCurObject, EText.ACTION_EDIT.getDisplayTextWithArgs (aDisplayLocale, sDisplayName))); else aActionCell.addChild (createEmptyAction ()); aActionCell.addChild (" "); aActionCell.addChild (createCopyLink (aWPEC, aCurObject, EText.ACTION_COPY.getDisplayTextWithArgs (aDisplayLocale, sDisplayName))); aActionCell.addChild (" "); if (isActionAllowed (aWPEC, EWebPageFormAction.DELETE, aCurObject)) aActionCell.addChild (createDeleteLink (aWPEC, aCurObject, EText.ACTION_DELETE.getDisplayTextWithArgs (aDisplayLocale, sDisplayName))); else aActionCell.addChild (createEmptyAction ()); aActionCell.addChild (" "); if (canCreateNewAccessToken (aCurObject)) aActionCell.addChild (new HCA (aWPEC.getSelfHref () .add (CPageParam.PARAM_ACTION, ACTION_CREATE_NEW_ACCESS_TOKEN) .add (CPageParam.PARAM_OBJECT, aCurObject.getID ())) sDisplayName))); else aActionCell.addChild (createEmptyAction ()); aActionCell.addChild (" "); if (canRevokeAccessToken (aCurObject))
aActionCell.addChild (createEditLink (aWPEC, aUserGroup, EWebPageText.OBJECT_EDIT.getDisplayTextWithArgs (aDisplayLocale, aUserGroup.getName ()))); aActionCell.addChild (" "); if (canDeleteUserGroup (aUserGroup)) aActionCell.addChild (createDeleteLink (aWPEC, aUserGroup, EWebPageText.OBJECT_DELETE.getDisplayTextWithArgs (aDisplayLocale, aActionCell.addChild (createEmptyAction ()); aActionCell.addChild (" "); if (canUndeleteUserGroup (aUserGroup)) aActionCell.addChild (createUndeleteLink (aWPEC, aUserGroup, EWebPageText.OBJECT_UNDELETE.getDisplayTextWithArgs (aDisplayLocale, aActionCell.addChild (createEmptyAction ());
aActionCell.addChild (createEditLink (aWPEC, aUserGroup, EWebPageText.OBJECT_EDIT.getDisplayTextWithArgs (aDisplayLocale, aUserGroup.getName ()))); aActionCell.addChild (" "); if (canDeleteUserGroup (aUserGroup)) aActionCell.addChild (createDeleteLink (aWPEC, aUserGroup, EWebPageText.OBJECT_DELETE.getDisplayTextWithArgs (aDisplayLocale, aActionCell.addChild (createEmptyAction ()); aActionCell.addChild (" "); if (canUndeleteUserGroup (aUserGroup)) aActionCell.addChild (createUndeleteLink (aWPEC, aUserGroup, EWebPageText.OBJECT_UNDELETE.getDisplayTextWithArgs (aDisplayLocale, aActionCell.addChild (createEmptyAction ());
if (aLocale.getCountry ().length () > 0) aDiv.addChild (" (" + aLocale.getDisplayCountry (aDisplayLocale) + ")"); aCell.addChild (aDiv);
if (aLocale.getCountry ().length () > 0) aDiv.addChild (" (" + aLocale.getDisplayCountry (aDisplayLocale) + ")"); aCell.addChild (aDiv);
aActionCell.addChild (createEditLink (aWPEC, aCurObject, EWebPageText.OBJECT_EDIT.getDisplayTextWithArgs (aDisplayLocale, aCurObject.getName ()))); if (_canDelete (aCurObject)) aActionCell.addChild (createDeleteLink (aWPEC, aCurObject, EWebPageText.OBJECT_DELETE.getDisplayTextWithArgs (aDisplayLocale, aCurObject.getName ()))); else aActionCell.addChild (createEmptyAction ()); aActionCell.addChild (new HCA (aWPEC.getSelfHref () .add (CPageParam.PARAM_ACTION, ACTION_TEST_MAIL) .add (CPageParam.PARAM_OBJECT, aCurObject.getID ()))
aActionCell.addChild (createEditLink (aWPEC, aCurObject, EWebPageText.OBJECT_EDIT.getDisplayTextWithArgs (aDisplayLocale, aCurObject.getName ()))); if (_canDelete (aCurObject)) aActionCell.addChild (createDeleteLink (aWPEC, aCurObject, EWebPageText.OBJECT_DELETE.getDisplayTextWithArgs (aDisplayLocale, aCurObject.getName ()))); else aActionCell.addChild (createEmptyAction ()); aActionCell.addChild (new HCA (aWPEC.getSelfHref () .add (CPageParam.PARAM_ACTION, ACTION_TEST_MAIL) .add (CPageParam.PARAM_OBJECT, aCurObject.getID ()))