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

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


            else
            {
                imageContainer.add(new Image("/style/images/gadget-gallery-default.png"));
            }

            applyGadget = new Hyperlink("Apply App", History.getToken());
            applyGadget.addStyleName(StaticResourceBundle.INSTANCE.coreCss().applyGadget());
            applyGadget.addClickHandler(new ClickHandler()
            {
                public void onClick(final ClickEvent event)
                {
View Full Code Here


        body.add(tosExplanation);
        body.add(tosHeader);
        body.add(tosText);

        acceptTos = new Hyperlink("Accept", History.getToken());
        acceptTos.addStyleName(StaticResourceBundle.INSTANCE.coreCss().agreeButton());
        acceptTos.addStyleName(StaticResourceBundle.INSTANCE.coreCss().agreeButtonDisabled());
        cancelTos = new Anchor("Cancel", "http://www.eurekastreams.org");
        cancelTos.addStyleName(StaticResourceBundle.INSTANCE.coreCss().disagreeButton());
View Full Code Here

        }

        String linkUrl = Session.getInstance().generateUrl(
                new CreateUrlRequest(page, entityUniqueId));

        Hyperlink link = new InlineHyperlink("", linkUrl);
        main.add(link);
        // Manipulate HTML to put the
        // class, whose CSS includes a badge image,
        // within the anchor tag for the gwt-InlineHyperlink
        if (allowBadge)
        {
            Widget badgeForGroupCoordinator = AvatarBadgeManager.getInstance()
                        .createOverlay(entityUniqueId, size);
            link.getElement().appendChild(badgeForGroupCoordinator
                    .getElement());
        }
        link.getElement().appendChild(avatar.getElement());
    }
View Full Code Here

        final FlowPanel lastNamePanel = new FlowPanel();
        lastNamePanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().searchList());

        lastNamePanel.add(lastName);

        search = new Hyperlink("Search", History.getToken());
        search.addStyleName(StaticResourceBundle.INSTANCE.coreCss().searchListButton());
        lastNamePanel.add(search);

        lookupPanel.add(lastNamePanel);

        results.setName(StaticResourceBundle.INSTANCE.coreCss().results());
        results.addStyleName(StaticResourceBundle.INSTANCE.coreCss().results());
        results.setVisibleItemCount(5);
        lookupPanel.add(results);

        final FlowPanel buttonArea = new FlowPanel();
        buttonArea.addStyleName(StaticResourceBundle.INSTANCE.coreCss().buttonArea());

        select = new Hyperlink("Select", History.getToken());
        select.addStyleName(StaticResourceBundle.INSTANCE.coreCss().lookupSelectButtonInactive());
        buttonArea.add(select);

        cancel = new Hyperlink("Cancel", History.getToken());
        cancel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().lookupCancelButton());
        buttonArea.add(cancel);

        lookupPanelContainer.add(lookupPanel);
