Package com.cubusmail.gwtui.client.widgets

Examples of com.cubusmail.gwtui.client.widgets.ImageHyperlink


    FlowPanel panel = new FlowPanel();
    initWidget( panel );
    DOM.setStyleAttribute( panel.getElement(), "whiteSpace", "nowrap" );
    DOM.setStyleAttribute( getElement(), "whiteSpace", "nowrap" );

    ImageHyperlink link = new ImageHyperlink( new Image( GWT.getHostPageBaseURL() + ImageProvider.MSG_ATTACHMENT ) );
    link.addRightButtonListener( new MainLinkRightButtonListener() );
    panel.add( link );

    ImageHyperlink link2 = new ImageHyperlink();
    link2.setText( attachment.getFileName() );
    link2.addRightButtonListener( new MainLinkRightButtonListener() );
    panel.add( link2 );
   
    panel.add( new HTML( " (" + attachment.getSizeText() + ", " ) );
    ImageHyperlink previewLink = new ImageHyperlink();
    previewLink.addLeftButtonListener( new RemoveLinkLeftButtonListener() );
    previewLink.setTextTextProvider.get().common_remove_text() );
    panel.add( previewLink );
    panel.add( new HTML( ")    " ) );

    this.removeAttachmentAction = new RemoveAttachmentAction( attachment, view );
    this.contextMenu = new Menu();
View Full Code Here


          loadMessage( currentMessage.getId(), true );
          messagesImageLoaded.put( Long.valueOf( currentMessage.getId() ), Boolean.TRUE );
        }
      } );

      ImageHyperlink imageLlink = new ImageHyperlink( WARNING_IMAGE );
      panel.add( imageLlink );
      HTML warningText = new HTML( "&nbsp;<b>" + TextProvider.get().message_reading_pane_panel_warning()
          + "</b>&nbsp;" );
      panel.add( warningText );
      panel.add( link );
View Full Code Here

    FlowPanel panel = new FlowPanel();
    initWidget( panel );
    DOM.setStyleAttribute( panel.getElement(), "whiteSpace", "nowrap" );
    DOM.setStyleAttribute( getElement(), "whiteSpace", "nowrap" );

    ImageHyperlink link = new ImageHyperlink( new Image( GWT.getHostPageBaseURL() + ImageProvider.MSG_ATTACHMENT ) );
    link.addLeftButtonListener( new MainLinkLeftButtonListener() );
    link.addRightButtonListener( new MainLinkRightButtonListener() );
    panel.add( link );

    ImageHyperlink link2 = new ImageHyperlink();
    link2.setText( attachment.getFileName() );
    link2.addLeftButtonListener( new MainLinkLeftButtonListener() );
    link2.addRightButtonListener( new MainLinkRightButtonListener() );
    panel.add( link2 );

    panel.add( new HTML( "&nbsp;(" + attachment.getSizeText() + ")&nbsp;" ) );
    if ( attachment.isPreview() ) {
      ToolTip tip = new ToolTip();
      String url = ServiceProvider.getRetrieveImageServletUrl( attachment.getMessageId(), attachment.getIndex(),
          true );
      tip.setHtml( "<img src=\"" + url + "\"/>" );
      tip.setWidth( 300 );
      tip.setHeight( 200 );
      tip.applyTo( this.getElement() );
    }
    ImageHyperlink downloadLink = new ImageHyperlink( new Image( GWT.getHostPageBaseURL()
        + ImageProvider.MSG_DOWNLOAD ) );
    downloadLink.addLeftButtonListener( new DownloadLeftButtonListener() );
    panel.add( downloadLink );
    panel.add( new HTML( "&nbsp;&nbsp;&nbsp;" ) );

    this.downloadAttachmentAction = new DownloadAttachmentAction( attachment );
    this.viewAttachmentAction = new ViewAttachmentAction( attachment );
View Full Code Here

TOP

Related Classes of com.cubusmail.gwtui.client.widgets.ImageHyperlink

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.