com.sun.rave.web.ui.component.util.handlers
Class UtilHandlers

java.lang.Object
  extended by com.sun.rave.web.ui.component.util.handlers.UtilHandlers

public class UtilHandlers
extends java.lang.Object

This class contains Handler methods that perform common utility-type functions.


Constructor Summary
UtilHandlers()
           Default Constructor.
 
Method Summary
 void createList(HandlerContext context)
           This method creates a List.
 void dec(HandlerContext context)
           This handler decrements a number by 1.
static void endSkipHyperlink(HandlerContext context)
          Render skip anchor -- see bugtarq #6329543.
 void getClientId(HandlerContext context)
           This method enables you to retrieve the clientId for the given UIComponent.
 void getId(HandlerContext context)
           This method enables you to retrieve the id or clientId for the given Object which is expected to be a UIComponent or a String that already represents the clientId.
 void getIterator(HandlerContext context)
           This method returns an Iterator for the given List.
 void inc(HandlerContext context)
           This handler increments a number by 1.
 void iteratorHasNext(HandlerContext context)
           This method returns a Boolean value representing whether another value exists for the given Iterator.
 void iteratorNext(HandlerContext context)
           This method returns the next object in the List that the given Iterator is iterating over.
 void println(HandlerContext context)
           This handler writes using System.out.println.
 boolean returnFalse(HandlerContext context)
           This method returns false.
 boolean returnTrue(HandlerContext context)
           This method returns true.
 void setAttribute(HandlerContext context)
           This handler sets a request attribute.
static void startSkipHyperlink(HandlerContext context)
          Render skip hyperlink -- see bugtarq #6329543.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UtilHandlers

public UtilHandlers()

Default Constructor.

Method Detail

println

public void println(HandlerContext context)

This handler writes using System.out.println. It requires that value be supplied as a String input parameter.

Parameters:
context - The HandlerContext.

dec

public void dec(HandlerContext context)

This handler decrements a number by 1. This handler requires "number" to be supplied as an Integer input value. It sets an output value "value" to number-1.

Parameters:
context - The HandlerContext.

inc

public void inc(HandlerContext context)

This handler increments a number by 1. This handler requires "number" to be supplied as an Integer input value. It sets an output value "value" to number+1.

Parameters:
context - The HandlerContext.

setAttribute

public void setAttribute(HandlerContext context)

This handler sets a request attribute. It requires "key" and "value" input values to be passed in.

Parameters:
context - The HandlerContext.

getIterator

public void getIterator(HandlerContext context)

This method returns an Iterator for the given List. The List input value key is: "list". The output value key for the Iterator is: "iterator".

Parameters:
context - The HandlerContext.

iteratorHasNext

public void iteratorHasNext(HandlerContext context)

This method returns a Boolean value representing whether another value exists for the given Iterator. The Iterator input value key is: "iterator". The output value key is "hasNext".

Parameters:
context - The HandlerContext.

iteratorNext

public void iteratorNext(HandlerContext context)

This method returns the next object in the List that the given Iterator is iterating over. The Iterator input value key is: "iterator". The output value key is "next".

Parameters:
context - The HandlerContext.

createList

public void createList(HandlerContext context)

This method creates a List. Optionally you may supply "size" to create a List of blank "" values of the specified size. The output value from this handler is "result".

Parameters:
context - The HandlerContext

returnTrue

public boolean returnTrue(HandlerContext context)

This method returns true. It does not take any input or provide any output values.

Parameters:
context - The HandlerContext

returnFalse

public boolean returnFalse(HandlerContext context)

This method returns false. It does not take any input or provide any output values.

Parameters:
context - The HandlerContext

getClientId

public void getClientId(HandlerContext context)

This method enables you to retrieve the clientId for the given UIComponent.

Parameters:
context - The HandlerContext

getId

public void getId(HandlerContext context)

This method enables you to retrieve the id or clientId for the given Object which is expected to be a UIComponent or a String that already represents the clientId.

Parameters:
context - The HandlerContext

startSkipHyperlink

public static void startSkipHyperlink(HandlerContext context)
                               throws java.io.IOException
Render skip hyperlink -- see bugtarq #6329543.

Parameters:
context - The HandlerContext
Throws:
java.io.IOException

endSkipHyperlink

public static void endSkipHyperlink(HandlerContext context)
                             throws java.io.IOException
Render skip anchor -- see bugtarq #6329543.

Parameters:
context - The HandlerContext
Throws:
java.io.IOException