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

Examples of com.google.gwt.user.client.ui.Tree$ImagesFromImageBase$Prototype


    @PostConstruct
    private void initUI() {
        initWidget(mainPanel);

        Tree leftTree = initNavigationTree();
        leftTree.setWidth("150px");
        Style leftStyle = leftPanel.getElement().getStyle();
        leftStyle.setPropertyPx("margin", 5);
        leftPanel.add(leftTree);
        mainPanel.add(leftPanel);
View Full Code Here


        // Greetings
        rightPanel.add(new HTML("Dashbuilder Gallery"));
    }

    private Tree initNavigationTree() {
        Tree navTree = new Tree();

        List<GalleryNode> mainNodes = galleryTree.getMainNodes();
        populateNavigationTree(mainNodes, navTree);

        navTree.addSelectionHandler(new SelectionHandler<TreeItem>() {
            public void onSelection(SelectionEvent<TreeItem> event) {
                TreeItem ti = event.getSelectedItem();
                GalleryNode node = (GalleryNode) ti.getUserObject();
                treeItemClicked(ti, node);
            }
View Full Code Here

   * @param images the {@link Images} used in the Mail options
   * @return the {@link Tree} of mail options
   */
  @ShowcaseSource
  private Tree createMailItem(Images images) {
    Tree mailPanel = new Tree(images);
    TreeItem mailPanelRoot = mailPanel.addItem("foo@example.com");
    String[] mailFolders = constants.cwStackPanelMailFolders();
    addItem(mailPanelRoot, images.inbox(), mailFolders[0]);
    addItem(mailPanelRoot, images.drafts(), mailFolders[1]);
    addItem(mailPanelRoot, images.templates(), mailFolders[2]);
    addItem(mailPanelRoot, images.sent(), mailFolders[3]);
View Full Code Here

       
        for (Map.Entry<String,String> entry : springContextElements.entrySet()) {
            mainPanel.add(new PanelButton(entry.getKey(), entry.getValue()));
        }

        final Tree resourcesTree = new Tree();
        mainPanel.add(resourcesTree);

        final TreeItem rootItem = new TreeItem(constants.Packages());

        //Global Area Data
        RepositoryServiceFactory.getPackageService().loadGlobalPackage(new AsyncCallback<PackageConfigData>()   {

            public void onFailure(Throwable caught) {
                ErrorPopup.showMessage("Error listing Global Area information!");
            }

            public void onSuccess(PackageConfigData result) {
                populatePackageTree(result, rootItem);
            }
        });

        //Packages Data
        RepositoryServiceFactory.getPackageService().listPackages(new AsyncCallback<PackageConfigData[]>()    {

            public void onFailure(Throwable caught) {
                ErrorPopup.showMessage("Error listing package information!");
            }

            public void onSuccess(PackageConfigData[] result) {
                for (int i = 0; i < result.length; i++) {
                    final PackageConfigData packageConfigData = result[i];
                    populatePackageTree(packageConfigData, rootItem);
                }
            }
        });

        resourcesTree.addItem(rootItem);
        resourcesTree.setStyleName("category-explorer-Tree"); //NON-NLS
        resourcesTree.addSelectionHandler(new SelectionHandler<TreeItem>()    {

            public void onSelection(SelectionEvent<TreeItem> event) {
                Object o = event.getSelectedItem().getUserObject();
                if (o instanceof String) {
                }
View Full Code Here

            return null;
        }
    }

    public Tree createTree() {
        return new Tree();
    }
View Full Code Here

    private static void infanticide( final TreeItem treeNode ) {
        treeNode.removeItems();
    }

    public static Tree getQAStructure( final Map<TreeItem, String> itemWidgets ) {
        Tree tree = new Tree();
        tree.setAnimationEnabled( true );

        final TreeItem scenarios = new TreeItem( Util.getHeader( INSTANCE.TestManagerNoAlt(), constants.TestScenariosInPackages() ) );
        scenarios.addItem( new TreeItem( constants.PleaseWaitDotDotDot() ) );
        tree.addItem( scenarios );
        itemWidgets.put( scenarios, TEST_SCENARIOS_ROOT_ID );

        final TreeItem analysis = new TreeItem( Util.getHeader( INSTANCE.AnalyzeNoAlt(), constants.Analysis() ) );
        analysis.addItem( new TreeItem( constants.PleaseWaitDotDotDot() ) );
        itemWidgets.put( analysis, ANALYSIS_ROOT_ID );

        if ( ApplicationPreferences.showVerifier() ) {
            tree.addItem( analysis );
        }

        return tree;
    }
View Full Code Here

    private final Tree tree;

    private boolean isDSLR;

    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

   
    SplitLayoutPanel splitEntityInfo = new SplitLayoutPanel();
    deckChild2.add(splitEntityInfo);
    splitEntityInfo.setHeight("88px");
   
    Tree tree = new Tree();
    splitEntityInfo.addEast(tree, 209.0);
   
    TreeItem trtmProject = new TreeItem("Project");
    tree.addItem(trtmProject);
   
    VerticalPanel verticalPanel = new VerticalPanel();
    splitEntityInfo.add(verticalPanel);
   
    Label lblContainer = new Label("Prima di iniziare, dobbiamo definire un nome per questo contenitore:");
    verticalPanel.add(lblContainer);
   
    FlexTable flexTableContainer = new FlexTable();
    verticalPanel.add(flexTableContainer);
    flexTableContainer.setSize("100%", "");
   
    Label lblNomeContainer = new Label("Nome");
    flexTableContainer.setWidget(0, 0, lblNomeContainer);
   
    TextBox txtNomeContainer = new TextBox();
    flexTableContainer.setWidget(0, 1, txtNomeContainer);
   
    VerticalPanel deckChild3 = new VerticalPanel();
    deckChild3.setVisible(false);
    deckPanel.add(deckChild3);
    deckChild3.setHeight("142px");
   
    Label lblTitleAttributes = new Label("Eccellente!  Ora iniziamo definire il tuo oggetto.");
    deckChild3.add(lblTitleAttributes);
   
    SplitLayoutPanel splitAttributes = new SplitLayoutPanel();
    deckChild3.add(splitAttributes);
    splitAttributes.setHeight("88px");
   
    Tree treeAttribute = new Tree();
    splitAttributes.addEast(treeAttribute, 209.0);
   
    TreeItem trtmProjectAttribute = new TreeItem("Project");
    treeAttribute.addItem(trtmProjectAttribute)
   
    TreeItem trtmEntityInfo = new TreeItem("Entity name");
    trtmProjectAttribute.addItem(trtmEntityInfo);
    trtmProjectAttribute.setState(true);
   
View Full Code Here

        extends Composite {

    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

      // Add a CheckBox to the tree
      item2 = new TreeItem(new CheckBox("item2"));
      parent.addItem(item2);

      tree = new Tree();
      tree.addItem(parent);

      // Add it to the root panel.
      RootPanel.get().add(tree);
View Full Code Here

TOP

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

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.