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

Examples of com.google.gwt.user.client.ui.Hyperlink.addClickHandler()


    // Add an item with basic elements inside of it
    {
      final TextBox textBox = new TextBox();
      Hyperlink link = new Hyperlink("change focus", "blah");
      link.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
          textBox.setFocus(true);
          event.getNativeEvent().stopPropagation();
        }
      });
View Full Code Here


  public void showChapterList(TreeMap<Integer, ClientChapter> chapterMap) {
    chapterFlow.clear();
    for (ClientChapter chapter: chapterMap.values()) {
      Hyperlink hyperlink = new Hyperlink("" + chapter.chapterNo, "" + chapter.chapterNo + ":1");
        hyperlink.addClickHandler(updateClickHandler );
        hyperlink.getElement().getStyle().setProperty("display", "inline");
        chapterFlow.add(hyperlink);
        chapterFlow.add(spacer());
      hyperlink.setTitle(chapter.transliteration);
      }
View Full Code Here

    if (currentSection.equals(section)) {
      sectionNavigationBar.add(new HTML("<b>" + label + "</b>"));
      mainPresenter.getSectionPresenter().updateSectionPanel(section);
    } else {
      sectionLink = new Hyperlink(label,"" + section.chapter + ":" + section.verse);
      sectionLink.addClickHandler(updateClickHandler);
      sectionNavigationBar.add(sectionLink);
    }
    return sectionLink;
  }
View Full Code Here

        if (showAdd) {
//            Hyperlink hl = new Hyperlink("<a href=\"" + UIUtil.LOCAL + UIUtil.ADD_PREFIX +
//                    "\" style=\"text-decoration: underline;\">Add parent(s)</a>", "");
            Hyperlink hl = new Hyperlink("<u>Add parent(s)</u>", true, "");
            labelPanel.add(hl);
            addParentHandlerRegistration = hl.addClickHandler(new ClickHandler() {
                public void onClick(ClickEvent event) {
                    onAdd();
                }
            });
            labelPanel.add(hl);
View Full Code Here

   @Test
   public void click_ClickHandler() {
      // Arrange
      bool = false;
      Hyperlink link = new Hyperlink();
      link.addClickHandler(new ClickHandler() {

         public void onClick(ClickEvent event) {
            bool = true;
         }
View Full Code Here

                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

        generateUrlCommand = inGenerateUrlCommand;

        Hyperlink closeUrlPanel = new Hyperlink("Delete", History.getToken());
        closeUrlPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().smallX());
        closeUrlPanel.addClickHandler(new ClickHandler()
        {

            public void onClick(final ClickEvent event)
            {
                urlPanel.setVisible(false);
View Full Code Here

        cancel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().shareMessageCancel());

        body.add(share);
        body.add(cancel);

        cancel.addClickHandler(new ClickHandler()
        {
            public void onClick(final ClickEvent event)
            {
                close();
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.