org.ow2.opensuit.core.util
Class HeadingUtils

java.lang.Object
  extended by org.ow2.opensuit.core.util.HeadingUtils

public class HeadingUtils
extends java.lang.Object

Helper class to manage the current Heading (html elements <Hx>) level while rendering a page with open SUIT.


Constructor Summary
HeadingUtils()
           
 
Method Summary
static void decrLevel(javax.servlet.http.HttpServletRequest iRequest)
          Decreases the current heading level during the rendering process.
static int getLevel(javax.servlet.http.HttpServletRequest iRequest)
          Returns the current heading level during the rendering process.
static void incrLevel(javax.servlet.http.HttpServletRequest iRequest)
          Increases the current heading level during the rendering process.
static void moveLevel(javax.servlet.http.HttpServletRequest iRequest, int increment)
          Moves the current heading level by the given increment during the rendering process.
static void setLevel(javax.servlet.http.HttpServletRequest iRequest, int level)
          Changes the current heading level during the rendering process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeadingUtils

public HeadingUtils()
Method Detail

getLevel

public static int getLevel(javax.servlet.http.HttpServletRequest iRequest)
Returns the current heading level during the rendering process.

Parameters:
iRequest - The current http request.
Returns:
The current heading level.

setLevel

public static void setLevel(javax.servlet.http.HttpServletRequest iRequest,
                            int level)
Changes the current heading level during the rendering process.

Parameters:
iRequest - The current http request.
level - The new heading level to apply.

moveLevel

public static void moveLevel(javax.servlet.http.HttpServletRequest iRequest,
                             int increment)
Moves the current heading level by the given increment during the rendering process.

Parameters:
iRequest - The current http request.
increment - The increment value to apply to the current heading level.

incrLevel

public static void incrLevel(javax.servlet.http.HttpServletRequest iRequest)
Increases the current heading level during the rendering process.

Parameters:
iRequest - The current http request.

decrLevel

public static void decrLevel(javax.servlet.http.HttpServletRequest iRequest)
Decreases the current heading level during the rendering process.

Parameters:
iRequest - The current http request.


Copyright © 2008-2012 OW2 Consortium. All Rights Reserved.