|
jacquard 1.12.0 by The Web Engineering Factory and Toolworks | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.co.weft.htform.ResourceConsumerImpl
uk.co.weft.htform.ActionColumn
a column which may be added to a ResultFormatter to allow users to perform actions on individual rows. Each cell in this column will contain a URL which acts on some aspect of the data item represented by the row.
ResultFormatter| Field Summary | |
protected java.lang.String |
label
my label |
protected java.util.Vector |
passThrough
the tokens whose values I pass through in my URL |
protected java.lang.String |
urlStub
the stub from which my URL will be built |
| Fields inherited from class uk.co.weft.htform.ResourceConsumerImpl |
resourceBundleName |
| Fields inherited from interface uk.co.weft.htform.ResourceConsumer |
RESOURCEBUNDLEMAGICTOKEN |
| Constructor Summary | |
ActionColumn(java.lang.String label,
java.lang.String urlStub,
java.util.Vector passThrough)
create an ActionColumn |
|
| Method Summary | |
protected void |
addPassthrough(java.lang.String token)
Add a token to my list of passthrough tokens |
protected java.lang.String |
composeActionURL(Context context,
Context row)
construct the action URL with the correct embedded arguments for this row |
void |
format(Context context,
Context row)
format this column to the output stream |
protected void |
setLabel(java.lang.String label)
set my label to this |
protected void |
setUrlStub(java.lang.String urlStub)
set my URL stub to this |
| Methods inherited from class uk.co.weft.htform.ResourceConsumerImpl |
getContextOrResource, getResource, getResourceOrContext, getResourceString, grs, grs, init |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String label
protected java.lang.String urlStub
protected java.util.Vector passThrough
| Constructor Detail |
public ActionColumn(java.lang.String label,
java.lang.String urlStub,
java.util.Vector passThrough)
| Method Detail |
public void format(Context context,
Context row)
throws java.io.IOException
context - the service contextrow - the current row
java.io.IOExceptionprotected void setLabel(java.lang.String label)
protected void setUrlStub(java.lang.String urlStub)
protected void addPassthrough(java.lang.String token)
protected java.lang.String composeActionURL(Context context,
Context row)
context - the context for this service.row - a Context containing the fields of this row.
|
jacquard 1.12.0 by The Web Engineering Factory and Toolworks | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||