Package org.apache.wicket.markup.html.link

Examples of org.apache.wicket.markup.html.link.ExternalLink


    super(id);
    add(new Label("appname", getBean(ConfigurationDao.class).getAppName()));
    add(new Label("username", username));
    add(new Label("email", email));
    add(new Label("message", message));
    add(new ExternalLink("invitation_link", ""));
  }
View Full Code Here


    add(new Label("username", username));
    add(new Label("userpass", userpass));
    add(new Label("email", email));
    WebMarkupContainer verification = new WebMarkupContainer("verification");
    add(verification.add(new Label("verification_url2", verification_url))
      .add(new ExternalLink("verification_url1", verification_url))
      .setVisible(verification_url != null));
  }
View Full Code Here

    add(new Label("user", user));
    add(new Label("message", message).setEscapeModelStrings(false));
    Label commentForLink1 = new Label("comment_for_link1", WebSession.getString(503));
    commentForLink1.setVisible(!isCanceled);
    add(commentForLink1);
    ExternalLink externalLink1 = new ExternalLink("invitation_link1", link);
    externalLink1.setVisible(!isCanceled);
    add(externalLink1);
    Label commentForLink2 = new Label("comment_for_link2", WebSession.getString(505));
    commentForLink2.setVisible(!isCanceled);
    add(commentForLink2);
    Label externalLink2 = new Label("invitation_link2", link);
View Full Code Here

        add(dev = new DebugBar("dev"));
        dev.setOutputMarkupId(true);
    } else {
        add(new EmptyPanel("dev").setVisible(false));
    }   
    add(new ExternalLink("bug", "https://issues.apache.org/jira/browse/OPENMEETINGS"));//FIXME hardcoded
   
    add(new ChatPanel("chatPanel"));
    add(new WebSocketBehavior() {
      private static final long serialVersionUID = -3311970325911992958L;
View Full Code Here

   
    add(new Label("navInternalHref", "[Non-bookmarkable href]"));
  }
 
  private void addExternalNavigationLinks() {
    ExternalLink link = null;
   
    final IModel<String> hrefModel = Model.of("http://wicketdemo.sourceforge.net/");
    final IModel<String> labelModel = Model.of("WicketDemo");
    link = new ExternalLink("navExternalLink", hrefModel, labelModel);
    add(link);
    // Note: the default model object of an external link is always a String
    // (only IModel<String> parameters are accepted).
    add(new Label("navExternalHref", link.getDefaultModelObjectAsString()));
   
    link = new ExternalLink("navExternalLinkNoBodyOverride", "http://wicketdemo.sourceforge.net/");
    add(link);
    add(new Label("navExternalHrefNoBodyOverride", link.getDefaultModelObjectAsString()));
  }
View Full Code Here

    // Popup example
    add(new BookmarkablePageLink("popupButtonLink", Popup.class).setPopupSettings(popupSettings));

    // External site link
    add(new ExternalLink("google", "http://www.google.com", "Click this link to go to Google"));

    // And that link as a popup
    PopupSettings googlePopupSettings = new PopupSettings(PopupSettings.RESIZABLE |
      PopupSettings.SCROLLBARS).setHeight(500).setWidth(700);
    add(new ExternalLink("googlePopup", "http://www.google.com",
      "Click this link to go to Google in a popup").setPopupSettings(googlePopupSettings));

    // Shared resource link
    add(new ResourceLink("cancelButtonLink", new SharedResourceReference("cancelButton")));
View Full Code Here

    // Popup example
    add(new BookmarkablePageLink("popupButtonLink", Popup.class)
        .setPopupSettings(popupSettings));

    // External site link
    add(new ExternalLink("google", "http://www.google.com", "Click this link to go to Google"));

    // And that link as a popup
    PopupSettings googlePopupSettings = new PopupSettings(PopupSettings.RESIZABLE |
        PopupSettings.SCROLLBARS).setHeight(500).setWidth(700);
    add(new ExternalLink("googlePopup", "http://www.google.com",
        "Click this link to go to Google in a popup").setPopupSettings(googlePopupSettings));

    // Shared resource link
    add(new ResourceLink("cancelButtonLink", new ResourceReference("cancelButton")));
View Full Code Here

    // Popup example
    add(new BookmarkablePageLink<Void>("popupButtonLink", Popup.class).setPopupSettings(popupSettings));

    // External site link
    add(new ExternalLink("google", "http://www.google.com", "Click this link to go to Google"));

    // And that link as a popup
    PopupSettings googlePopupSettings = new PopupSettings(PopupSettings.RESIZABLE |
      PopupSettings.SCROLLBARS).setHeight(500).setWidth(700);
    add(new ExternalLink("googlePopup", "http://www.google.com",
      "Click this link to go to Google in a popup").setPopupSettings(googlePopupSettings));

    // Shared resource link
    add(new ResourceLink("cancelButtonLink", new SharedResourceReference("cancelButton")));
View Full Code Here

      private static final long serialVersionUID = 1L;
     
      @Override
      protected void populateItem(final ListItem<Entry<String, Entry<Class<?>, Object>>> item) {
        final String category = item.getModelObject().getKey();
        item.add(new ExternalLink("anchorLink", "#" + category, category));
      }
    });
  }
View Full Code Here

                addLink.setVisible(false);
            }
           
            if (node.getDocType() == SiteTreeNode.FileType.Link)
            {
                ExternalLink viewLink = new ExternalLink("view", new Model(getDocument().getUrl()), new ResourceModel("common.view"))
                {
                    @Override
                    protected void onComponentTag(ComponentTag tag)
                    {
                        super.onComponentTag(tag);
                       
                        if (tag.getName().equalsIgnoreCase("input") && ((getLabel() != null) && (getLabel().getObject() != null)))
                        {
                            tag.put("value", getDefaultModelObjectAsString(getLabel().getObject()));
                        }
                    }
                };
                viewLink.setPopupSettings(new PopupSettings());
                infoForm.add(viewLink);
            }
            else
            {
                RequestContext context = (RequestContext) getPortletRequest().getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE);
                String basePath = context.getPortalURL().getBasePath().replace("portal", "configure");
                ExternalLink viewLink = new ExternalLink("view", new Model(basePath + getDocument().getPath()), new ResourceModel("common.view"))
                {
                    @Override
                    protected void onComponentTag(ComponentTag tag)
                    {
                        super.onComponentTag(tag);
                       
                        if (tag.getName().equalsIgnoreCase("input") && ((getLabel() != null) && (getLabel().getObject() != null)))
                        {
                            tag.put("value", getDefaultModelObjectAsString(getLabel().getObject()));
                        }
                    }
                };
                viewLink.setPopupSettings(new PopupSettings());
                infoForm.add(viewLink);
            }

            infoForm.add(new AjaxButton("remove",new ResourceModel("common.remove"),infoForm)
            {
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.link.ExternalLink

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.