1 19 package org.netbeans.modules.web.jsf.navigation.vwmodel; 20 21 import org.netbeans.modules.web.jsf.navigation.vwmodel.Page; 22 import org.netbeans.modules.web.jsf.navigation.*; 23 import org.openide.loaders.DataObject; 24 import org.openide.nodes.FilterNode; 25 import org.openide.nodes.Node; 26 27 32 public class PageNode extends FilterNode { 34 private DataObject dobj; 35 36 41 public PageNode(DataObject dobj, Page page) { 42 super(page.getDataObject().getNodeDelegate(), Children.LEAF); 43 this.dobj = dobj; 44 } 45 46 49 public Node.Cookie getCookie(Class cl) { 50 if (dobj != null) { 55 return dobj.getCookie(cl); 56 } 57 return null; 58 } 59 60 61 } 62 | Popular Tags |