1 16 19 20 package org.apache.pluto.portalImpl.aggregation.navigation; 21 22 import javax.servlet.ServletConfig ; 23 24 import org.apache.pluto.portalImpl.aggregation.AbstractFragmentSingle; 25 import org.apache.pluto.portalImpl.core.PortalURL; 26 27 public abstract class AbstractNavigationFragment extends AbstractFragmentSingle 28 { 29 30 public AbstractNavigationFragment(String id, 31 ServletConfig config, 32 org.apache.pluto.portalImpl.aggregation.Fragment parent, 33 org.apache.pluto.portalImpl.om.page.Fragment fragDesc, 34 org.apache.pluto.portalImpl.aggregation.navigation.Navigation navigation) 35 throws Exception 36 { 37 super(id, config, parent, fragDesc, navigation); 38 } 39 40 public void createURL(PortalURL url) 41 { 42 getParent().createURL(url); 43 url.addGlobalNavigation(getId()); 44 } 45 46 public boolean isPartOfURL(PortalURL url) 47 { 48 return url.isPartOfGlobalNavigation(getId()); 49 } 50 51 public org.apache.pluto.portalImpl.aggregation.navigation.Navigation getRootNavigation() 52 { 53 org.apache.pluto.portalImpl.aggregation.Fragment returnvalue = this; 54 for (; returnvalue.getParent() != null; returnvalue = returnvalue.getParent()) { 55 } 56 return returnvalue.getNavigation(); 57 } 58 59 69 133 } 134 | Popular Tags |