org.apache.jetspeed.layout.impl
Class NestedFragmentContext
java.lang.Object
org.apache.jetspeed.layout.impl.NestedFragmentContext
public class NestedFragmentContext
- extends java.lang.Object
NestedFragmentContext
This object captures the nested position of a fragment
within a page. Given a target fragment and a page,
the target fragment col/row within its parent is
recorded, followed by the target fragment's parent
col/row within its parent, etc.
The purpose of this object is to support the
create-new-page-on-edit feature. For example, when
a fragment is moved, causing the creation of a new
page, the information captured by this object
allows the copy of the fragment in the new page to
be located.
- Version:
- $Id: $
- Author:
- Steve Milek, Steve Milek
Field Summary |
protected static java.lang.String |
eol
|
protected static org.apache.commons.logging.Log |
log
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
log
protected static final org.apache.commons.logging.Log log
eol
protected static final java.lang.String eol
NestedFragmentContext
public NestedFragmentContext(Fragment targetFragment,
Page page,
PortletRegistry registry)
throws PortletPlacementException
- Throws:
PortletPlacementException
init
protected void init(PortletRegistry registry)
throws PortletPlacementException
- Throws:
PortletPlacementException
getFragmentOnNewPage
public Fragment getFragmentOnNewPage(Page newPage,
PortletRegistry registry)
throws PortletPlacementException
- Throws:
PortletPlacementException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getParentFragmentById
public static Fragment getParentFragmentById(java.lang.String id,
Fragment parent)
Copyright © 1999-2009 Apache Software Foundation. All Rights Reserved.