protected CmsPushButton createNewExternalLinkButton(final String parentPath) {

        final CmsResourceTypeBean typeInfo = getTabHandler().getTypeInfo(
            CmsEditExternalLinkDialog.POINTER_RESOURCE_TYPE_NAME);
        CmsPushButton createNewButton = null;
        if (typeInfo != null) {
            createNewButton = new CmsPushButton(I_CmsButton.ADD_SMALL);
            createNewButton.setTitle(
                org.opencms.gwt.client.Messages.get().key(
                    org.opencms.gwt.client.Messages.GUI_CREATE_NEW_LINK_DIALOG_TITLE_0));
            createNewButton.setButtonStyle(ButtonStyle.FONT_ICON, null);
            createNewButton.addClickHandler(new ClickHandler() {

                public void onClick(ClickEvent event) {

                    CmsEditExternalLinkDialog dialog = CmsEditExternalLinkDialog.showNewLinkDialog(
                        typeInfo,
                        parentPath);
                    dialog.addCloseHandler(new CloseHandler<PopupPanel>() {

                        public void onClose(CloseEvent<PopupPanel> closeEvent) {

                            getTabHandler().updateIndex();
                        }
                    });
                }
            });
        }
        return createNewButton;
    }
protected CmsPushButton createNewExternalLinkButton ( final String parentPath ) { final CmsResourceTypeBean typeInfo = getTabHandler ( ) . getTypeInfo ( CmsEditExternalLinkDialog . POINTER_RESOURCE_TYPE_NAME ) ; CmsPushButton createNewButton = null ; if ( typeInfo != null ) { createNewButton = new CmsPushButton ( I_CmsButton . ADD_SMALL ) ; createNewButton . setTitle ( org . opencms . gwt . client . Messages . get ( ) . key ( org . opencms . gwt . client . Messages . GUI_CREATE_NEW_LINK_DIALOG_TITLE_0 ) ) ; createNewButton . setButtonStyle ( ButtonStyle . FONT_ICON , null ) ; createNewButton . addClickHandler ( new ClickHandler ( ) { public void onClick ( ClickEvent event ) { CmsEditExternalLinkDialog dialog = CmsEditExternalLinkDialog . showNewLinkDialog ( typeInfo , parentPath ) ; dialog . addCloseHandler ( new CloseHandler < PopupPanel > ( ) { public void onClose ( CloseEvent < PopupPanel > closeEvent ) { getTabHandler ( ) . updateIndex ( ) ; } } ) ; } } ) ; } return createNewButton ; }
Generates a button to create new external link resources.<p>

@param parentPath the parent folder site path

@return the button widget