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

Examples of com.google.gwt.user.client.ui.Tree$Resources


    private DRLEditorPresenter presenter;

    private final Tree tree;

    public FactTypeBrowserWidget( final ClickEvent ev ) {
        this.tree = new Tree();

        final VerticalPanel panel = new VerticalPanel();
        final HorizontalPanel hpFactsAndHide = new HorizontalPanel();
        final HorizontalPanel hpShow = new HorizontalPanel();
View Full Code Here


        close.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                hide();
            }
        });
        tree = new Tree();
        ScrollPanel scroll = new ScrollPanel();
        scroll.setSize("600px", "200px");
        scroll.add(tree);
        DOM.setStyleAttribute(scroll.getElement(), "border", "1px");
       
View Full Code Here

     */
    @Override
    public void onModuleLoad() {
        RootPanel root = RootPanel.get("tree");
        if (root != null) {
            tree = new Tree();
            root.add(tree);
        }
        errorLabel = new Label();
        RootPanel.get("error").add(errorLabel);
        thumbnails = RootPanel.get("thumbnails");
View Full Code Here

    }

    // Initialize the options menu
    {
      // Attach a tree listener
      Tree menu = new Tree();
      menu.addSelectionHandler(new SelectionHandler<TreeItem>() {
        public void onSelection(SelectionEvent<TreeItem> event) {
          Widget option = optionMap.get(event.getSelectedItem());
          if (option != null) {
            optionWrapper.setWidget(option);
          }
View Full Code Here

      throw new RuntimeException("What?");
    }
  }

  private void createTree(int numBranches, int numNodes, TreeType type) {
    Tree t = new Tree();
    TreeItem root = t.addItem("root");

    ArrayList front = new ArrayList();
    front.add(add(root, type));
    int count = 0;
    while (true) {
View Full Code Here

    ++row;
    final int widgetRow = row + 1;
    table.setWidget(row, 0, new Button("Normal tree", new ClickListener() {
      public void onClick(Widget sender) {
        long time = System.currentTimeMillis();
        Tree t = new Tree();
        profileCreateTree(t, Integer.parseInt(branches.getText()),
            Integer.parseInt(nodes.getText()),
            TreeType.getType(type.getSelectedIndex()));
        table.setWidget(widgetRow, 0, t);
        Window.alert("Elapsed time: " + (System.currentTimeMillis() - time));
View Full Code Here

  /**
   * Constructor
   */
  public FieldGroupViewer() {
    super();
    tree = new Tree();
    panel = new SimplePanel();
    panel.add(tree);
    initWidget(panel);
  }
View Full Code Here

* Menu on the left
*/
public class MenuPanel extends Composite {

  public MenuPanel(ServiceRegistry serviceRegistry, final MainPane mainPane) {
    Tree menuTree = new Tree() {
      public void onBrowserEvent(Event e) {
        {
          sinkEvents(Event.ONCLICK);
        }
        super.onBrowserEvent(e);
        if (DOM.eventGetType(e) == Event.ONCLICK) {
          handleEvent(getSelectedItem().getText());
        }
      }

      private void handleEvent(String text) {
//        GWT.log(text,null);
        if ("Screen 1".equalsIgnoreCase(text)) {
          mainPane.showScreen1();
        }
        else if ("Screen 2".equalsIgnoreCase(text)) {
          mainPane.showScreen2();
        }
      }
    };
   
    DockPanel main = new DockPanel();

    menuTree.addItem("Screen 1");
    menuTree.addItem("Screen 2");
    main.add(menuTree, DockPanel.NORTH);
    initWidget(main);
  }
View Full Code Here

  /**
   * Constructor
   */
  public ModelViewer() {
    super();
    tree = new Tree();
    panel = new SimplePanel();
    panel.add(tree);
    initWidget(panel);
  }
View Full Code Here

    flexTable_1.setSize("5cm", "4cm");
   
    Label lblThisIsYour = new Label("This is your status: ");
    flexTable_1.setWidget(0, 0, lblThisIsYour);
   
    Tree tree = new Tree();
    flexTable_1.setWidget(1, 0, tree);
   
    TreeItem trtmNewItem = new TreeItem("New item");
    tree.addItem(trtmNewItem);
   
    TreeItem trtmNewItem_1 = new TreeItem("New item");
    trtmNewItem.addItem(trtmNewItem_1);
    trtmNewItem.setState(true);
   
    TreeItem trtmNewItem_2 = new TreeItem("New item");
    tree.addItem(trtmNewItem_2);
   
    TreeItem trtmNewItem_4 = new TreeItem("New item");
    trtmNewItem_2.addItem(trtmNewItem_4);
    trtmNewItem_2.setState(true);
   
    TreeItem trtmNewItem_3 = new TreeItem("New item");
    tree.addItem(trtmNewItem_3);
   
    FlexTable flexTable = new FlexTable();
    setWidget(0, 2, flexTable);
    flexTable.setSize("100%", "100%");
   
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.Tree$Resources

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.