BorderLayoutPageletAdaptor

public abstract class BorderLayoutPageletAdaptor extends HttpXsltPageletAdaptor

BorderLayoutPageletAdaptor is an HTTP-XSLT pagelet adaptor which supports a border layout of pagelets.

A border layout can be divided into five regions:

  1. north
  2. east
  3. west
  4. south
  5. center

Each region maps to a pagelet which has an ID same as the region’s name.

Author:Hugo Y. K. Lam

Methods

getCenterSource

protected Source getCenterSource(HttpServletRequest request)

Gets the transformation source for the center region.

Parameters:
  • request – the servlet request.
Returns:

the transformation source or null by default.

getEastSource

protected Source getEastSource(HttpServletRequest request)

Gets the transformation source for the east region.

Parameters:
  • request – the servlet request.
Returns:

the transformation source or null by default.

getNorthSource

protected Source getNorthSource(HttpServletRequest request)

Gets the transformation source for the north region.

Parameters:
  • request – the servlet request.
Returns:

the transformation source or null by default.

getPageletSource

protected Source getPageletSource(TemplateElement element, Pagelet pagelet, HttpServletRequest request)

Determines the border layout region that the given template element refers to and invokes the corresponding method for retrieving the transformation source.

See also: .getNorthSource(HttpServletRequest), .getEastSource(HttpServletRequest), .getWestSource(HttpServletRequest), .getSouthSource(HttpServletRequest), hk.hku.cecid.piazza.commons.pagelet.xslt.HttpXsltPageletAdaptor.getPageletSource(hk.hku.cecid.piazza.commons.pagelet.TemplateElement,hk.hku.cecid.piazza.commons.pagelet.Pagelet,javax.servlet.http.HttpServletRequest)

getSouthSource

protected Source getSouthSource(HttpServletRequest request)

Gets the transformation source for the south region.

Parameters:
  • request – the servlet request.
Returns:

the transformation source or null by default.

getWestSource

protected Source getWestSource(HttpServletRequest request)

Gets the transformation source for the west region.

Parameters:
  • request – the servlet request.
Returns:

the transformation source or null by default.