Package org.useware.kernel.model.structure

Examples of org.useware.kernel.model.structure.Link


            this.widget.addClickHandler(new ClickHandler() {
                @Override
                public void onClick(ClickEvent clickEvent) {

                    Link link = (Link) interactionUnit;
                    QName target = link.getTarget();

                    NavigationEvent navigationEvent  = new NavigationEvent(
                            CommonQNames.NAVIGATION_ID, target,
                            NavigationEvent.Relation.fromString(link.getId().getLocalPart())  // TODO: local part?
                    );

                    eventBus.fireEventFromSource(
                            navigationEvent,
                            getInteractionUnit().getId()
View Full Code Here


            Trigger trigger = (Trigger)unit;
            el.setAttribute("type", trigger.getType().toString());
        }
        else if(unit instanceof Link)
        {
            Link link = (Link)unit;
            el.setAttribute("target", link.getTarget().toString());
        }

        return el;
    }
View Full Code Here

                    QName.valueOf(ParseUtils.failSafe(node.getAttributes().getNamedItem("type"), "")),
                    label);
        }
        else if("link".equals(name))
        {
            unit = new Link(id.getNamespaceURI(), id.getLocalPart(),
                    QName.valueOf(ParseUtils.failSafe(node.getAttributes().getNamedItem("target"), "")),
                    label);
        }
        return unit;
    }
View Full Code Here

TOP

Related Classes of org.useware.kernel.model.structure.Link

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.