@Nonnull
  @OverrideOnDemand
  protected TOOLBAR_TYPE createViewToolbar (@Nonnull final WPECTYPE aWPEC,
                                            final boolean bCanGoBack,
                                            @Nonnull final DATATYPE aSelectedObject)
  {
    final Locale aDisplayLocale = aWPEC.getDisplayLocale ();

    final TOOLBAR_TYPE aToolbar = createNewViewToolbar (aWPEC);
    if (bCanGoBack)
    {
      // Back to list
      aToolbar.addButtonBack (aDisplayLocale);
    }
    if (isActionAllowed (aWPEC, EWebPageFormAction.EDIT, aSelectedObject))
    {
      // Edit object
      aToolbar.addButtonEdit (aDisplayLocale, createEditURL (aWPEC, aSelectedObject));
    }

    // Callback
    modifyViewToolbar (aWPEC, aSelectedObject, aToolbar);
    return aToolbar;
  }
@ Nonnull @ OverrideOnDemand protected TOOLBAR_TYPE createViewToolbar ( @ Nonnull final WPECTYPE aWPEC , final boolean bCanGoBack , @ Nonnull final DATATYPE aSelectedObject ) { final Locale aDisplayLocale = aWPEC . getDisplayLocale ( ) ; final TOOLBAR_TYPE aToolbar = createNewViewToolbar ( aWPEC ) ; if ( bCanGoBack ) { aToolbar . addButtonBack ( aDisplayLocale ) ; } if ( isActionAllowed ( aWPEC , EWebPageFormAction . EDIT , aSelectedObject ) ) { aToolbar . addButtonEdit ( aDisplayLocale , createEditURL ( aWPEC , aSelectedObject ) ) ; } modifyViewToolbar ( aWPEC , aSelectedObject , aToolbar ) ; return aToolbar ; }
Create toolbar for viewing an existing object. Contains the back button and
the edit button.

@param aWPEC
The web page execution context. Never <code>null</code>.
@param bCanGoBack
<code>true</code> to enable back button
@param aSelectedObject
The selected object
@return Never <code>null</code>.