|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.nucleus.TimedOperationService atg.nucleus.servlet.ServletService atg.nucleus.servlet.HttpServletService atg.servlet.DynamoServlet atg.droplet.TableRange
public class TableRange
This droplet extends the functionality of Range by allowing the output to be rendered in a table-like format. The numColumns parameter specifies the number of columns the array set should be partitioned into. The array is striped across the columns.
The output parameter is rendered for each "cell" in the table. Note that if the range size is not a multiple of the number of columns, output is rendered with a null element parameter for the remaining columns in the last row. A Switch droplet can be used to conditionally "fill in" the missing items.
A complete description of the parameters to the TableRange droplet are:
Range
,
TableForEach
Field Summary | |
---|---|
static java.lang.String |
ARRAY
|
static java.lang.String |
CLASS_VERSION
Class version string |
static java.lang.String |
COLUMN_INDEX
|
static java.lang.String |
COUNT
|
static java.lang.String |
ELEMENT
|
static java.lang.String |
ELEMENT_NAME
|
static java.lang.String |
EMPTY
|
static java.lang.String |
HAS_NEXT
|
static java.lang.String |
HAS_PREV
|
static java.lang.String |
HOW_MANY
|
static java.lang.String |
INDEX
|
static java.lang.String |
INDEX_NAME
|
static java.lang.String |
KEY
|
static java.lang.String |
NEXT_END
|
static java.lang.String |
NEXT_HOW_MANY
|
static java.lang.String |
NEXT_START
|
static java.lang.String |
NUM_COLUMNS
|
static java.lang.String |
OUTPUT
|
static java.lang.String |
OUTPUT_END
|
static java.lang.String |
OUTPUT_ROW_END
|
static java.lang.String |
OUTPUT_ROW_START
|
static java.lang.String |
OUTPUT_START
|
static java.lang.String |
PREV_END
|
static java.lang.String |
PREV_HOW_MANY
|
static java.lang.String |
PREV_START
|
static java.lang.String |
ROW_INDEX
|
static java.lang.String |
START
|
Fields inherited from class atg.servlet.DynamoServlet |
---|
mAllowCleanupRequest, mParameters |
Fields inherited from class atg.nucleus.servlet.ServletService |
---|
SERVLET_INFO_KEY |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
TableRange()
|
Method Summary | |
---|---|
java.lang.Object |
getArray(DynamoHttpServletRequest pRequest)
Gets the array-like value (e.g., array, Vector, Enumeration) to be used by this droplet from the request. |
void |
service(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Called when a request needs to be processed. |
protected void |
serviceArray(java.lang.Object pArray,
int pStart,
int pHowMany,
int pNumColumns,
java.lang.String pIndexName,
java.lang.String pElementName,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Renders the range operation for array objects |
protected void |
serviceCollection(java.util.Collection pCollection,
int pStart,
int pHowMany,
int pNumColumns,
java.lang.String pIndexName,
java.lang.String pElementName,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Renders the range operation for Collection objects |
protected void |
serviceDictionary(java.util.Dictionary pDictionary,
int pStart,
int pHowMany,
int pNumColumns,
java.lang.String pIndexName,
java.lang.String pElementName,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Renders the range operation for Dictionary objects |
protected void |
serviceEnumeration(java.util.Enumeration pEnumeration,
int pStart,
int pHowMany,
int pNumColumns,
java.lang.String pIndexName,
java.lang.String pElementName,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Renders the range operation for enumeration objects |
protected void |
serviceIterator(java.util.Iterator pIterator,
int pStart,
int pHowMany,
int pNumColumns,
java.lang.String pIndexName,
java.lang.String pElementName,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Renders the range operation for array objects |
protected void |
serviceList(java.util.List pList,
int pStart,
int pHowMany,
int pNumColumns,
java.lang.String pIndexName,
java.lang.String pElementName,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Renders the range operation for List objects |
protected void |
serviceMap(java.util.Map pMap,
int pStart,
int pHowMany,
int pNumColumns,
java.lang.String pIndexName,
java.lang.String pElementName,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Renders the range operation for Map objects |
Methods inherited from class atg.servlet.DynamoServlet |
---|
doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, service, service, setParameter |
Methods inherited from class atg.nucleus.servlet.ServletService |
---|
destroy, getServletConfig, getServletInfo, init, setServletInfo |
Methods inherited from class atg.nucleus.TimedOperationService |
---|
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
public static final java.lang.String ARRAY
public static final java.lang.String NUM_COLUMNS
public static final java.lang.String START
public static final java.lang.String HOW_MANY
public static final java.lang.String INDEX_NAME
public static final java.lang.String ELEMENT_NAME
public static final java.lang.String OUTPUT_START
public static final java.lang.String OUTPUT_END
public static final java.lang.String OUTPUT_ROW_START
public static final java.lang.String OUTPUT_ROW_END
public static final java.lang.String OUTPUT
public static final java.lang.String EMPTY
public static final java.lang.String ROW_INDEX
public static final java.lang.String COLUMN_INDEX
public static final java.lang.String INDEX
public static final java.lang.String COUNT
public static final java.lang.String ELEMENT
public static final java.lang.String KEY
public static final java.lang.String HAS_PREV
public static final java.lang.String HAS_NEXT
public static final java.lang.String PREV_START
public static final java.lang.String PREV_END
public static final java.lang.String PREV_HOW_MANY
public static final java.lang.String NEXT_START
public static final java.lang.String NEXT_END
public static final java.lang.String NEXT_HOW_MANY
Constructor Detail |
---|
public TableRange()
Method Detail |
---|
public java.lang.Object getArray(DynamoHttpServletRequest pRequest)
public void service(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
service
in class DynamoServlet
pRequest
- the request to be processedpResponse
- the response object for this request
javax.servlet.ServletException
- if an application specific error
occurred processing this request
java.io.IOException
- if an error occurred reading data from
the request or writing data to the responseprotected void serviceArray(java.lang.Object pArray, int pStart, int pHowMany, int pNumColumns, java.lang.String pIndexName, java.lang.String pElementName, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pArray
- the object to iteratepStart
- Specifies the starting index (1-based). For example, to start at
the beginning of the array, set start to 1. If start
points past the end of the array, the empty parameter will be
rendered.pHowMany
- Specifies the number of items in the array set to display. If the
combination of start and howMany point past the end of
the array, rendering stops after the end of the array is reached.pNumColumns
- Specifies the number of columns to partition the array into.pIndexName
- the parameter name to use for the indexpElementName
- the parameter name to use for the elementpRequest
- the request to be processedpResponse
- the response object for this request
javax.servlet.ServletException
- if an application specific error occurred processing this request
java.io.IOException
- if an error occurred reading data from the request or writing data to the responseprotected void serviceList(java.util.List pList, int pStart, int pHowMany, int pNumColumns, java.lang.String pIndexName, java.lang.String pElementName, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pList
- the object to iteratepStart
- Specifies the starting index (1-based). For example, to start at
the beginning of the array, set start to 1. If start
points past the end of the array, the empty parameter will be
rendered.pHowMany
- Specifies the number of items in the array set to display. If the
combination of start and howMany point past the end of
the array, rendering stops after the end of the array is reached.pNumColumns
- Specifies the number of columns to partition the array into.pIndexName
- the parameter name to use for the indexpElementName
- the parameter name to use for the elementpRequest
- the request to be processedpResponse
- the response object for this request
javax.servlet.ServletException
- if an application specific error occurred processing this request
java.io.IOException
- if an error occurred reading data from the request or writing data to the responseprotected void serviceCollection(java.util.Collection pCollection, int pStart, int pHowMany, int pNumColumns, java.lang.String pIndexName, java.lang.String pElementName, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pCollection
- the object to iteratepStart
- Specifies the starting index (1-based). For example, to start at
the beginning of the array, set start to 1. If start
points past the end of the array, the empty parameter will be
rendered.pHowMany
- Specifies the number of items in the array set to display. If the
combination of start and howMany point past the end of
the array, rendering stops after the end of the array is reached.pNumColumns
- Specifies the number of columns to partition the array into.pIndexName
- the parameter name to use for the indexpElementName
- the parameter name to use for the elementpRequest
- the request to be processedpResponse
- the response object for this request
javax.servlet.ServletException
- if an application specific error occurred processing this request
java.io.IOException
- if an error occurred reading data from the request or writing data to the responseprotected void serviceIterator(java.util.Iterator pIterator, int pStart, int pHowMany, int pNumColumns, java.lang.String pIndexName, java.lang.String pElementName, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pArray
- the object to iteratepStart
- Specifies the starting index (1-based). For example, to start at
the beginning of the array, set start to 1. If start
points past the end of the array, the empty parameter will be
rendered.pHowMany
- Specifies the number of items in the array set to display. If the
combination of start and howMany point past the end of
the array, rendering stops after the end of the array is reached.pNumColumns
- Specifies the number of columns to partition the array into.pIndexName
- the parameter name to use for the indexpElementName
- the parameter name to use for the elementpRequest
- the request to be processedpResponse
- the response object for this request
javax.servlet.ServletException
- if an application specific error occurred processing this request
java.io.IOException
- if an error occurred reading data from the request or writing data to the responseprotected void serviceEnumeration(java.util.Enumeration pEnumeration, int pStart, int pHowMany, int pNumColumns, java.lang.String pIndexName, java.lang.String pElementName, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pEnumeration
- the object to iteratepStart
- Specifies the starting index (1-based). For example, to start at
the beginning of the array, set start to 1. If start
points past the end of the array, the empty parameter will be
rendered.pHowMany
- Specifies the number of items in the array set to display. If the
combination of start and howMany point past the end of
the array, rendering stops after the end of the array is reached.pNumColumns
- Specifies the number of columns to partition the array into.pIndexName
- the parameter name to use for the indexpElementName
- the parameter name to use for the elementpRequest
- the request to be processedpResponse
- the response object for this request
javax.servlet.ServletException
- if an application specific error occurred processing this request
java.io.IOException
- if an error occurred reading data from the request or writing data to the responseprotected void serviceMap(java.util.Map pMap, int pStart, int pHowMany, int pNumColumns, java.lang.String pIndexName, java.lang.String pElementName, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pMap
- the object to iteratepStart
- Specifies the starting index (1-based). For example, to start at
the beginning of the array, set start to 1. If start
points past the end of the array, the empty parameter will be
rendered.pHowMany
- Specifies the number of items in the array set to display. If the
combination of start and howMany point past the end of
the array, rendering stops after the end of the array is reached.pNumColumns
- Specifies the number of columns to partition the array into.pIndexName
- the parameter name to use for the indexpElementName
- the parameter name to use for the elementpRequest
- the request to be processedpResponse
- the response object for this request
javax.servlet.ServletException
- if an application specific error occurred processing this request
java.io.IOException
- if an error occurred reading data from the request or writing data to the responseprotected void serviceDictionary(java.util.Dictionary pDictionary, int pStart, int pHowMany, int pNumColumns, java.lang.String pIndexName, java.lang.String pElementName, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pDictionary
- the object to iteratepStart
- Specifies the starting index (1-based). For example, to start at
the beginning of the array, set start to 1. If start
points past the end of the array, the empty parameter will be
rendered.pHowMany
- Specifies the number of items in the array set to display. If the
combination of start and howMany point past the end of
the array, rendering stops after the end of the array is reached.pNumColumns
- Specifies the number of columns to partition the array into.pIndexName
- the parameter name to use for the indexpElementName
- the parameter name to use for the elementpRequest
- the request to be processedpResponse
- the response object for this request
javax.servlet.ServletException
- if an application specific error occurred processing this request
java.io.IOException
- if an error occurred reading data from the request or writing data to the response
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |