Examples of LaunchAttributes


Examples of com.volantis.mcs.protocols.widgets.attributes.LaunchAttributes

     * @param context
     */
    public LaunchElement(XDIMEContextInternal context) {
        super(WidgetElements.LAUNCH, context);
       
        protocolAttributes = new LaunchAttributes();       
    }   
View Full Code Here

Examples of com.volantis.mcs.protocols.widgets.attributes.LaunchAttributes

                Launchable launchableCandidate = (Launchable)element;
               
                // Store the launchee, so that it could be simply
                // accessed in callCloseOnProtocol() method.
                launchee = launchableCandidate;
                LaunchAttributes launchAttrs = (LaunchAttributes)protocolAttributes;
                launchAttrs.setWidgetId(launchee.getWidgetId());                                   
                // We have just one launchee, so break here
                break;
            }
           
            elementIndex--;
View Full Code Here

Examples of com.volantis.mcs.protocols.widgets.attributes.LaunchAttributes

        // Do nothing, if launcher content is not to be rendered.
        if (!shouldRenderContents(protocol, attributes)) {
            return;
        }
       
        LaunchAttributes launchAttributes = (LaunchAttributes) attributes;

        Element divElement = openDivElement(attributes.getStyles(),
                getCurrentBuffer(protocol));
       
        String launchId = "";
        if (attributes.getId() == null) {
            launchId = protocol.getMarinerPageContext().generateUniqueFCID();
        } else {
            launchId = attributes.getId();
        }
        attributes.setId(launchId);
        divElement.setAttribute("id", launchId);               
        divElement.setAttribute("onclick", "Widget.getInstance('" + launchAttributes.getWidgetId() + "').show();");
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.widgets.attributes.LaunchAttributes

        // Do nothing, if launcher content is not to be rendered.
        if (!shouldRenderContents(protocol, attributes)) {
            return;
        }

        LaunchAttributes attrs = (LaunchAttributes)attributes;
        DOMOutputBuffer currentBuffer = getCurrentBuffer(protocol);
       
        // store current launcher element
        currentBuffer.saveInsertionPoint();
       
        closeDivElement(currentBuffer);
       
        String textToScript = "Widget.getInstance(" + createJavaScriptString(attrs.getWidgetId())
                + ").registerLauncher(" + createJavaScriptString(attrs.getId()) + ");";           
        try {
            writeScriptElement(currentBuffer,textToScript);
        } catch (IOException e) {
            throw new ProtocolException();               
        }
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.