@ Nonnull @ OverrideOnDemand protected TOOLBAR_TYPE createEditToolbar ( @ Nonnull final WPECTYPE aWPEC , @ Nonnull final FORM_TYPE aForm , @ Nonnull final DATATYPE aSelectedObject ) { final Locale aDisplayLocale = aWPEC . getDisplayLocale ( ) ; final TOOLBAR_TYPE aToolbar = createNewEditToolbar ( aWPEC ) ; aToolbar . addHiddenField ( CPageParam . PARAM_ACTION , CPageParam . ACTION_EDIT ) ; aToolbar . addHiddenField ( CPageParam . PARAM_OBJECT , aSelectedObject . getID ( ) ) ; aToolbar . addHiddenField ( CPageParam . PARAM_SUBACTION , CPageParam . ACTION_SAVE ) ; // Save button aToolbar . addSubmitButton ( getEditToolbarSubmitButtonText ( aDisplayLocale ) , getEditToolbarSubmitButtonIcon ( ) ) ; // Cancel button aToolbar . addButtonCancel ( aDisplayLocale ) ; // Callback modifyEditToolbar ( aWPEC , aSelectedObject , aToolbar ) ; return aToolbar ; }
Create toolbar for editing an existing object