Package org.apache.wookie.beans

Examples of org.apache.wookie.beans.IDescription


    }
  }

  private static void createDescriptions(IPersistenceManager persistenceManager, W3CWidget model, IWidget widget){
    for (IDescriptionEntity desc:model.getDescriptions()){
      IDescription widgetDesc = persistenceManager.newInstance(IDescription.class);
      widgetDesc.setContent(desc.getDescription());
      widgetDesc.setLang(desc.getLang());
      widgetDesc.setDir(desc.getDir());
            widget.getDescriptions().add(widgetDesc);
    }
  }
View Full Code Here


                    widget.setVersion("v1.0");
                    IName widgetName = persistenceManager.newInstance(IName.class);
                    widgetName.setName("Unsupported widget widget");
                    widgetName.setShortName("Unsupported");
                    widget.getNames().add(widgetName);
                    IDescription widgetDescription = persistenceManager.newInstance(IDescription.class);
                    widgetDescription.setContent("This widget is a placeholder for when no corresponding widget is found for a given type");
                    widget.getDescriptions().add(widgetDescription);
                    IStartFile widgetStartFile = persistenceManager.newInstance(IStartFile.class);
                    widgetStartFile.setUrl(WidgetRuntimeHelper.getWebContextPath() + "/wservices/notsupported/index.htm");
                    widget.getStartFiles().add(widgetStartFile);
                    IStartFile widgetBUStartFile = persistenceManager.newInstance(IStartFile.class);
View Full Code Here

    return out;
  }

  private static String getDescription(IWidget widget, String[] locales){
      IDescription[] descriptions = widget.getDescriptions().toArray(new IDescription[widget.getDescriptions().size()]);
    IDescription desc = (IDescription)LocalizationUtils.getLocalizedElement(descriptions, locales, widget.getDefaultLocale())
    String out = "\t\t<description";
    if (desc!= null && desc.getDir()!=null) out+=" dir=\""+desc.getDir()+"\"";
    out += ">";
    if (desc != null) out += StringEscapeUtils.escapeXml(desc.getContent());
    out += "</description>\n";
    return out;
  }
View Full Code Here

    }
  }

  private static void createDescriptions(IPersistenceManager persistenceManager, W3CWidget model, IWidget widget){
    for (IDescriptionEntity desc:model.getDescriptions()){
      IDescription widgetDesc = persistenceManager.newInstance(IDescription.class);
      widgetDesc.setContent(desc.getDescription());
      widgetDesc.setLang(desc.getLang());
      widgetDesc.setDir(desc.getDir());
            widget.getDescriptions().add(widgetDesc);
    }
  }
View Full Code Here

    if (iname != null && iname.getName() != null) name = WidgetFormattingUtils.getEncoded(iname.getDir(), iname.getName());
    String shortName = "";
    if (iname != null && iname.getShortName() != null) shortName = WidgetFormattingUtils.getEncoded(iname.getDir(), iname.getShortName());
   
    String description = "";
    IDescription idescription = (IDescription)LocalizationUtils.getLocalizedElement(widget.getDescriptions().toArray(new IDescription[widget.getDescriptions().size()]), locales, widget.getDefaultLocale());
    if (idescription != null && idescription.getContent() != null) description = WidgetFormattingUtils.getEncoded(idescription.getDir(), idescription.getContent());
   
    String version = "";
    if (widget.getVersion() != null) version = WidgetFormattingUtils.getEncoded(widget.getDir(), widget.getVersion());
   
    String width = "0";
View Full Code Here

    }
  }

  private static void createDescriptions(IPersistenceManager persistenceManager, W3CWidget model, IWidget widget){
    for (IDescriptionEntity desc:model.getDescriptions()){
      IDescription widgetDesc = persistenceManager.newInstance(IDescription.class);
      widgetDesc.setContent(desc.getDescription());
      widgetDesc.setLang(desc.getLang());
      widgetDesc.setDir(desc.getDir());
            widget.getDescriptions().add(widgetDesc);
    }
  }
View Full Code Here

                    widget.setVersion("v1.0");
                    IName widgetName = persistenceManager.newInstance(IName.class);
                    widgetName.setName("Unsupported widget widget");
                    widgetName.setShortName("Unsupported");
                    widget.getNames().add(widgetName);
                    IDescription widgetDescription = persistenceManager.newInstance(IDescription.class);
                    widgetDescription.setContent("This widget is a placeholder for when no corresponding widget is found for a given type");
                    widget.getDescriptions().add(widgetDescription);
                    IStartFile widgetStartFile = persistenceManager.newInstance(IStartFile.class);
                    widgetStartFile.setUrl(WidgetRuntimeHelper.getWebContextPath() + "/wservices/notsupported/index.htm");
                    widget.getStartFiles().add(widgetStartFile);
                    IStartFile widgetBUStartFile = persistenceManager.newInstance(IStartFile.class);
View Full Code Here

    return out;
  }

  private static String getDescription(IWidget widget, String[] locales){
      IDescription[] descriptions = widget.getDescriptions().toArray(new IDescription[widget.getDescriptions().size()]);
    IDescription desc = (IDescription)LocalizationUtils.getLocalizedElement(descriptions, locales, widget.getDefaultLocale())
    String out = "\t\t<description";
    if (desc!= null && desc.getDir()!=null) out+=" dir=\""+desc.getDir()+"\"";
    out += ">";
    if (desc != null) out += StringEscapeUtils.escapeXml(desc.getContent());
    out += "</description>\n";
    return out;
  }
View Full Code Here

    if (iname != null && iname.getName() != null) name = WidgetFormattingUtils.getEncoded(iname.getDir(), iname.getName());
    String shortName = "";
    if (iname != null && iname.getShortName() != null) shortName = WidgetFormattingUtils.getEncoded(iname.getDir(), iname.getShortName());
   
    String description = "";
    IDescription idescription = (IDescription)LocalizationUtils.getLocalizedElement(widget.getDescriptions().toArray(new IDescription[widget.getDescriptions().size()]), locales, widget.getDefaultLocale());
    if (idescription != null && idescription.getContent() != null) description = WidgetFormattingUtils.getEncoded(idescription.getDir(), idescription.getContent());
   
    String version = "";
    if (widget.getVersion() != null) version = WidgetFormattingUtils.getEncoded(widget.getDir(), widget.getVersion());
   
    String width = "0";
View Full Code Here

    return out;
  }

  private static String getDescription(IWidget widget, String[] locales){
      IDescription[] descriptions = widget.getDescriptions().toArray(new IDescription[widget.getDescriptions().size()]);
    IDescription desc = (IDescription)LocalizationUtils.getLocalizedElement(descriptions, locales)
    String out = "\t\t<description";
    if (desc!= null && desc.getDir()!=null) out+=" dir=\""+desc.getDir()+"\"";
    out += ">";
    if (desc != null) out += desc.getContent();
    out += "</description>\n";
    return out;
  }
View Full Code Here

TOP

Related Classes of org.apache.wookie.beans.IDescription

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.