public void onChange(CmsFileInput fileInput) {

        if (m_dialog == null) {
            m_dialog = new CmsReplaceDialog(this);
            m_dialog.center();
            m_dialog.initContent(m_structureId);
            if (m_closeHandler != null) {
                m_dialog.addCloseHandler(m_closeHandler);
            }
        } else if (m_uploadButton != null) {
            m_uploadButton.createFileInput();
        }
        if (fileInput.getFiles().length == 1) {
            m_dialog.setFileInput(fileInput);
        }
        if (m_menuItem != null) {
            m_menuItem.getParentMenu().hide();
        }
    }
public void onChange ( CmsFileInput fileInput ) { if ( m_dialog == null ) { m_dialog = new CmsReplaceDialog ( this ) ; m_dialog . center ( ) ; m_dialog . initContent ( m_structureId ) ; if ( m_closeHandler != null ) { m_dialog . addCloseHandler ( m_closeHandler ) ; } } else if ( m_uploadButton != null ) { m_uploadButton . createFileInput ( ) ; } if ( fileInput . getFiles ( ) . length == 1 ) { m_dialog . setFileInput ( fileInput ) ; } if ( m_menuItem != null ) { m_menuItem . getParentMenu ( ) . hide ( ) ; } }
@see org.opencms.gwt.client.ui.input.upload.I_CmsUploadButtonHandler#onChange(org.opencms.gwt.client.ui.input.upload.CmsFileInput)