Package com.dragome.model.interfaces

Examples of com.dragome.model.interfaces.VisualLink


    new TemplateRepeater<Class<? extends DragomeVisualActivity>>().repeatItems(visualActivities, new ItemProcessorImpl<Class<? extends DragomeVisualActivity>>(template, "row")
    {
      public void fillTemplates(final Class<? extends DragomeVisualActivity> visualActivity, List<Template> aRowTemplate)
      {
        VisualLink link= new VisualLinkImpl("view", visualActivity.getSimpleName());
        link.addClickListener(new ClickListener()
        {
          public void clickPerformed(VisualComponent aVisualComponent)
          {
            openPage(ServiceLocator.getInstance().getReflectionService().createClassInstance(visualActivity));
          }
        });

        String alias= requestUrlActivityMapper.getActivityAlias(visualActivity);

        VisualPanel rowPanel= new VisualPanelImpl(aRowTemplate.get(0));
        rowPanel.addChild(new VisualLabelImpl<String>("classname", visualActivity.getName()));
        String href= requestURL2 + (alias.length() == 0 ? visualActivity.getSimpleName() : alias);
        VisualLink link2= new VisualLinkImpl("link", href, href);
        rowPanel.addChild(link2);
        rowPanel.addChild(new VisualLabelImpl<String>("alias", alias));
        rowPanel.addChild(link);
      }
    });
View Full Code Here

TOP

Related Classes of com.dragome.model.interfaces.VisualLink

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.