View Full Code Here

                    {
                        if (Session.getInstance().getHistoryHandler() != null && navPanel.getWidgetCount() == 1
                                && event.getResponse().getSupportStreamGroupShortName() != null
                                && event.getResponse().getSupportStreamGroupShortName().length() > 0)
                        {
                            navPanel.add(new Hyperlink("HELP", Session.getInstance().generateUrl(
                                    new CreateUrlRequest(Page.GROUPS, event.getResponse()
                                            .getSupportStreamGroupShortName()))));

                            if (event.getResponse().getSupportStreamWebsite() != null
                                    && event.getResponse().getSupportStreamWebsite().length() > 0)
View Full Code Here

        imageContainer.addStyleName(StaticResourceBundle.INSTANCE.coreCss().imageContainer());
        imageContainer.add(baseImage);

        content.add(imageContainer);

        saveButton = new Hyperlink("save", Session.getInstance().generateUrl(new CreateUrlRequest()));
        saveButton.addStyleName(StaticResourceBundle.INSTANCE.coreCss().formSaveButton());
        saveButton.addStyleName(StaticResourceBundle.INSTANCE.coreCss().formButton());
        content.add(saveButton);

        closeButton = new Hyperlink("cancel", StaticResourceBundle.INSTANCE.coreCss().settings());
        closeButton.addStyleName(StaticResourceBundle.INSTANCE.coreCss().formCancelButton());
        closeButton.addStyleName(StaticResourceBundle.INSTANCE.coreCss().formButton());
        content.add(closeButton);

        setupEvents();
View Full Code Here

        Widget name;
        if (makeLinkable)
        {
            String nameUrl = Session.getInstance().generateUrl(
                    new CreateUrlRequest(Page.PEOPLE, person.getAccountId()));
            name = new Hyperlink(person.getDisplayName(), nameUrl);
        }
        else
        {
            name = new Label(person.getDisplayName());
        }
View Full Code Here

                    for (ModelView result : event.getResponse().getPagedSet())
                    {
                        final FocusPanel itemContainer = new FocusPanel();
                        final FlowPanel itemPanel = new FlowPanel();
                        final Hyperlink name = new Hyperlink();
                        name.addStyleName(StaticResourceBundle.INSTANCE.coreCss().globalSearchItemName());
                        name.addStyleName(StaticResourceBundle.INSTANCE.coreCss().ellipsisChild());

                        if (result instanceof PersonModelView)
                        {
                            final PersonModelView person = (PersonModelView) result;
                            itemPanel.add(AvatarLinkPanel.create(person, Size.Small, false));
                            name.setText(person.getDisplayName());
                            name.setTitle(person.getDisplayName());
                            historyToken = Session.getInstance().generateUrl(
                                    new CreateUrlRequest(Page.PEOPLE, person.getAccountId()));

                            itemContainer.addClickHandler(new ClickHandler()
                            {
                                public void onClick(final ClickEvent event)
                                {
                                    ArrayList<String> views = new ArrayList<String>();
                                    views.add(person.getAccountId());
                                    eventBus.notifyObservers(new UpdateHistoryEvent(new CreateUrlRequest(Page.PEOPLE,
                                            views)));
                                }
                            });

                        }
                        else if (result instanceof DomainGroupModelView)
                        {
                            final DomainGroupModelView group = (DomainGroupModelView) result;
                            itemPanel.add(new AvatarLinkPanel(EntityType.GROUP, group.getShortName(), group
                                    .getAvatarId(), Size.Small, false));
                            name.setText(group.getName());
                            name.setTitle(group.getName());
                            historyToken = Session.getInstance().generateUrl(
                                    new CreateUrlRequest(Page.GROUPS, group.getShortName()));

                            itemContainer.addClickHandler(new ClickHandler()
                            {
                                public void onClick(final ClickEvent event)
                                {
                                    ArrayList<String> views = new ArrayList<String>();
                                    views.add(group.getShortName());
                                    eventBus.notifyObservers(new UpdateHistoryEvent(new CreateUrlRequest(Page.GROUPS,
                                            views)));
                                }
                            });
                        }

                        itemContainer.addMouseOverHandler(new MouseOverHandler()
                        {
                            public void onMouseOver(final MouseOverEvent arg0)
                            {
                                selectItem(itemContainer);
                            }
                        });

                        name.setTargetHistoryToken(historyToken);
                        itemPanel.add(name);

                        itemContainer.add(itemPanel);
                        resultsPanel.add(itemContainer);
View Full Code Here

            OLPanel ulpanel = new OLPanel();
            carousel.add(ulpanel);

            for (final Layout layout : Layout.values())
            {
                Hyperlink icon = new Hyperlink();
                icon.addStyleName(StaticResourceBundle.INSTANCE.coreCss().layoutIcon());
                icon.setText("layout");
                icon.setTargetHistoryToken(Session.getInstance().generateUrl(new CreateUrlRequest()));
                icon.addStyleName(layout.toString().toLowerCase());

                icon.addClickHandler(new ClickHandler()
                {
                    public void onClick(final ClickEvent event)
                    {
                        boolean shouldChange = true;
                        if (currentLayout.getNumberOfZones() > layout.getNumberOfZones())
View Full Code Here

     *            the layout to use.
     */
    private void setActiveLayout(final Layout layout)
    {
        currentLayout = layout;
        Hyperlink layoutIcon = new Hyperlink();
        layoutIcon.addStyleName(StaticResourceBundle.INSTANCE.coreCss().layoutIcon());
        layoutIcon.setText("layout");
        layoutIcon.addStyleName(layout.toString().toLowerCase());

        activeLayout.clear();
        activeLayout.add(layoutIcon);
        activeLayout.add(new Label("Currently Selected"));
    }
View Full Code Here

TOP

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

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.