|
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.domutil.NodeGeneratorImpl
uk.co.weft.htform.Widget
uk.co.weft.htform.TextAreaWidget
uk.co.weft.htform.HTMLTextAreaWidget
A textarea widget which knows how to convert text into a very basic HTML fragment.
| Field Summary | |
static int |
BLOCK_TAG
Tag type marker for block tags |
static int |
EMPTY_TAG
Tag type marker for empty tags |
static int |
INLINE_TAG
Tag type marker for inline tags |
protected java.lang.String[] |
permittedBlockTags
HTML block tags we'll allow. |
protected java.lang.String[] |
permittedEmptyTags
HTML empty tags we'll allow |
protected java.lang.String[] |
permittedInlineTags
HTML inline tags we'll allow; I'm a bit doubtful about allowing 'a' and 'img' |
| Fields inherited from class uk.co.weft.htform.TextAreaWidget |
HARD_WRAP, NO_WRAP, rows, SOFT_WRAP, wrap |
| Fields inherited from class uk.co.weft.htform.Widget |
ACTIONCSSCLASS, akprompt, attrs, CONTEXTATTRIBUTESSUFFIX, cssClass, DANGEROUSCSSCLASS, debug, DEFAULTTOKEN, dflt, form, generateAs, GENERATEASHTML, GENERATEASXFORM, GENERATEASXML, help, HELPTOKEN, immutable, ISIMMUTABLETOKEN, ISMANDATORYTOKEN, mandatory, MANDATORYCSSCLASS, maxVisibleSize, name, NAMETOKEN, OPTIONALCSSCLASS, PREVIOUSVALUESUFFIX, prompt, PROMPTTOKEN, size, SIZETOKEN, type, TYPETOKEN |
| Fields inherited from class uk.co.weft.domutil.NodeGeneratorImpl |
namespaceURI |
| Fields inherited from class uk.co.weft.htform.ResourceConsumerImpl |
resourceBundleName |
| Fields inherited from interface uk.co.weft.domutil.NodeGenerator |
NAMESPACEURIMAGICTOKEN |
| Fields inherited from interface uk.co.weft.htform.ResourceConsumer |
RESOURCEBUNDLEMAGICTOKEN |
| Constructor Summary | |
HTMLTextAreaWidget(java.lang.String name,
java.lang.String prompt,
java.lang.String help)
pass all args up the chain |
|
HTMLTextAreaWidget(java.lang.String myname,
java.lang.String myprompt,
java.lang.String myhelp,
int r,
int c)
pass all args up the chain |
|
HTMLTextAreaWidget(java.lang.String myname,
java.lang.String myprompt,
java.lang.String myhelp,
int r,
int c,
boolean h)
Deprecated. dont't use the hardwrap flag, use wrap instead |
|
| Method Summary | |
void |
allowTag(java.lang.String tag,
int type)
advise me to allow this tag. |
protected java.lang.String |
ampersandClean(java.lang.String text)
check for unprotected ampersands |
void |
disallowTag(java.lang.String tag)
advise me to disallow this tag |
java.lang.String |
getHelp(Context context)
Specialisation - add a list of permitted tags |
protected void |
postProcess(Context context)
convert angle brackets to character references for safe display |
protected void |
preProcess(Context context)
check whether there are any tags in the existing text; if so, that's more or less OK (provided they're ones we allow and have accurate nesting etc). |
protected java.lang.String |
roughParse(java.lang.String text)
roughly parse this text as (supposed) HTML and throw an exception if I see anything I don't recognise - don't attempt to error correct. |
| Methods inherited from class uk.co.weft.htform.TextAreaWidget |
generateInnerHTML, getHeight, layout |
| Methods inherited from class uk.co.weft.htform.Widget |
clone, generate, generateAttributes, generateAttributes, generateHTML, generateHTMLPrompt, generateValue, generateXML, getContextAttribute, getCssClass, getName, getPrompt, getTabPlaces, getType, getWidth, init, layout, layout, layout, layoutAttribute, layoutAttributes, layoutValue, makeReady, maybeLayout, maybeLayout, onloadRequest, onloadRequest, scriptRequest, scriptRequest, setAttribute, setContextAttribute, setCssClass, setDebug, setDefault, setHelp, setImmutable, setMandatory, setMandatory, setName, setPrompt, setSize, setType |
| Methods inherited from class uk.co.weft.domutil.NodeGeneratorImpl |
getNamespaceURI, setNamespaceURI |
| Methods inherited from class uk.co.weft.htform.ResourceConsumerImpl |
getContextOrResource, getResource, getResourceOrContext, getResourceString, grs, grs |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface uk.co.weft.domutil.NodeGenerator |
generate, getName, getNamespaceURI, init, setDebug |
| Field Detail |
public static final int EMPTY_TAG
public static final int BLOCK_TAG
public static final int INLINE_TAG
protected java.lang.String[] permittedBlockTags
protected java.lang.String[] permittedEmptyTags
protected java.lang.String[] permittedInlineTags
| Constructor Detail |
public HTMLTextAreaWidget(java.lang.String myname,
java.lang.String myprompt,
java.lang.String myhelp,
int r,
int c,
boolean h)
TextAreaWidget.wrap
public HTMLTextAreaWidget(java.lang.String name,
java.lang.String prompt,
java.lang.String help)
public HTMLTextAreaWidget(java.lang.String myname,
java.lang.String myprompt,
java.lang.String myhelp,
int r,
int c)
| Method Detail |
public java.lang.String getHelp(Context context)
throws javax.servlet.ServletException
getHelp in class Widgetjavax.servlet.ServletException
public void allowTag(java.lang.String tag,
int type)
throws DataFormatException
tag - the tag to allowtype - the type (EMPTY_TAG, BLOCK_TAG, INLINE_TAG) of this tag
DataFormatException - if type is not recognised.EMPTY_TAG,
BLOCK_TAG,
INLINE_TAGpublic void disallowTag(java.lang.String tag)
tag - the tag to disallowprotected java.lang.String ampersandClean(java.lang.String text)
text - the text to be parsed
protected void postProcess(Context context)
postProcess in class WidgetLinkTableWidget
protected void preProcess(Context context)
throws DataFormatException
preProcess in class Widgetcontext - the Context of the service in which I'm called
DataFormatException - if data fails validation test
protected java.lang.String roughParse(java.lang.String text)
throws DataFormatException
text - the text to be parsed
DataFormatException - if it doesn't parse
|
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 | |||||||||