org.apache.pluto.portalImpl.aggregation
Class AbstractFragmentContainer
java.lang.Object
org.apache.pluto.portalImpl.aggregation.AbstractFragment
org.apache.pluto.portalImpl.aggregation.AbstractFragmentContainer
- All Implemented Interfaces:
- Fragment
- Direct Known Subclasses:
- ColumnFragment, PageFragment, RootFragment, RowFragment
public abstract class AbstractFragmentContainer
- extends AbstractFragment
|
Field Summary |
private java.util.ArrayList |
children
|
|
Method Summary |
void |
addChild(Fragment child)
Adds an child to the fragment |
abstract void |
createURL(PortalURL url)
Creates an URL pointing to this fragment |
java.util.Collection |
getChildFragments()
Returns a collection of all child fragments |
abstract boolean |
isPartOfURL(PortalURL url)
Returns true if the fragment is part of the URL |
void |
postService(HttpServletRequest request,
HttpServletResponse response)
|
void |
preService(HttpServletRequest request,
HttpServletResponse response)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
children
private java.util.ArrayList children
AbstractFragmentContainer
public AbstractFragmentContainer(java.lang.String id,
ServletConfig config,
Fragment parent,
Fragment fragDesc,
Navigation navigation)
throws java.lang.Exception
- Throws:
java.lang.Exception
preService
public void preService(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
java.io.IOException
- Specified by:
preService in class AbstractFragment
- Throws:
ServletException
java.io.IOException
postService
public void postService(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
java.io.IOException
- Specified by:
postService in class AbstractFragment
- Throws:
ServletException
java.io.IOException
getChildFragments
public java.util.Collection getChildFragments()
- Description copied from interface:
Fragment
- Returns a collection of all child fragments
- Specified by:
getChildFragments in interface Fragment- Specified by:
getChildFragments in class AbstractFragment
- Returns:
- a collection containing objects implementing the interface fragment
addChild
public void addChild(Fragment child)
- Description copied from interface:
Fragment
- Adds an child to the fragment
- Specified by:
addChild in interface Fragment- Specified by:
addChild in class AbstractFragment
- Parameters:
child - the child fragment
createURL
public abstract void createURL(PortalURL url)
- Description copied from interface:
Fragment
- Creates an URL pointing to this fragment
- Specified by:
createURL in interface Fragment- Specified by:
createURL in class AbstractFragment
- Parameters:
url - the PortalURL object used
isPartOfURL
public abstract boolean isPartOfURL(PortalURL url)
- Description copied from interface:
Fragment
- Returns true if the fragment is part of the URL
- Specified by:
isPartOfURL in interface Fragment- Specified by:
isPartOfURL in class AbstractFragment
- Parameters:
url - the PortalURL object used
- Returns:
- true if the fragment is part of the URL