Examples of StringElement


Examples of org.apache.ecs.StringElement

     *
     * @param msg an element.
     */
    public void setMessage(Element msg)
    {
        this.message = new StringElement(msg);
    }
View Full Code Here

Examples of org.apache.ecs.StringElement

            {
                message.addElement(msg);
            }
            else
            {
                message = new StringElement(msg);
            }
        }
    }
View Full Code Here

Examples of org.apache.ecs.StringElement

            screenData = TurbineVelocity.handleRequest(
                context, prefix + templateName);
        }
       
        // package the response in an ECS element
        StringElement output = new StringElement();
        output.setFilterState(false);

        if (screenData != null)
        {
            output.addElement(screenData);
        }
        return output;
    }
View Full Code Here

Examples of org.apache.ecs.StringElement

        String navigationTemplate = data.getTemplateInfo().getNavigationTemplate();
        String templateName
                = TurbineTemplate.getNavigationTemplateName(navigationTemplate);

        StringElement output = new StringElement();
        output.setFilterState(false);
        output.addElement(TurbineVelocity
                .handleRequest(context, prefix + templateName));
        return output;
    }
View Full Code Here

Examples of org.apache.ecs.StringElement

        String navigationTemplate = data.getTemplateInfo().getNavigationTemplate();
        String templateName
                = TurbineTemplate.getNavigationTemplateName(navigationTemplate);

        StringElement output = new StringElement();
        output.setFilterState(false);
        output.addElement(TurbineVelocity
                .handleRequest(context, prefix + templateName));
        return output;
    }
View Full Code Here

Examples of org.apache.ecs.StringElement

        DateFormat df = DateFormat.getDateTimeInstance();
       
        if ( portletName == null ) {
            String message = "Could not find given entry ";
            logger.error( message );
            return new StringElement( message );
        }

        Portlet portlet = null;
        try {
            portlet = PortletFactory.getPortlet( portletName, "0" );
        } catch (PortletException e) {
            logger.error("Exception",  e);
            return new StringElement( e.getMessage() );
        }

        Table t = new Table();
       
        t.addElement( this.getRow"Portlet name: " + portlet.getName() ) );
View Full Code Here

Examples of org.apache.ecs.StringElement

        StringBuffer text = new StringBuffer();

        if (getSource() == null || getSource().trim().length() == 0)
        {
            text.append(NO_SOURCE_MSG);
            return (new StringElement(text.toString()));
        }

        text.append("<IFRAME ");

        text.append("src = \"" + getSource() + "\" ");
        if (getWidth() != null)
        {
            text.append("width = \"" + getWidth() + "\" ");
        }

        if (getHeight() != null)
        {
            text.append("height = \"" + getHeight() + "\" ");
        }

        if (getFrameName() != null)
        {
            text.append("name = \"" + getFrameName() + "\" ");
        }

        if (getStyle() != null)
        {
            text.append("style = \"" + getStyle() + "\" ");
        }

        if (getMarginWidth() != null)
        {
            text.append("marginwidth = \"" + getMarginWidth() + "\" ");
        }

        if (getMarginHeight() != null)
        {
            text.append("marginheight = \"" + getMarginHeight() + "\" ");
        }

        if (getAlign() != null)
        {
            text.append("align = \"" + getAlign() + "\" ");
        }

        text.append("scrolling = \"" + getScrolling() + "\" ");
        text.append("frameborder = \"" + getFrameBorder() + "\" ");
        text.append(">");

        text.append("</IFRAME>");
        return (new StringElement(text.toString()));
    }
View Full Code Here

Examples of org.apache.ecs.StringElement

    return new EcsServletElement(rundata, servletURL);
  } catch (Exception e) {
    String message = "ServletInvokerPortlet: Error invoking "
             + servletURL + ": " + e.getMessage();
    logger.error(message, e);
    return new StringElement(message);
  }
  }    }
View Full Code Here

Examples of org.apache.ecs.StringElement

        // If parsing is OK, wraps content in ECS element
        if (myContent!=null) {
            content = new ElementContainer();

            content.addElement( new Comment( "BEGIN PORTLET" ) );
            content.addElement( new StringElement( myContent ) );
            content.addElement( new Comment( "END PORTLET" ) );
        }

        return content;
    }
View Full Code Here

Examples of org.apache.ecs.StringElement

            return content;

        } catch ( Throwable t ) {
            logger.error("Throwable",  t);
            return new StringElement( t.getMessage() );
        }

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