code: private I_CmsUploadButtonHandler createButtonHandler() {
  
          I_CmsUploadButtonHandler buttonHandler = null;
          switch (getState().getUploadType()) {
              case singlefile:
                  buttonHandler = new CmsSingleFileUploadHandler(
                      new ButtonContextSupplier(),
                      getState().getDialogTitle());
                  ((CmsSingleFileUploadHandler)buttonHandler).setTargetFolderPath(getState().getTargetFolderRootPath());
                  ((CmsSingleFileUploadHandler)buttonHandler).setTargetFileName(getState().getTargetFileName());
                  ((CmsSingleFileUploadHandler)buttonHandler).setTargetFileNamePrefix(
                      getState().getTargetFileNamePrefix());
                  break;
              case multifile:
              default:
                  buttonHandler = new CmsDialogUploadButtonHandler(new ButtonContextSupplier());
                  ((CmsDialogUploadButtonHandler)buttonHandler).setIsTargetRootPath(true);
                  ((CmsDialogUploadButtonHandler)buttonHandler).setTargetFolder(getState().getTargetFolderRootPath());
                  break;
          }
          return buttonHandler;
      }
docs: Creates a button handler according to the component state.<p>
  
  @return the button handler