|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PortletPlacementContext
Handles portlet placement for client such as AJAX client side on a per request basis. The context is associated with a request context, thus it is only valid for the span of a request.
| Method Summary | |
|---|---|
Coordinate |
add(Fragment fragment,
Coordinate coordinate)
Add a portlet to its managed page. |
Fragment |
getFragmentAtNewCoordinate(Coordinate coordinate)
Retrieve a portlet fragment for the given coordinate. |
Fragment |
getFragmentAtOldCoordinate(Coordinate coordinate)
Retrieve the old portlet fragment for the given coordinate (prior to placement). |
Fragment |
getFragmentById(String fragmentId)
Retrieve a fragment by fragment id. |
int |
getNumberColumns()
retrieve the number of columns for the managed layout. |
int |
getNumberRows(int column)
retrieve the number of rows for the managed layout at the given column. |
Coordinate |
moveAbsolute(Fragment fragment,
Coordinate coordinate)
Move a portlet fragment to a new absolute position as specified in the Coordinate parameter. |
Coordinate |
moveAbsolute(Fragment fragment,
Coordinate coordinate,
boolean addFragment)
Move a portlet fragment to a new absolute position as specified in the Coordinate parameter. |
Coordinate |
moveDown(Fragment fragment)
Move a portlet relative to its current position DOWN one row. |
Coordinate |
moveLeft(Fragment fragment)
Move a portlet relative to its current position LEFT one column. |
Coordinate |
moveRight(Fragment fragment)
Move a portlet relative to its current position RIGHT one column. |
Coordinate |
moveUp(Fragment fragment)
Move a portlet relative to its current position UP one row. |
Coordinate |
remove(Fragment fragment)
Remove the specified fragment. |
Page |
syncPageFragments()
Takes the internal portlet placement state and writes it back out to the root fragment for the managed page layout. |
| Method Detail |
|---|
Coordinate moveAbsolute(Fragment fragment,
Coordinate coordinate)
throws PortletPlacementException
fragment - The fragment to be moved.coordinate - The specification of the new absolute coordinate
PortletPlacementException
Coordinate moveAbsolute(Fragment fragment,
Coordinate coordinate,
boolean addFragment)
throws PortletPlacementException
fragment - The fragment to be moved.coordinate - The specification of the new absolute coordinateaddFragment - When true, the fragment is being added (i.e. it is not being moved within the column)
PortletPlacementException
Coordinate moveUp(Fragment fragment)
throws PortletPlacementException
fragment - The fragment to be moved.
PortletPlacementException
Coordinate moveDown(Fragment fragment)
throws PortletPlacementException
fragment - The fragment to be moved.
PortletPlacementException
Coordinate moveLeft(Fragment fragment)
throws PortletPlacementException
fragment - The fragment to be moved.
PortletPlacementException
Coordinate moveRight(Fragment fragment)
throws PortletPlacementException
fragment - The fragment to be moved.
PortletPlacementException
Coordinate add(Fragment fragment,
Coordinate coordinate)
throws PortletPlacementException
fragment - The Fragment to addcoordinate - The coordinate where to place the new portlet
PortletPlacementException
Coordinate remove(Fragment fragment)
throws PortletPlacementException
fragment -
PortletPlacementException
int getNumberColumns()
throws PortletPlacementException
PortletPlacementException
int getNumberRows(int column)
throws PortletPlacementException
column - the column to retrieve the number of rows for
PortletPlacementException
Fragment getFragmentAtNewCoordinate(Coordinate coordinate)
throws PortletPlacementException
coordinate - the coordinate associated to a fragment.
PortletPlacementException
Fragment getFragmentAtOldCoordinate(Coordinate coordinate)
throws PortletPlacementException
coordinate - the coordinate associated to a fragment.
PortletPlacementException
Fragment getFragmentById(String fragmentId)
throws PortletPlacementException
fragmentId - a string key for a fragment managed on this layout.
PortletPlacementExceptionPage syncPageFragments()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||