Ejemplo n.º 1
0
  private Window createStatisticWindow() {

    Window w = new Window();
    w.setIcon(IconHelper.createStyle("bogus"));
    w.setMinimizable(true);
    w.setMaximizable(true);
    w.setHeading("Statistics ");
    w.setSize(400, 400);

    w.setLayout(new AccordionLayout());

    ContentPanel cp = new ContentPanel();
    cp.setHeading("Most contacted friends this month");
    cp.setFrame(false);
    cp.setSize(300, 300);

    Frame frame = new Frame();
    frame.setUrl("chart.html");
    frame.setLayoutData(new FitLayout());
    cp.setLayout(new FitLayout());
    cp.add(frame);

    w.add(cp);

    cp = new ContentPanel();
    cp.setHeading("Most contacted friends in total");
    cp.setFrame(false);
    cp.setSize(300, 300);

    frame = new Frame();
    frame.setUrl(
        "https://chart.googleapis.com/chart?cht=p3&chs=350x200&chd=t:70,30,10&&chl=Hollie|Emerson|Christinal");
    frame.setLayoutData(new FitLayout());
    cp.setLayout(new FitLayout());
    cp.add(frame);

    w.add(cp);

    cp = new ContentPanel();
    cp.setHeading("Average sms per day last two weeks");
    cp.setFrame(false);
    cp.setSize(300, 300);

    frame = new Frame();
    frame.setUrl(
        "https://chart.googleapis.com/chart?cht=lc&chs=350x200&chd=t:25,50,70,90,25,44,56,34,23,56,0,0,34,5,5,103,3,2,6,13&&chl=1|2|3|4|5|6|7|8|9|10|11|12|13|14&chxt=x,y");
    frame.setLayoutData(new FitLayout());
    cp.setLayout(new FitLayout());
    cp.add(frame);

    w.add(cp);

    return w;
  }
Ejemplo n.º 2
0
  private Window createGeolocationWindow() {

    final Window w = new Window();
    w.setMinimizable(true);
    w.setMaximizable(true);
    w.setIcon(IconHelper.createStyle("accordion"));
    w.setHeading("Contact list");
    w.setWidth(500);
    w.setHeight(500);
    w.setLayout(new FitLayout());

    ContentPanel cp = new ContentPanel();
    cp.setAnimCollapse(false);
    cp.setHeading("Localize your friends");
    cp.setScrollMode(Scroll.NONE);
    cp.setLayout(new FitLayout());

    Frame frame = new Frame();
    frame.setUrl("geolocation.html");
    frame.setLayoutData(new FitLayout());
    cp.add(frame);

    w.add(cp);
    return w;
  }
Ejemplo n.º 3
0
 /** {@inheritDoc} */
 @Override
 public void getAdditionalProposalInfo(AsyncCallback<Widget> callback) {
   Frame frame = new Frame();
   frame.setSize("100%", "100%");
   frame.getElement().getStyle().setBorderStyle(Style.BorderStyle.NONE);
   frame.getElement().setAttribute("sandbox", ""); // empty value, not null
   frame.getElement().getStyle().setProperty("resize", "both");
   frame.setUrl(client.getProposalDocUrl(id, sessionId));
   callback.onSuccess(frame);
 }
Ejemplo n.º 4
0
 public void insertFormIFrame(final String aFormIFrame) {
   myIFrame = new FormPageFrame();
   myIFrame.setStyleName("form_view_frame");
   final Element theElement = myIFrame.getElement();
   theElement.setId(formId);
   theElement.setAttribute("frameBorder", "0");
   theElement.setAttribute("allowTransparency", "true");
   myIFrame.setUrl(aFormIFrame);
   mySecondRowPanel.add(myIFrame);
 }
Ejemplo n.º 5
0
  public void refresh() {
    if (isOverviewVisible) {
      try {
        if (DOMUtils.getInstance().isInternetExplorer()) {
          update();
        } else {
          if (myIFrame != null) {
            myIFrame.setUrl(cleanURL(myIFrame.getUrl()));
          }
        }

      } catch (Exception e) {
        Window.alert("Unable to refresh the Case recap! " + e.getMessage());
      }
    }
    mustRefresh = false;
  }
Ejemplo n.º 6
0
  public Window createVideoWindow() {

    Window w = new Window();
    w.setSize(800, 800);
    w.setMinimizable(true);
    w.setMaximizable(true);
    w.setBodyBorder(false);
    w.setBorders(false);
    w.setHeading("Received mms:)");

    Frame frame = new Frame();
    frame.setUrl("video.html");
    frame.setLayoutData(new FitLayout());
    w.setLayout(new FitLayout());
    w.add(frame);

    return w;
  }
Ejemplo n.º 7
0
  public Window createPrezioWindow() {

    Window w = new Window();
    w.setSize(500, 500);
    w.setMinimizable(true);
    w.setMaximizable(true);
    w.setBodyBorder(false);
    w.setBorders(false);
    w.setHeading("Presentation:)");

    Frame frame = new Frame();
    frame.setUrl("https://prezi.com/secure/40398e8bef489ebec26c2f09c4e0cf4b1d419524/");
    frame.setLayoutData(new FitLayout());
    w.setLayout(new FitLayout());
    w.add(frame);

    return w;
  }
Ejemplo n.º 8
0
 public void setReportURL(String rptURL) {
   content.setUrl(rptURL);
 }
Ejemplo n.º 9
0
 /**
  * Sets the URL of the resource to be downloaded.
  *
  * @param url the resource's new URL
  */
 public void setUrl(String url) {
   frame.setUrl(url);
 }