Figure 1. This is the simplest Pod-Loader you can have001 package pods.podloaders;
002
003 import java.util.Map;
004 import org.w3c.dom.Document;
005 import org.w3c.dom.Node;
006 import curam.cefwidgets.docbuilder.impl.PodBuilder;
007 import curam.cefwidgets.pods.pod.impl.PodLoader;
008 import curam.codetable.PODTYPE;
009
010 public class HelloWorld extends PodLoader {
011
012 @Override
013 public Node createPod(Document document, Map<String,Object> contexts) {
014 try{
015 PodBuilder helloWorld =
016 PodBuilder.newPod(document, PODTYPE.HELLOWORLD);
017 helloWorld.setTitle("Hello World");
018 return helloWorld.getWidgetRootNode();
019 }catch(Exception e){
020 throw new RuntimeException(e);
021 }
022 }
023 }