Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.Frame


public class FacebookLikeWidget extends SimplePanel {

  @SuppressWarnings("deprecation")
  public FacebookLikeWidget(PermissibleObject permissibleObject, List<String> ignoredParameters) {
    Frame frame = new Frame();
    frame.setUrl("http://www.facebook.com/plugins/like.php?&action=like&layout=standard&height=20&width=90&href="
        + URL.encodeComponent(PermaLinkBuilder.getLink(permissibleObject, ignoredParameters)));
    DOM.setElementAttribute(frame.getElement(), "frameBorder", "0");
    DOM.setElementAttribute(frame.getElement(), "allowTransparency", "true");
    DOM.setStyleAttribute(frame.getElement(), "height", "24px");
    DOM.setStyleAttribute(frame.getElement(), "width", "300px");
    // DOM.setStyleAttribute(frame.getElement(), "backgroundColor", "#e3e3e3");
    setWidget(frame);
  }
View Full Code Here


import com.google.gwt.user.client.ui.SimplePanel;

public class TwitterWidget extends SimplePanel {

  public TwitterWidget(PermissibleObject permissibleObject, List<String> ignoredParameters) {
    Frame frame = new Frame();

    @SuppressWarnings("deprecation")
    String url = URL.encodeComponent(PermaLinkBuilder.getLink(permissibleObject, ignoredParameters));

    frame.setUrl("http://platform.twitter.com/widgets/tweet_button.html?count=horizontal&url=" + url);
    DOM.setElementAttribute(frame.getElement(), "frameBorder", "0");
    DOM.setElementAttribute(frame.getElement(), "allowTransparency", "true");
    DOM.setElementAttribute(frame.getElement(), "scrolling", "no");
    DOM.setStyleAttribute(frame.getElement(), "height", "20px");
    DOM.setStyleAttribute(frame.getElement(), "width", "130px");
    // DOM.setStyleAttribute(frame.getElement(), "backgroundColor", "#e3e3e3");
    setWidget(frame);
  }
View Full Code Here

        MP3Player.getInstance().addSoundToPlayList(name, url);
        MP3Player.getInstance().play();
        MP3Player.getInstance().show();
      } else {
        String url = BaseApplication.getSettings().getString("GetFileService", BaseApplication.GET_FILE_SERVICE_PATH) + object.getId() + "_attachment_" + object.getName();
        final Frame hidden = new Frame(url);
        DOM.setStyleAttribute(hidden.getElement(), "display", "none");
        RootPanel.get().add(hidden);
      }
    }
  }
View Full Code Here

    this.object = object;
  }

  public void execute() {
    String url = BaseApplication.getSettings().getString("GetFileService", BaseApplication.GET_FILE_SERVICE_PATH) + object.getId() + "_attachment_" + object.getName();
    final Frame hidden = new Frame(url);
    DOM.setStyleAttribute(hidden.getElement(), "display", "none");
    RootPanel.get().add(hidden);
    return;
  }
View Full Code Here

  public void onModuleLoad() {
    SBQuoteService service = new SBQuoteService();
    service.activate();
   
    SBTabControl control = new SBTabControl();
    control.addPanel("Home", new Frame("/html/home.html"));
    control.addPanel("baseData", new Frame("/html/baseData.html"));       
    control.activate();
  }
View Full Code Here

   *
   * @param url the url
   * @return the frame widget
   */
  public Frame setUrl(String url) {
    Frame f = new Frame(url);
    f.getElement().setPropertyInt("frameBorder", 0);
    removeAll();
    setLayout(new FitLayout());
    add(f);
    layout();
    return f;
View Full Code Here

   *
   * @param url the url
   * @return the new frame instance
   */
  public Frame setUrl(String url) {
    Frame f = new Frame(url);
    f.getElement().setPropertyInt("frameBorder", 0);
    removeAll();
    setLayout(new FitLayout());
    add(f);
    layout();
    return f;
View Full Code Here

                           CustomFormConfiguration configuration) {
        super( image,
               title );
        this.configuration = configuration;

        this.externalFrame = new Frame();
        this.externalFrame.setWidth( configuration.getCustomFormWidth() + "px" );
        this.externalFrame.setHeight( configuration.getCustomFormHeight() + "px" );

        VerticalPanel vp = new VerticalPanel();
        vp.setWidth( "100%" );
View Full Code Here

public class FrameTest extends GwtTestTest {

   @Test
   public void title() {
      // Arrange
      Frame f = new Frame();

      // Act
      f.setTitle("title");

      // Assert
      assertEquals("title", f.getTitle());
   }
View Full Code Here

   }

   @Test
   public void url() {
      // Arrange
      Frame f = new Frame("url");
      // Pre-Assert
      assertEquals("url", f.getUrl());

      // Act
      f.setUrl("newURL");

      // Assert
      assertEquals("newURL", f.getUrl());
   }
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.Frame

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.