Examples of ExternalLink


Examples of javax.xml.registry.infomodel.ExternalLink

                                                       String name, String value) throws JAXRException {
        return createExternalIdentifier(ids, this.createInternationalString(name), value);
    }

    public ExternalLink createExternalLink(String uri, InternationalString desc) throws JAXRException {
        ExternalLink ext = new ExternalLinkImpl(this);
        ext.setExternalURI(uri);
        ext.setDescription(desc);
        return ext;
    }
View Full Code Here

Examples of javax.xml.registry.infomodel.ExternalLink

            Concept concept = blm.createConcept(null, CONCEPT_NAME, "");
            InternationalString is = blm.createInternationalString("This is the concept for Apache Scout Test");
            concept.setDescription(is);

            //Lets provide a link to juddi registry
            ExternalLink wslink =
                    blm.createExternalLink("http://to-rhaps4.toronto.redhat.com:9000/juddi",
                            "juddi");
            concept.addExternalLink(wslink);
            Classification cl = createClassificationForUDDI(bqm);
View Full Code Here

Examples of javax.xml.registry.infomodel.ExternalLink

        assertEquals(ExternalIdentifierImpl.class, externalIdentifier.getClass());
        assertSame(manager, externalIdentifier.getLifeCycleManager());
    }

    public void testCreateObjectExternalLink() throws JAXRException {
        ExternalLink externalLink = (ExternalLink) manager.createObject(LifeCycleManager.EXTERNAL_LINK);
        assertEquals(ExternalLinkImpl.class, externalLink.getClass());
        assertSame(manager, externalLink.getLifeCycleManager());
    }
View Full Code Here

Examples of javax.xml.registry.infomodel.ExternalLink

        serviceBinding.setName(getIString(serviceBindingName));
        serviceBinding.setDescription(getIString("UDDI service binding"));
        tmpSvc.addServiceBinding(serviceBinding);
       
        SpecificationLink specLink = blm.createSpecificationLink();
        ExternalLink externalLink = blm.createExternalLink("http://localhost:8080/jmx-console", "Scout test");
        Collection<ExternalLink> externalLinks = new ArrayList<ExternalLink>();
        externalLinks.add(externalLink);
        specLink.setExternalLinks(externalLinks);
       
        RegistryService rs = connection.getRegistryService();
View Full Code Here

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

  private static final String TEST_LINK = "http://google.com";

  public EnclosurePanel(String id) {
    super(id);
   
    ExternalLink externalLink = new ExternalLink("externalLink", TEST_LINK);
    add(externalLink);
  }
View Full Code Here

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

    private String licenseUrl;

    public InfoModalPage() {
        super();

        add(new ExternalLink("syncopeLink", siteUrl));
        add(new ExternalLink("licenseLink", licenseUrl));
        add(new Label("version", SyncopeSession.get().getVersion()));
    }
View Full Code Here

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

    public static WebMarkupContainer getJexlHelpWebContainer(final String wicketId) {
        final WebMarkupContainer jexlHelp = new WebMarkupContainer(wicketId);
        jexlHelp.setVisible(false);
        jexlHelp.setOutputMarkupPlaceholderTag(true);
        jexlHelp.setOutputMarkupId(true);
        jexlHelp.add(new ExternalLink("jexlLink", JEXL_SYNTAX_URL));
        return jexlHelp;
    }
View Full Code Here

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

                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

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

  private static final String TEST_LINK = "http://google.com";

  public EnclosurePanel(String id) {
    super(id);
   
    ExternalLink externalLink = new ExternalLink("externalLink", TEST_LINK);
    add(externalLink);
  }
View Full Code Here

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

    // 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
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.