Reply to comment

lourenzo's picture

Fiz o download em http://code.google.com/intl/pt-BR/webtoolkit/
Na pasta samples, tem alguns exemplos como esse abaixo.

O código é em Java, depois de compilado, vira HTML + JavaScript + CSS

  /**
   * Constructs a new mailboxes widget with a bundle of images.
   *
   * @param images a bundle that provides the images for this widget
   */

  public Mailboxes(Images images) {
    tree = new Tree(images);
    TreeItem root = new TreeItem(
        imageItemHTML(images.home(), "foo@example.com"));
    tree.addItem(root);

    addImageItem(root, "Inbox", images.inbox());
    addImageItem(root, "Drafts", images.drafts());
    addImageItem(root, "Templates", images.templates());
    addImageItem(root, "Sent", images.sent());
    addImageItem(root, "Trash", images.trash());

    root.setState(true);
    initWidget(tree);
  }

Lourenzo Ferreira

Reply

Usando nome e URL
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • [left]Conteúdo[/left] [right]Conteúdo[/right]
  • {{ url [|text] [|title] [|rel] [|target] }}
  • You may quote other posts using [quote] tags.

More information about formatting options