Package org.apache.wookie.w3c

Examples of org.apache.wookie.w3c.IDescription


    }
  }

  private static void createDescriptions(IPersistenceManager persistenceManager, W3CWidget model, IWidget widget){
    for (IDescription desc:model.getDescriptions()){
      IDescription widgetDesc = persistenceManager.newInstance(IDescription.class);
      widgetDesc.setDescription(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.setShort("Unsupported");
                    widget.getNames().add(widgetName);
                    IDescription widgetDescription = persistenceManager.newInstance(IDescription.class);
                    widgetDescription.setDescription("This widget is a placeholder for when no corresponding widget is found for a given type");
                    widget.getDescriptions().add(widgetDescription);
                    IContent widgetStartFile = persistenceManager.newInstance(IContent.class);
                    widgetStartFile.setSrc(WidgetRuntimeHelper.getWebContextPath() + "/wservices/notsupported/index.htm");
                    widget.getContentList().add(widgetStartFile);
                    IContent widgetBUStartFile = persistenceManager.newInstance(IContent.class);
View Full Code Here

    }
  }

  private static void createDescriptions(IPersistenceManager persistenceManager, W3CWidget model, IWidget widget){
    for (IDescription desc:model.getDescriptions()){
      IDescription widgetDesc = persistenceManager.newInstance(IDescription.class);
      widgetDesc.setDescription(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.getShort() != null) shortName = WidgetFormattingUtils.getEncoded(iname.getDir(), iname.getShort());
   
    String description = "";
    IDescription idescription = (IDescription)LocalizationUtils.getLocalizedElement(widget.getDescriptions().toArray(new IDescription[widget.getDescriptions().size()]), locales, widget.getDefaultLocale());
    if (idescription != null && idescription.getDescription() != null) description = WidgetFormattingUtils.getEncoded(idescription.getDir(), idescription.getDescription());
   
    String version = "";
    if (widget.getVersion() != null) version = WidgetFormattingUtils.getEncoded(widget.getDir(), widget.getVersion());
   
    String width = "0";
View Full Code Here

                    widget.setVersion("v1.0");
                    IName widgetName = persistenceManager.newInstance(IName.class);
                    widgetName.setName("Unsupported widget widget");
                    widgetName.setShort("Unsupported");
                    widget.getNames().add(widgetName);
                    IDescription widgetDescription = persistenceManager.newInstance(IDescription.class);
                    widgetDescription.setDescription("This widget is a placeholder for when no corresponding widget is found for a given type");
                    widget.getDescriptions().add(widgetDescription);
                    IContent widgetStartFile = persistenceManager.newInstance(IContent.class);
                    widgetStartFile.setSrc(WidgetRuntimeHelper.getWebContextPath() + "/deploy/notsupported/index.htm");
                    widget.getContentList().add(widgetStartFile);
                    IContent widgetBUStartFile = persistenceManager.newInstance(IContent.class);
View Full Code Here

TOP

Related Classes of org.apache.wookie.w3c.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.