Package com.volantis.mcs.protocols.layouts

Examples of com.volantis.mcs.protocols.layouts.AbstractPaneInstance


            MenuAttributes attributes) throws ProtocolException {
       
        // retrieve the pane information from the menus attriubtes
        Pane pane = attributes.getPane();

        AbstractPaneInstance paneInstance = (AbstractPaneInstance)
                pageContext.getDeviceLayoutContext().getCurrentFormatInstance(
                        pane);
       
        // get hold of and return the buffer

        return (DOMOutputBuffer) paneInstance.getCurrentBuffer();
       
    }
View Full Code Here


            final FormatInstance instance)
            throws RendererException {
        try {
            if (!instance.isEmpty()) {
                Pane pane = (Pane) instance.getFormat();
                AbstractPaneInstance paneInstance = (AbstractPaneInstance) instance;

                // Initialise the attributes.
                PaneAttributes attributes = paneInstance.getAttributes();

                // Style the format.
                String styleClass = paneInstance.getStyleClass();
                FormatStylingEngine formatStylingEngine =
                        context.getFormatStylingEngine();
                Styles formatStyles = formatStylingEngine.startStyleable(
                        pane, styleClass);
                attributes.setStyles(formatStyles);
View Full Code Here

     * @return a null pane instance or the original pane instance itself.
     */
    private AbstractPaneInstance updatePaneInstance(
            AbstractPaneInstance instance) {

        AbstractPaneInstance result = instance;
        if (instance != null) {
            if (instance.ignore()) {
                result = null;
            }
        }
View Full Code Here

    private AbstractPaneInstance lookupPaneInstance(
            MarinerPageContext pageContext, final Form form,
            final String originalPaneName,
            final AbstractPaneInstance currentPaneInstance) {

        AbstractPaneInstance result = currentPaneInstance;
        if (originalPaneName != null) {

            // If the pane name is null and the form isn't null then set
            // the pane name to be the default pane name.
            String paneName = originalPaneName;
View Full Code Here

     * @return The Pane which is on the top of the stack.
     * @todo later refactor this to getCurrentPaneContext for consistency
     */
    public Pane getCurrentPane() {
        Pane pane = null;
        AbstractPaneInstance instance;

        instance = (AbstractPaneInstance)
                findContainerInstance(AbstractPaneInstance.class);

        if (logger.isDebugEnabled()) {
            logger.debug("PANE INSTANCE STACK: Enclosing " + instance);
        }

        if (instance != null) {
            pane = (Pane) instance.getFormat();
        }
        return pane;
    }
View Full Code Here

        if (paneFormatReference != null) {
            Pane pane = getPane(paneFormatReference.getStem());

            if (pane != null) {
                AbstractPaneInstance paneInstance =
                        (AbstractPaneInstance) getFormatInstance(pane,
                                                                 paneFormatReference.getIndex());

                // This will create the pane's output buffer if one doesn't
                // already exist
                buffer = paneInstance.getCurrentBuffer();
            }
        } else {
            // A null format reference indicates that the current pane's output
            // buffer is required
            buffer = getCurrentOutputBuffer();
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.layouts.AbstractPaneInstance

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.