|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.rave.web.ui.component.util.handlers.UtilHandlers
public class UtilHandlers
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 |
---|
public UtilHandlers()
Default Constructor.
Method Detail |
---|
public void println(HandlerContext context)
This handler writes using System.out.println
. It
requires that value
be supplied as a String input
parameter.
context
- The HandlerContext.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.
context
- The HandlerContext.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.
context
- The HandlerContext.public void setAttribute(HandlerContext context)
This handler sets a request attribute. It requires "key" and "value" input values to be passed in.
context
- The HandlerContext.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".
context
- The HandlerContext.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".
context
- The HandlerContext.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".
context
- The HandlerContext.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".
context
- The HandlerContextpublic boolean returnTrue(HandlerContext context)
This method returns true. It does not take any input or provide any output values.
context
- The HandlerContext
public boolean returnFalse(HandlerContext context)
This method returns false. It does not take any input or provide any output values.
context
- The HandlerContext
public void getClientId(HandlerContext context)
This method enables you to retrieve the clientId for the given
UIComponent
.
context
- The HandlerContext
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.
context
- The HandlerContext
public static void startSkipHyperlink(HandlerContext context) throws java.io.IOException
context
- The HandlerContext
java.io.IOException
public static void endSkipHyperlink(HandlerContext context) throws java.io.IOException
context
- The HandlerContext
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |